BBMOD_BaseShader.set_ambient_light DEPRECATED

A function defined in BBMOD_BaseShader.gml

set_ambient_light([_up[, _down[, _dir]]])

Description

Sets the BBMOD_U_LIGHT_AMBIENT_UP, BBMOD_U_LIGHT_AMBIENT_DOWN and BBMOD_U_LIGHT_AMBIENT_DIR_UP uniforms.

Arguments

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.

Returns

Struct.BBMOD_BaseShader Returns self.

Deprecated

Please use bbmod_shader_set_ambient_light instead.

Do you find this page helpful?

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