Ver Fonte

Fix Simple_Lighting newShader variant;

bjorn há 1 semana atrás
pai
commit
5f9d827b1f
1 ficheiros alterados com 2 adições e 2 exclusões
  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)