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