DirectionalLight constructor
A white sun shining down and forward.
Implementation
DirectionalLight({Vector3? direction, this.color = const (1.0, 1.0, 1.0)})
: direction = direction ?? (Vector3(0.3, 1, 0.5)..normalize());
A white sun shining down and forward.
DirectionalLight({Vector3? direction, this.color = const (1.0, 1.0, 1.0)})
: direction = direction ?? (Vector3(0.3, 1, 0.5)..normalize());