DirectLight constructor

DirectLight({
  1. required LightType type,
  2. required double color,
  3. required double intensity,
  4. bool castShadows = false,
  5. required Vector3 direction,
  6. required Vector3 position,
  7. double falloffRadius = 1.0,
  8. double spotLightConeInner = pi / 8,
  9. double spotLightConeOuter = pi / 4,
  10. double sunAngularRadius = 0.545,
  11. double sunHaloSize = 10.0,
  12. double sunHaloFallof = 80.0,
})

Implementation

DirectLight({
  required this.type,
  required this.color,
  required this.intensity,
  this.castShadows = false,
  required this.direction,
  required this.position,
  this.falloffRadius = 1.0,
  this.spotLightConeInner = pi / 8,
  this.spotLightConeOuter = pi / 4,
  this.sunAngularRadius = 0.545,
  this.sunHaloSize = 10.0,
  this.sunHaloFallof = 80.0,
});