Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

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.

Did you find this page useful? Please give it a rating: