소스 검색

Shading language docs: Fix light processing

Closes https://github.com/godotengine/godot-docs/issues/1184.
Max Hilbrunner 7 년 전
부모
커밋
3c663d56d9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
     }