DirectLight constructor
DirectLight({
- required LightType type,
- required double color,
- required double intensity,
- bool castShadows = false,
- required Vector3 direction,
- required Vector3 position,
- double falloffRadius = 1.0,
- double spotLightConeInner = pi / 8,
- double spotLightConeOuter = pi / 4,
- double sunAngularRadius = 0.545,
- double sunHaloSize = 10.0,
- 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,
});