A function defined in BBMOD_BaseShader.gml
set_ambient_light([_up[, _down[, _dir]]])
Sets the BBMOD_U_LIGHT_AMBIENT_UP, BBMOD_U_LIGHT_AMBIENT_DOWN and BBMOD_U_LIGHT_AMBIENT_DIR_UP uniforms.
| Name | Type | Description |
|---|---|---|
| _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. |
Struct.BBMOD_BaseShader Returns self.
Please use bbmod_shader_set_ambient_light instead.
Copyright © 2025, BlueBurn. Built on April 12, 2025 using GMDoc.