Explorar o código

Shading language docs: Fix light processing

Closes https://github.com/godotengine/godot-docs/issues/1184.
Max Hilbrunner %!s(int64=7) %!d(string=hai) anos
pai
achega
3c663d56d9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
     }