RectAreaLight constructor

RectAreaLight(
  1. dynamic color,
  2. dynamic intensity,
  3. dynamic width,
  4. dynamic height,
)

Implementation

RectAreaLight(color, intensity, width, height) : super(color, intensity) {
  type = 'RectAreaLight';

  this.width = width ?? 10;
  this.height = height ?? 10;
  isRectAreaLight = true;
}