PointLight constructor
color - (optional) hexadecimal color of the light. Default
is 0xffffff (white).
intensity - (optional) numeric value of the light's
strength/intensity. Default is 1.
distance - Maximum range of the light. Default is 0 (no
limit).
decay - The amount the light dims along the distance of the
light. Default is 2.
Implementation
PointLight([super.color, super.intensity, double? distance, double? decay]){
// 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();
type = "PointLight";
}