mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-14 00:54:05 +02:00
#138 fix transparency for animated textures
This commit is contained in:
19
src/format.h
19
src/format.h
@@ -5161,9 +5161,22 @@ namespace TR {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void initAnimTex() {
|
void initAnimTex() {
|
||||||
for (int i = 0; i < animTexturesCount; i++)
|
for (int i = 0; i < animTexturesCount; i++) {
|
||||||
for (int j = 0; j < animTextures[i].count; j++)
|
bool transp = false;
|
||||||
objectTextures[animTextures[i].textures[j]].animated = true;
|
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() {
|
void shiftAnimTex() {
|
||||||
|
Reference in New Issue
Block a user