We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 597f985 commit d6732e0Copy full SHA for d6732e0
utils/ShBasic.fsh
@@ -59,7 +59,7 @@ void main()
59
vec3 specularColor = texture2D(u_texSpecular, v_vTexCoord).rgb;
60
float gloss = texture2D(u_texGloss, v_vTexCoord).x;
61
float specularPower = exp2(10.0 * gloss + 1.0);
62
- vec3 N = v_mTBN * normal;
+ vec3 N = normalize(v_mTBN * normal);
63
64
// Accumulate lighting...
65
vec3 V = normalize(u_vCamera - v_vPosition);
0 commit comments