Procházet zdrojové kódy

Merge pull request #1703 from pgruenbacher/master

simple fixe for shading language
Max Hilbrunner před 7 roky
rodič
revize
6027799479
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tutorials/shading/shading_language.rst

+ 1 - 1
tutorials/shading/shading_language.rst

@@ -769,7 +769,7 @@ happen later, though) with the following code, so it can be done manually:
     void vertex() {
 
         VERTEX = (MODELVIEW_MATRIX * vec4(VERTEX, 1.0)).xyz;
-        NORMAL = (MODELVIEW_MATRIX * vec4(VERTEX, 0.0)).xyz;
+        NORMAL = (MODELVIEW_MATRIX * vec4(NORMAL, 0.0)).xyz;
         // same as above for binormal and tangent, if normal mapping is used
     }