소스 검색

Update documentation.

Fixed a small mistake.
Wolfgang Schreurs 5 달 전
부모
커밋
7b1e5685e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.