Light constructor

Light({
  1. String name = 'light',
  2. LightType type = LightType.directional,
  3. Color color = const Color(0xFFFFFFFF),
  4. double intensity = 1.0,
  5. Vector3? direction,
  6. double range = 0,
  7. double spotAngle = 0.5,
})

Implementation

Light({
  super.name = 'light',
  this.type = LightType.directional,
  this.color = const Color(0xFFFFFFFF),
  this.intensity = 1.0,
  Vector3? direction,
  this.range = 0,
  this.spotAngle = 0.5,
}) : direction = direction ?? Vector3(0, -1, 0.5)
       ..normalize();