A function defined in __bbmod_shader_set.gml
bbmod_shader_set_ambient_light(_shader[, _up[, _down[, _dir[, _isLightmapped]]]])
Sets the BBMOD_U_LIGHT_AMBIENT_UP, BBMOD_U_LIGHT_AMBIENT_DOWN and BBMOD_U_LIGHT_AMBIENT_DIR_UP uniforms.
Name | Type | Description |
---|---|---|
_shader | Asset.GMShader |
The shader to set the uniforms for. |
_up | Struct.BBMOD_Color |
Ambient light color on the upper hemisphere. If undefined , then the value set by bbmod_light_ambient_set_up is used. |
_down | Struct.BBMOD_Color |
Ambient light color on the lower hemisphere. If undefined , then the value set by bbmod_light_ambient_set_down is used. |
_dir | Struct.BBMOD_Vec3 |
Direction to the ambient light's upper hemisphere. If undefined , then the value set by bbmod_light_ambient_set_dir is used. |
_isLightmapped | Bool |
Use true in case the shader renders lightmapped models. Defaults to false. |
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.