DirectLight class

Constructors

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})
DirectLight.point({double color = 6500, double intensity = 100000, bool castShadows = false, Vector3? position, double falloffRadius = 1.0})
DirectLight.spot({double color = 6500, double intensity = 100000, bool castShadows = true, Vector3? position, Vector3? direction, double falloffRadius = 1.0, double spotLightConeInner = pi / 8, double spotLightConeOuter = pi / 4})
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})

Properties

castShadows bool
final
color double
final
direction ↔ Vector3
latefinal
falloffRadius double
final
hashCode int
The hash code for this object.
no setterinherited
intensity double
final
position ↔ Vector3
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spotLightConeInner double
final
spotLightConeOuter double
final
sunAngularRadius double
final
sunHaloFallof double
final
sunHaloSize double
final
type LightType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited