ShadowCatcherMaterial constructor

ShadowCatcherMaterial({
  1. Color shadowColor = const Color(0xFF000000),
  2. double shadowIntensity = 0.8,
  3. double aoStrength = 0.5,
  4. double softness = 0.0,
  5. double fadeStart = 0.0,
  6. double fadeEnd = 0.0,
  7. ShadowCatcherMode mode = ShadowCatcherMode.live,
})

Creates a shadow catcher. All parameters can be reassigned later.

Implementation

ShadowCatcherMaterial({
  Color shadowColor = const Color(0xFF000000),
  double shadowIntensity = 0.8,
  double aoStrength = 0.5,
  double softness = 0.0,
  double fadeStart = 0.0,
  double fadeEnd = 0.0,
  ShadowCatcherMode mode = ShadowCatcherMode.live,
}) : _shadowColor = shadowColor,
     _shadowIntensity = shadowIntensity,
     _aoStrength = aoStrength,
     _softness = softness,
     _fadeStart = fadeStart,
     _fadeEnd = fadeEnd,
     _mode = mode;