文档

Unity Engine

Unity Engine

On

Shadows are cast from this object.
阅读时间1 分钟最后更新于 1 个月前

Definition

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.