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:
parent
aeb32c44c1
commit
c3ed37af34
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user