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
This component is automatically added by the Renderer component if the object has lightmap uvs AND we have a lightmap.