mirror of
https://github.com/XProger/OpenLara.git
synced 2025-07-31 10:20:27 +02:00
fix colored polygons for PSX levels
This commit is contained in:
@@ -1059,9 +1059,9 @@ struct MeshBuilder {
|
|||||||
for (int j = 0; j < mesh.fCount; j++) {
|
for (int j = 0; j < mesh.fCount; j++) {
|
||||||
TR::Face &f = mesh.faces[j];
|
TR::Face &f = mesh.faces[j];
|
||||||
ASSERT(f.colored || f.flags.texture < level->objectTexturesCount);
|
ASSERT(f.colored || f.flags.texture < level->objectTexturesCount);
|
||||||
if (level->version & TR::VER_PSX) {
|
//if (level->version & TR::VER_PSX) {
|
||||||
f.colored = false; // PSX version has colored textures
|
// f.colored = false; // PSX version has colored textures... not yet :)
|
||||||
}
|
//}
|
||||||
TR::TextureInfo &t = f.colored ? (useRoomTex ? whiteRoom : whiteObject) : level->objectTextures[f.flags.texture];
|
TR::TextureInfo &t = f.colored ? (useRoomTex ? whiteRoom : whiteObject) : level->objectTextures[f.flags.texture];
|
||||||
|
|
||||||
int texAttrib = forceOpaque ? 0 : t.attribute;
|
int texAttrib = forceOpaque ? 0 : t.attribute;
|
||||||
|
Reference in New Issue
Block a user