Browse Source

Update documentation.

Fixed a small mistake.
Wolfgang Schreurs 5 tháng trước cách đây
mục cha
commit
7b1e5685e6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/lovr/graphics/newShader.lua

+ 1 - 1
api/lovr/graphics/newShader.lua

@@ -7,7 +7,7 @@ return {
     Shader code is usually written in GLSL and compiled to SPIR-V bytecode.  SPIR-V is faster to
     load but requires a build step.  Either form can be used to create a shader.
 
-    By default, the provided shader code is expected to implement a `void lovrmain() { ... }`
+    By default, the provided shader code is expected to implement a `vec4 lovrmain() { ... }`
     function that is called for each vertex or fragment.  If the `raw` option is set to `true`, the
     code is treated as a raw shader and the `lovrmain` function is not required. In this case, the
     shader code is expected to implement its own `main` function.