1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-03-19 18:49:38 +01:00

fix colored polygons for PSX levels

This commit is contained in:
XProger 2020-01-31 21:09:13 +03:00
parent aeb32c44c1
commit c3ed37af34

View File

@ -1059,9 +1059,9 @@ struct MeshBuilder {
for (int j = 0; j < mesh.fCount; j++) {
TR::Face &f = mesh.faces[j];
ASSERT(f.colored || f.flags.texture < level->objectTexturesCount);
if (level->version & TR::VER_PSX) {
f.colored = false; // PSX version has colored textures
}
//if (level->version & TR::VER_PSX) {
// f.colored = false; // PSX version has colored textures... not yet :)
//}
TR::TextureInfo &t = f.colored ? (useRoomTex ? whiteRoom : whiteObject) : level->objectTextures[f.flags.texture];
int texAttrib = forceOpaque ? 0 : t.attribute;