DirectionalLight class final

The sun: light travelling along direction.

Constructors

DirectionalLight({Vector3? direction, (double, double, double) color = (1.0, 1.0, 1.0)})
A white sun shining down and forward.

Properties

color ↔ (double, double, double)
Linear colour.
getter/setter pair
direction → Vector3
The way the light travels (+Y is down).
final
enabled ↔ bool
Whether it shines.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
intensity ↔ double
Lux-ish multiplier.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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