PointLight constructor

PointLight(
  1. dynamic color, [
  2. double? intensity,
  3. double? distance,
  4. double? decay,
])

Implementation

PointLight(color, [double? intensity, double? distance, double? decay])
    : super(color, intensity) {
  // remove default 0  for js 0 is false  but for dart 0 is not.
  // PointLightShadow.updateMatrices  far value
  this.distance = distance;
  this.decay = decay ?? 1; // for physically correct lights, should be 2.

  shadow = PointLightShadow();
}