DirectLight.sun constructor

DirectLight.sun({
  1. double color = 6500,
  2. double intensity = 100000,
  3. bool castShadows = true,
  4. Vector3? direction,
  5. double sunAngularRadius = 0.545,
  6. double sunHaloSize = 10.0,
  7. double sunHaloFalloff = 80.0,
})

Implementation

DirectLight.sun({
  double color = 6500,
  double intensity = 100000,
  bool castShadows = true,
  Vector3? direction,
  double sunAngularRadius = 0.545,
  double sunHaloSize = 10.0,
  double sunHaloFalloff = 80.0,
}) : this(
  type: LightType.DIRECTIONAL,
  color: color,
  intensity: intensity,
  castShadows: castShadows,
  position: Vector3(0, 0, 0),
  direction: direction ?? Vector3(0, -1, 0),
  sunAngularRadius: sunAngularRadius,
  sunHaloSize: sunHaloSize,
  sunHaloFallof: sunHaloFalloff,
);