This component is automatically added by the Renderer component if the object has lightmap uvs AND we have a lightmap.

Constructors

Accessors

Methods

  • Apply the lightmap to the object. This will clone the material and set the lightmap texture and scale/offset

    Returns void

  • Parameters

    • lightmapIndex: number
    • lightmapScaleOffset: Vector4
    • lightmapTexture: Texture

    Returns void

  • Parameters

    Returns void