2
0
Эх сурвалжийг харах

corrected order of Normal calculation in vertex to address issue 501 in lovr

paloblanco 4 жил өмнө
parent
commit
0bc959e003

+ 1 - 1
guides/Simple_Lighting.md

@@ -100,7 +100,7 @@ Luckily, LÖVR loves you, and makes this very easy. Here's the new vertex shade
 
         vec4 position(mat4 projection, mat4 transform, vec4 vertex) 
         { 
-            Normal = lovrNormal * lovrNormalMatrix;
+            Normal = lovrNormalMatrix * lovrNormal;
             FragmentPos = vec3(lovrModel * vertex);
             
             return projection * transform * vertex;