DirectionalLight constructor

DirectionalLight(
  1. dynamic color, [
  2. double? intensity
])

Implementation

DirectionalLight(color, [double? intensity]) : super(color, intensity) {
  type = "DirectionalLight";
  position.copy(Object3D.defaultUp);
  updateMatrix();
  target = Object3D();
  shadow = DirectionalLightShadow();
}