Add color4u8 type

This commit is contained in:
korenkonder
2023-06-18 17:20:15 +03:00
parent 64091ff80d
commit c08d121983
31 changed files with 194 additions and 148 deletions
+2 -2
View File
@@ -226,7 +226,7 @@ namespace mdl {
void EtcObj::init(EtcObjType type) {
this->type = type;
color = { 0xFF, 0xFF, 0xFF, 0xFF };
color = 0xFFFFFFFF;
//fog = false;
constant = false;
switch (type) {
@@ -2699,7 +2699,7 @@ namespace mdl {
return;
data->init_etc(this, mat, etc);
if (etc->color.w == 0xFF) {
if (etc->color.a == 0xFF) {
if ((obj_flags & OBJ_SHADOW) != 0)
mdl::DispManager::entry_list((mdl::ObjType)(OBJ_TYPE_SHADOW_CHARA + shadow_type), data);
mdl::DispManager::entry_list(OBJ_TYPE_OPAQUE, data);