DirectionalLight constructor

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

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());