1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Fix calculating I vector (Fixes shading on hands in Odyssey costum viewer)

This commit is contained in:
KillzXGaming 2019-05-30 19:21:06 -04:00
parent 250e267143
commit d5622e4046
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -183,7 +183,7 @@ void main()
}
// Calculate shading vectors.
vec3 I = vec3(0,0,-1) * mat3(mtxMdl * mtxCam);
vec3 I = vec3(0,0,-1) * mat3(mtxCam);
int NormalMapUVIndex = 0;

View File

@ -286,7 +286,7 @@ void main()
}
// Calculate shading vectors.
vec3 I = vec3(0,0,-1) * mat3(mtxMdl * mtxCam);
vec3 I = vec3(0,0,-1) * mat3(mtxCam);
vec3 N = normal;
if (HasNormalMap == 1 && useNormalMap == 1)
N = CalcBumpedNormal(normal, NormalMap, vert, 0);