PointLight constructor

const PointLight({
  1. required Vector3 position,
  2. Vector3 color = const Vector3(1, 1, 1),
  3. double intensity = 1000,
  4. double falloffRadius = 10,
  5. bool castShadows = true,
})

Creates a point light.

Implementation

const PointLight({
  required this.position,
  super.color,
  super.intensity = 1000,
  this.falloffRadius = 10,
  super.castShadows,
}) : assert(falloffRadius > 0);