Component reference
FX components
Shadow component
3min
The Shadow component controls whether an entity casts and receives shadows in the scene. It's essential for adding realism to your scene by simulating how objects block light and create shadows on themselves and other surfaces.
Property | Description |
---|---|
Cast Shadow | When enabled, the entity casts shadows onto other surfaces. |
Receive Shadow | When enabled, the entity receives shadows from other objects, including itself. |
- Directional light interaction: Shadows are cast based on the scene's Directional Light. Ensure you have a directional light set up for shadows to appear.
- Independent behavior: Both Cast shadow and Receive shadow can be enabled independently to achieve the desired visual effect.
- Performance reminder: Enabling shadows on many objects can impact rendering performance, especially on lower-end devices.
Updated 20 Dec 2024
Did this page help you?