Skip to content

Commit d6732e0

Browse files
committed
Added normalize
1 parent 597f985 commit d6732e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/ShBasic.fsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void main()
5959
vec3 specularColor = texture2D(u_texSpecular, v_vTexCoord).rgb;
6060
float gloss = texture2D(u_texGloss, v_vTexCoord).x;
6161
float specularPower = exp2(10.0 * gloss + 1.0);
62-
vec3 N = v_mTBN * normal;
62+
vec3 N = normalize(v_mTBN * normal);
6363

6464
// Accumulate lighting...
6565
vec3 V = normalize(u_vCamera - v_vPosition);

0 commit comments

Comments
 (0)