bbmod_shader_set_ibl

A function defined in __bbmod_shader_set.gml

bbmod_shader_set_ibl(_shader[, _ibl[, _isLightmapped]])

Description

Sets a fragment shader uniforms BBMOD_U_IBL_ENABLE, BBMOD_U_IBL_TEXEL and BBMOD_U_IBL. These are required for image based lighting.

Arguments

Name Type Description
_shader Asset.GMShader The shader to set the uniforms for.
_ibl Struct.BBMOD_ImageBasedLight The image based light. If undefined, then the value set by bbmod_ibl_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.
Do you find this page helpful?

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