BBMOD_BaseMaterial

Extends BBMOD_Material

constructor

new BBMOD_BaseMaterial([_shader])

Description

A material that can be used when rendering models.

Arguments

Name Type Description
_shader Struct.BBMOD_Shader A shader that the material uses in the BBMOD_ERenderPass.Forward pass. Leave undefined if you would like to use BBMOD_Material.set_shader to specify shaders used in specific render passes.

Properties

Name Description
BaseOpacityMultiplier Multiplier for BBMOD_Material.BaseOpacity. Default value is BBMOD_C_WHITE.
ShadowmapBias Controls range over which the mesh smoothly transitions into shadow. This can be useful for example for billboarded particles, where harsh transition does not look good. Default value is 0, which means no smooth transition.
TextureOffset An offset of texture UV coordinates. Defaults to (0, 0). Using this you can control texture's position within texture page.
TextureScale A scale of texture UV coordinates. Defaults to (1, 1). Using this you can control texture's size within texture page.

See also

BBMOD_Shader

Do you find this page helpful?

Copyright © 2023, BlueBurn. Built on March 24, 2023 using GMDoc.