DRTVWR-559: PBR: Maintain slightly higher quality of normals from normal map

meow-7.2.2
Ptolemy 2022-09-02 17:02:58 -07:00
parent dfaadd5db0
commit 235d2f4535
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ void main()
#ifdef HAS_NORMAL_MAP
vec4 norm = texture2D(bumpMap, vary_texcoord1.xy);
norm.xyz = norm.xyz * 2 - 1;
norm.xyz = normalize(norm.xyz * 2 - 1);
vec3 tnorm = vec3(dot(norm.xyz,vary_mat0),
dot(norm.xyz,vary_mat1),