---
title: lightSize
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/spotlightcomponent/shadow/lightsize
---

# lightSize

The light size that determines the softness of the shadows Larger size would mean a larger penumbra and a larger transition range from fully shadowed to lit. It is the radius of the light in world space units. It is also modulated by the attenaution radius, i.e., lights with larger attenuation radius need larger light size.

## Declaration

```swift
var lightSize: Float { get set }
```

## See Also

### Configuring shadow quality

- [quality](realitykit/spotlightcomponent/shadow/quality.md)
- [SpotLightComponent.Shadow.QualityMode](realitykit/spotlightcomponent/shadow/qualitymode.md)
