DirectLight.point constructor

DirectLight.point({
  1. double color = 6500,
  2. double intensity = 100000,
  3. bool castShadows = false,
  4. Vector3? position,
  5. double falloffRadius = 1.0,
})

Implementation

DirectLight.point({
  double color = 6500,
  double intensity = 100000,
  bool castShadows = false,
  Vector3? position,
  double falloffRadius = 1.0,
}) : this(
  type: LightType.POINT,
  color: color,
  intensity: intensity,
  castShadows: castShadows,
  position: position ?? Vector3(0, 1, 0),
  direction: Vector3.zero(),
  falloffRadius: falloffRadius,
);