A variable defined in bbmod_lightmapshader.gml
Extends BBMOD_DefaultLightmapShader
new BBMOD_LightmapShader(_shader, _vertexFormat)
Name | Description |
---|---|
MaxPunctualLights DEPRECATED | Maximum number of punctual lights in the shader. |
Name | Description |
---|---|
add_variant | Adds a shader variant to be used with a specific vertex format. |
destroy | Frees resources used by the struct from memory. |
get_variant | Retrieves a shader variant for given vertex format. |
has_variant | Checks whether the shader has a variant for given vertex format. |
implement | Implements an interface into the struct. |
implements | Checks whether the struct implements an interface. |
is_compiled | Checks whether all shader variants are compiled. |
is_current | Checks if the shader is currently in use. |
is_instance | Checks if the struct inherits from given class. |
on_reset | A function executed when the shader is reset. |
on_set | A function executed when the shader is set. |
reset | Unsets the shaders. |
set | Sets the shader as the current shader. |
set_alpha_test | Sets the BBMOD_U_ALPHA_TEST uniform. |
set_ambient_light | Sets the BBMOD_U_LIGHT_AMBIENT_UP, BBMOD_U_LIGHT_AMBIENT_DOWN and BBMOD_U_LIGHT_AMBIENT_DIR_UP uniforms. |
set_batch_data | Sets the BBMOD_U_BATCH_DATA uniform. |
set_bones | Sets the BBMOD_U_BONES uniform. |
set_cam_pos | Sets a fragment shader uniform BBMOD_U_CAM_POS to the given position. |
set_directional_light | Sets uniforms BBMOD_U_LIGHT_DIRECTIONAL_DIR and BBMOD_U_LIGHT_DIRECTIONAL_COLOR. |
set_emissive | Sets the BBMOD_U_EMISSIVE uniform. |
set_exposure | Sets the BBMOD_U_EXPOSURE uniform. |
set_fog | Sets uniforms BBMOD_U_FOG_COLOR, BBMOD_U_FOG_INTENSITY, BBMOD_U_FOG_START and BBMOD_U_FOG_RCP_RANGE. |
set_ibl | Sets a fragment shader uniforms BBMOD_U_IBL_ENABLE, BBMOD_U_IBL_TEXEL and BBMOD_U_IBL. These are required for image based lighting. |
set_instance_id | Sets the BBMOD_U_INSTANCE_ID uniform. |
set_lightmap | Sets the BBMOD_U_LIGHTMAP uniform. |
set_material | Sets shader uniforms using values from the material. |
set_material_index | Sets the BBMOD_U_MATERIAL_INDEX uniform. |
set_metallic_ao | Sets uniforms BBMOD_U_MATERIAL and BBMOD_U_IS_METALLIC. |
set_normal_roughness | Sets uniforms BBMOD_U_NORMAL_W and BBMOD_U_IS_ROUGHNESS. |
set_normal_smoothness | Sets uniforms BBMOD_U_NORMAL_W and BBMOD_U_IS_ROUGHNESS. |
set_point_lights DEPRECATED | Sets uniforms BBMOD_U_LIGHT_PUNCTUAL_DATA_A and BBMOD_U_LIGHT_PUNCTUAL_DATA_B. |
set_punctual_lights | Sets uniforms BBMOD_U_LIGHT_PUNCTUAL_DATA_A and BBMOD_U_LIGHT_PUNCTUAL_DATA_B. |
set_specular_color | Sets uniforms BBMOD_U_MATERIAL and BBMOD_U_IS_METALLIC. |
set_subsurface | Sets the BBMOD_U_SUBSURFACE uniform. |
set_texture_offset | Sets the BBMOD_U_TEXTURE_OFFSET uniform to the given offset. |
set_texture_scale | Sets the BBMOD_U_TEXTURE_SCALE uniform to the given scale. |
Please use BBMOD_DefaultLightmapShader instead.
Copyright © 2023, BlueBurn. Built on May 02, 2023 using GMDoc.