PunctualLight class final

A point or spot light.

Constructors

PunctualLight({required LightType type, Vector3? position, Vector3? direction, (double, double, double) color = (1.0, 1.0, 1.0), double intensity = 10.0, double? range, double innerConeAngle = 0.0, double outerConeAngle = 0.7853981633974483})
A light of type at position.

Properties

color ↔ (double, double, double)
Linear colour.
getter/setter pair
direction → Vector3
Spot: the way it points (light travels).
final
hashCode → int
The hash code for this object.
no setterinherited
innerConeAngle ↔ double
Spot: full intensity inside.
getter/setter pair
intensity ↔ double
Candela-ish multiplier.
getter/setter pair
outerConeAngle ↔ double
Spot: dark outside.
getter/setter pair
position → Vector3
Where it is.
final
range ↔ double?
Where it stops, or null.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ LightType
Point or spot.
getter/setter pair

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