BBMOD_BaseShader

A constructor defined in BBMOD_BaseShader.gml

Extends BBMOD_Shader

new BBMOD_BaseShader(_shader, _vertexFormat)

Description

Base class for BBMOD shaders.

Arguments

Name Type Description
_shader Asset.GMShader The shader resource.
_vertexFormat Struct.BBMOD_VertexFormat The vertex format required by the shader.

Properties

Name Description
MaxPunctualLights DEPRECATED Maximum number of punctual lights in the shader.

Methods

Inherited methods

Name Description
add_variant Adds a shader variant to be used with a specific vertex format.
get_variant Retrieves a shader variant for given vertex format.
has_variant Checks whether the shader has a variant for given vertex format.
is_compiled Checks whether all shader variants are compiled.
is_current Checks if the shader is currently in use.
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_material Sets shader uniforms using values from the material.

Child structs

BBMOD_DefaultShader, BBMOD_TerrainShader

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.