A function defined in __bbmod_shader_set.gml
bbmod_shader_set_directional_light(_shader[, _light[, _isLightmapped])
Sets uniforms BBMOD_U_LIGHT_DIRECTIONAL_DIR and BBMOD_U_LIGHT_DIRECTIONAL_COLOR.
Name | Type | Description |
---|---|---|
_shader | Asset.GMShader |
The shader to set the uniforms for. |
_light | Struct.BBMOD_DirectionalLight |
The directional light. If undefined , then the value set by bbmod_light_directional_set is used. If the light is not enabled then it is not passed. |
_isLightmapped | Bool |
Use true in case the shader renders lightmapped models. Defaults to false. |
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.