LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

ShadowCastingMode.TwoSided

Description

Shadows are cast from this object, treating it as two-sided.

Shadow rendering will turn off backface culling, even if object's shader has backface culling on. This means that single-sided objects (like a Plane or a Quad) will cast shadows, even if the light is behind them.

See Also: Renderer.shadowCastingMode.