We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b87a023 commit b9e0ff4Copy full SHA for b9e0ff4
webgl-shaders/FragmentShader.glsl
@@ -46,7 +46,7 @@ void main() {
46
vec3 normalOffset = u_normals.x < 0.0 ? applyMaterial(u_normals) * 2.0 - 1.0 : vec3(0.0);
47
vec3 normal = (v_normal + normalOffset);
48
normal.y *= -1.0;
49
- normal = normalize(u_normalMatrix * (normal + normalOffset));
+ normal = normalize(u_normalMatrix * normal);
50
51
vec4 glossiness = u_glossiness.x < 0.0 ? applyMaterial(u_glossiness) : u_glossiness;
52
int numLights = int(u_numLights);
0 commit comments