Pārlūkot izejas kodu

Fix Simple_Lighting newShader variant;

bjorn 1 nedēļu atpakaļ
vecāks
revīzija
79477f7e3f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      guides/Simple_Lighting.md

+ 2 - 2
guides/Simple_Lighting.md

@@ -32,9 +32,9 @@ Note for now this is just the default LÖVR vertex shader as listed in the [Shad
 
 Now, we define a new shader with customVertex:
 
-    shader = lovr.graphics.newShader(customVertex, nil, {})
+    shader = lovr.graphics.newShader(customVertex, 'unlit', {})
 
-For the newShader method, passing nil as an argument will use the default fragment shader. Now, to enable the shader, we add to lovr.draw():
+For now, we are using LÖVR's default `unlit` shader for the fragment shader. Now, to enable the shader, we add to lovr.draw():
 
     pass:setShader(shader)