RectAreaLight constructor

RectAreaLight({
  1. Vector3? color,
  2. double intensity = 1.0,
  3. double width = 1.0,
  4. double height = 1.0,
  5. double range = 0.0,
})

Creates a RectAreaLight.

Implementation

RectAreaLight({
  Vector3? color,
  this.intensity = 1.0,
  this.width = 1.0,
  this.height = 1.0,
  this.range = 0.0,
}) : color = color ?? Vector3(1.0, 1.0, 1.0);