Directional3DLight constructor

Directional3DLight({
  1. Vector3? direction,
  2. (double, double, double) color = const (1.0, 1.0, 1.0),
})

A white sun shining down and forward.

Implementation

Directional3DLight({Vector3? direction, this.color = const (1.0, 1.0, 1.0)})
  : direction = direction ?? (Vector3(0.3, 1, 0.5)..normalize());