Procházet zdrojové kódy

Update documentation.

Fixed a small mistake.
Wolfgang Schreurs před 6 měsíci
rodič
revize
7b1e5685e6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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.