RectAreaLight constructor
color
- (optional) hexadecimal color of the light. Default
is 0xffffff (white).
intensity
- (optional) the light's intensity, or brightness.
Default is 1
.
width
- (optional) width of the light. Default is 10
.
height
- (optional) height of the light. Default is 10
.
Implementation
RectAreaLight([super.color, super.intensity, double? width, double? height]){
type = 'RectAreaLight';
this.width = width ?? 10;
this.height = height ?? 10;
isRectAreaLight = true;
}