mode property
ShadowCatcherMode
get
mode
How the shadow term is evaluated; see ShadowCatcherMode.
Defaults to ShadowCatcherMode.live, which stays correct as lights and casters move. Switch to ShadowCatcherMode.baked for a static product scene, cheaper and softer for free, calling markBakedShadowsDirty after any discrete light or model change.
Implementation
ShadowCatcherMode get mode => _mode;
set
mode
(ShadowCatcherMode value)
Implementation
set mode(ShadowCatcherMode value) {
if (_mode == value) return;
_mode = value;
_paramsDirty = true;
if (value == ShadowCatcherMode.live) {
_bakedTexture = null;
} else {
_bakeDirty = true;
}
}