Constructors
Accessors
lightmap
- get lightmap(): null | Texture
Returns null | Texture
- set lightmap(tex): void
Returns void
Methods
applyLightmap
- applyLightmap(): void
Returns void
init
- init(lightmapIndex, lightmapScaleOffset, lightmapTexture): void
Parameters
- lightmapIndex: number
- lightmapScaleOffset: Vector4
- lightmapTexture: Texture
Returns void
updateLightmapUniforms
- updateLightmapUniforms(material): void
Returns void
Apply the lightmap to the object. This will clone the material and set the lightmap texture and scale/offset