- Fix normal normalize

This commit is contained in:
Magnus Norddahl 2017-07-27 22:31:57 +02:00
parent cbda6e9427
commit 65d5f4ae18

View file

@ -62,7 +62,7 @@ void main()
gl_ClipDistance[4] = worldcoord.y + ((uSplitBottomPlane.w + uSplitBottomPlane.x * worldcoord.x + uSplitBottomPlane.y * worldcoord.z) * uSplitBottomPlane.z);
}
vWorldNormal = NormalModelMatrix * normalize(aNormal);
vWorldNormal = NormalModelMatrix * vec4(normalize(aNormal.xyz), 1.0);
vEyeNormal = NormalViewMatrix * vWorldNormal;
#endif