# shadowCastingMode

> Allows you to set the shadow casting mode for the terrain.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public ShadowCastingMode shadowCastingMode { get; set; }
```

### Remarks

[ShadowCastingMode](/engine/6000.0/script-reference/unityengine/rendering/shadowcastingmode.md) enum defines how and if shadows are cast from this object. Typically shadows are either cast or not, but it's also possible to make shadows two-sided (useful for otherwise single-sided geometry) or make a shadows-only object (that is otherwise invisible in the Scene, but casts a shadow).
