Changes
Page history
Fix mistake in leveltime definition. It's measured in seconds, not tics.
authored
Mar 06, 2021
by
Hannu Hanhi
Hide whitespace changes
Inline
Side-by-side
SRB2-Shader-Guide.md
View page @
ffca5b3a
...
@@ -43,7 +43,7 @@ The shaders have access to the following uniform variables:
...
@@ -43,7 +43,7 @@ The shaders have access to the following uniform variables:
-
`float lighting`
: The light level of the surface. Ranges from 0 to 255.
-
`float lighting`
: The light level of the surface. Ranges from 0 to 255.
-
`float fade_start`
: The start of the light fade in the colormap. Ranges from 0 to 31.
-
`float fade_start`
: The start of the light fade in the colormap. Ranges from 0 to 31.
-
`float fade_end`
: The end of the light fade in the colormap. Ranges from 0 to 31.
-
`float fade_end`
: The end of the light fade in the colormap. Ranges from 0 to 31.
-
`float leveltime`
: The time in the level.
Increments by 1 for each tic
.
-
`float leveltime`
: The time in the level.
Measured in seconds
.
### Shader compatibility and errors
### Shader compatibility and errors
...
...
...
...