---
title: LightmapComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/lightmapcomponent
---

# LightmapComponent

## Declaration

```swift
struct LightmapComponent
```

## Topics

### Creating a lightmap component

- [init(resource:)](realitykit/lightmapcomponent/init(resource:).md)
- [lightmap](realitykit/lightmapcomponent/lightmap.md)

### Mapping entities to the lightmap

- [entityIndexInLightmapResource](realitykit/lightmapcomponent/entityindexinlightmapresource.md)
- [LightmapComponent.EntityIndex](realitykit/lightmapcomponent/entityindex.md)

### Adjusting indirect lighting

- [indirectIrradianceContributionScale](realitykit/lightmapcomponent/indirectirradiancecontributionscale.md)

### Extracting baked surfaces

- [LightmapComponent.SurfaceExtractor](realitykit/lightmapcomponent/surfaceextractor.md)
- [LightmapComponent.FinalShadedColorBakeMaterial](realitykit/lightmapcomponent/finalshadedcolorbakematerial.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)

## See Also

### Lightmaps and light probes

- [LightmapResource](realitykit/lightmapresource.md)
- [DiffuseProbeResource](realitykit/diffuseproberesource.md)
- [DiffuseLightProbeGroupComponent](realitykit/diffuselightprobegroupcomponent.md)
- [DiffuseLightProbeReceiverComponent](realitykit/diffuselightprobereceivercomponent.md)
