A function defined in __bbmod_shader_set.gml
bbmod_shader_set_punctual_lights(_shader[, _lights[, _isLightmapped]])
Sets uniforms BBMOD_U_LIGHT_PUNCTUAL_DATA_A and BBMOD_U_LIGHT_PUNCTUAL_DATA_B.
Name | Type | Description |
---|---|---|
_shader | Asset.GMShader |
The shader to set the uniform for. |
_lights | Array<Struct.BBMOD_PunctualLight> |
An array of punctual lights. If undefined , then the lights defined using bbmod_light_punctual_add are passed. Only enabled lights will be 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.