Browse Source

Shading language docs: Fix light processing

Closes https://github.com/godotengine/godot-docs/issues/1184.
Max Hilbrunner 7 years ago
parent
commit
3c663d56d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tutorials/shading/shading_language.rst

+ 1 - 1
tutorials/shading/shading_language.rst

@@ -340,7 +340,7 @@ and does not run if no lights affect the object).
     shader_type spatial;
 
     void light() {
-        COLOR = vec3(0.0, 1.0, 0.0);
+        DIFFUSE_LIGHT = vec3(0.0, 1.0, 0.0);
     }