Selaa lähdekoodia

Merge pull request #1703 from pgruenbacher/master

simple fixe for shading language
Max Hilbrunner 7 vuotta sitten
vanhempi
commit
6027799479
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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
     }