---
title: EnvironmentLightingConfigurationComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/environmentlightingconfigurationcomponent
---

# EnvironmentLightingConfigurationComponent

A component that scales the amount of light that an entity receives from its environment.

## Declaration

```swift
struct EnvironmentLightingConfigurationComponent
```

## Overview

Overview When rendering a RealityKit scene, you can control how much the environment’s lighting affects the virtual objects in your scene, such as the lighting from your real-world surroundings, a virtual environment, or both. Use an EnvironmentLightingConfigurationComponent to configure this amount for an entity. For example, create an entity that receives no lighting from its environment by setting the weight to 0.0. let spaceship = try await Entity(named: "spaceship") spaceship.components.set(EnvironmentLightingConfigurationComponent(     environmentLightingWeight: 0.0)) note: The weight value of the component also affects the lighting of the entity’s descendants.

## Topics

### Creating an environment-lighting configuration component

- [init(environmentLightingWeight:)](realitykit/environmentlightingconfigurationcomponent/init(environmentlightingweight:).md)

### Scaling the environment-lighting contribution

- [environmentLightingWeight](realitykit/environmentlightingconfigurationcomponent/environmentlightingweight.md)

### Operators

- [==(_:_:)](realitykit/environmentlightingconfigurationcomponent/==(_:_:).md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)
- [Equatable](swift/equatable.md)

## See Also

### Environment

- [EnvironmentResource](realitykit/environmentresource.md)
- [VirtualEnvironmentProbeComponent](realitykit/virtualenvironmentprobecomponent.md)
- [VirtualEnvironmentProbeComponent.Probe](realitykit/virtualenvironmentprobecomponent/probe.md)
- [VirtualEnvironmentProbeComponent.Source](realitykit/virtualenvironmentprobecomponent/source-swift.enum.md)
