On
Shadows are cast from this object.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Field
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
On = 1
Remarks
Shadow rendering will use the same culling mode as specified in the object's shader. Typically this means that single-sided objects (like a Plane or a Quad) do not cast shadows if the light is behind them. Use ShadowCastingMode.TwoSided to treat objects as two-sided for shadow rendering.
Additional Resources: Renderer.shadowCastingMode.