Skip to content

Commit f6885a5

Browse files
wolf81bjornbytes
authored andcommitted
Update documentation.
Fixed a small mistake.
1 parent b39d2b6 commit f6885a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/lovr/graphics/newShader.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ return {
77
Shader code is usually written in GLSL and compiled to SPIR-V bytecode. SPIR-V is faster to
88
load but requires a build step. Either form can be used to create a shader.
99
10-
By default, the provided shader code is expected to implement a `void lovrmain() { ... }`
10+
By default, the provided shader code is expected to implement a `vec4 lovrmain() { ... }`
1111
function that is called for each vertex or fragment. If the `raw` option is set to `true`, the
1212
code is treated as a raw shader and the `lovrmain` function is not required. In this case, the
1313
shader code is expected to implement its own `main` function.

0 commit comments

Comments
 (0)