We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b39d2b6 commit f6885a5Copy full SHA for f6885a5
api/lovr/graphics/newShader.lua
@@ -7,7 +7,7 @@ return {
7
Shader code is usually written in GLSL and compiled to SPIR-V bytecode. SPIR-V is faster to
8
load but requires a build step. Either form can be used to create a shader.
9
10
- 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() { ... }`
11
function that is called for each vertex or fragment. If the `raw` option is set to `true`, the
12
code is treated as a raw shader and the `lovrmain` function is not required. In this case, the
13
shader code is expected to implement its own `main` function.
0 commit comments