bbmod_shader_set_directional_light

A function defined in __bbmod_shader_set.gml

bbmod_shader_set_directional_light(_shader[, _light[, _isLightmapped])

Description

Sets uniforms BBMOD_U_LIGHT_DIRECTIONAL_DIR and BBMOD_U_LIGHT_DIRECTIONAL_COLOR.

Arguments

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.

See also

BBMOD_DirectionalLight

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.