receiveShadows
Does this object receive shadows?
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool receiveShadows { get; set; }
Remarks
Usually objects should receive shadows, but turning this off can be useful for optimization purposes, in cases of when you know that no shadows will be needed on this particular object.
Note that receive shadows flag is not used when using one of Deferred rendering paths; all objects receive shadows there.
Additional Resources: Renderer.shadowCastingMode.