A function defined in __bbmod_shader_set.gml
bbmod_shader_set_fog(_shader[, _color[, _intensity[, _start[, _end]]]])
Sets uniforms BBMOD_U_FOG_COLOR, BBMOD_U_FOG_INTENSITY, BBMOD_U_FOG_START and BBMOD_U_FOG_RCP_RANGE.
Name | Type | Description |
---|---|---|
_shader | Asset.GMShader |
The shader to set the uniform for. |
_color | Struct.BBMOD_Color |
The color of the fog. If undefined , then the value set by bbmod_fog_set_color is used. |
_intensity | Real |
The fog intensity. If undefined , then the value set by bbmod_fog_set_intensity is used. |
_start | Real |
The distance at which the fog starts. If undefined , then the value set by bbmod_fog_set_start is used. |
_end | Real |
The distance at which the fog has maximum intensity. If undefined , then the value set by bbmod_fog_set_end is used. |
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.