1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 16:44:50 +02:00

#138 fix transparency for animated textures

This commit is contained in:
XProger
2018-11-15 06:43:53 +03:00
parent c14096ebc1
commit 4307603bc2

View File

@@ -5161,9 +5161,22 @@ namespace TR {
}
void initAnimTex() {
for (int i = 0; i < animTexturesCount; i++)
for (int j = 0; j < animTextures[i].count; j++)
objectTextures[animTextures[i].textures[j]].animated = true;
for (int i = 0; i < animTexturesCount; i++) {
bool transp = false;
for (int j = 0; j < animTextures[i].count; j++) {
TextureInfo &t = objectTextures[animTextures[i].textures[j]];
t.animated = true;
if (t.attribute != 0)
transp = 1;
}
if (transp) {
for (int j = 0; j < animTextures[i].count; j++) {
TextureInfo &t = objectTextures[animTextures[i].textures[j]];
t.attribute = 1;
}
}
}
}
void shiftAnimTex() {