Changes
Page history
Update SRB2 Shader Guide
authored
Dec 22, 2020
by
Hannu Hanhi
Show whitespace changes
Inline
Side-by-side
SRB2-Shader-Guide.md
View page @
373dc539
...
@@ -38,7 +38,7 @@ The shader source consists of code written in the GLSL language. This guide assu
...
@@ -38,7 +38,7 @@ The shader source consists of code written in the GLSL language. This guide assu
The shaders have access to the following uniform variables:
The shaders have access to the following uniform variables:
-
`vec4 poly_color`
: This is a RGBA color, that is always white. The alpha value is set depending on the translucency of the surface.
-
`vec4 poly_color`
: This is a RGBA color, that is always white. The alpha value is set depending on the translucency of the surface.
-
`vec4 tint_color`
: The color of the colormap (linedef 606) applied to the surface.
`0,0,0,0`
for no colormap.
-
`vec4 tint_color`
: The color of the colormap (linedef
type
606) applied to the surface.
`0,0,0,0`
for no colormap.
-
`vec4 fade_color`
: The color that light fades into. It is black by default and can be modified by the colormap linedef special.
-
`vec4 fade_color`
: The color that light fades into. It is black by default and can be modified by the colormap linedef special.
-
`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.
...
...
...
...