LightmapResource
A resource containing references to lightmap texture atlases and descriptions of how parts of the atlases map to meshes in the scene. At a high level, this resource comprises two parts:
Declaration
class LightmapResourceOverview
A set of layered textures containing lightmap data.
A set of EntityLightmapDescriptors specifying atlas packing. Each descriptor specifies how meshes belonging to the specific entity are mapped to the lightmap atlas (e.g. which texture and which layer contain the relevant lightmap data, and what transform to apply to the lightmap UVs to get the correct data). Both parts (the lightmap data and atlas packing) are expected to be generated by an offline process. This resource is only intended for storing and retrieving them. Importantly, this resource does not store references to runtime Entities. The correspondence between runtime Entities and their matching EntityLightmapDescriptors is established by LightmapComponent.
Topics
Creating a lightmap resource
init(atlasTextures:perEntityData:)init(perEntityData:)LightmapResource.EntityLightmapDescriptorLightmapResource.MeshPartLightmapDescriptor