PunctualLight constructor
PunctualLight({})
A light of type at position.
Implementation
PunctualLight({
required this.type,
Vector3? position,
Vector3? direction,
this.color = const (1.0, 1.0, 1.0),
this.intensity = 10.0,
this.range,
this.innerConeAngle = 0.0,
this.outerConeAngle = 0.7853981633974483,
}) : position = position ?? Vector3.zero(),
direction = direction ?? Vector3(0, 1, 0);