Browse Source

Merge pull request #64 from paloblanco/SimpleLightingTutorial_Corrections

corrected Normal calculation in Simple Lighting Tutorial
Bjorn 3 years ago
parent
commit
3da95f899e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      guides/Simple_Lighting.md

+ 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;