Contents

LightmapComponent

Describes how a lightmap is applied to parts of the scene.

Declaration

struct LightmapComponent

Overview

LightmapComponent specifies which children of its owning entity should have a lightmap applied to them, and connects those children to their corresponding data in a LightmapResource.

To use LightmapComponent, first create a LightmapResource using textures produced by an offline baking process. Then, create a new LightmapComponent backed by the LightmapResource, and use the entityIndexInLightmapResource property to map each entity that you wish to be lightmapped, to its corresponding slot in the lightmap resource. Finally, add the LightmapComponent to an entity that sits above all of the lightmapped entities in the hierachy.

Topics

Classes

Structures

Initializers

Instance Properties

Type Aliases

See Also

Related Documentation

Lightmaps and light probes