BBMOD_LightmapMaterial

Extends BBMOD_DefaultMaterial

constructor

new BBMOD_LightmapMaterial([_shader])

Description

A material that can be used when rendering lightmapped models with two UV channels.

Arguments

Name Type Description
_shader Struct.BBMOD_LightmapShader 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
Lightmap A texture with RGBM encoded lightmap. Overrides the default lightmap texture defined with bbmod_lightmap_set.

See also

BBMOD_LightmapShader

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.