BBMOD_DefaultShader

Extends BBMOD_BaseShader

constructor

new BBMOD_DefaultShader(_shader, _vertexFormat)

Description

Shader used by the default BBMOD materials.

Arguments

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

Properties

Name Description
MaxPointLights Maximum number of point lights in the shader. This must match with value defined in the raw GameMaker shader!

Methods

Name Description
set_ambient_light Sets the bbmod_LightAmbientUp, bbmod_LightAmbientDown uniforms.
set_directional_light Sets uniforms bbmod_LightDirectionalDir and bbmod_LightDirectionalColor.
set_fog Sets uniforms bbmod_FogColor, bbmod_FogIntensity, bbmod_FogStart and bbmod_FogRcpRange.
set_normal_smoothness Sets the bbmod_NormalSmoothness uniform.
set_point_lights Sets uniform bbmod_LightPointData.
set_specular_color Sets the bbmod_SpecularColor uniform.

See also

BBMOD_DefaultMaterial

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 18, 2022 using GMDoc.