beginning of suitting textures for animation

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 7adf42ad7b
commit 0f9622a94c
5 changed files with 38 additions and 57 deletions
+1 -6
View File
@@ -75,12 +75,7 @@ float getShadow(int id){
}
void main(){
vec4 finalColor = diffuseColor;
if(texturingEnabled){
vec4 textureColor = texture(textures[0].pastTexture, texCoords);
finalColor = textures[0].animated ? mix(textureColor, texture(textures[0].nextTexture, texCoords), textures[0].mixRatio) : textureColor;
}
vec4 finalColor = texturingEnabled?texture(textures[0].pastTexture, texCoords) : diffuseColor;
vec3 normal = norm;
if(lightingEnabled){
if(normalMapEnabled){