DirectLight.spot constructor

DirectLight.spot({
  1. double color = 6500,
  2. double intensity = 100000,
  3. bool castShadows = true,
  4. Vector3? position,
  5. Vector3? direction,
  6. double falloffRadius = 1.0,
  7. double spotLightConeInner = pi / 8,
  8. double spotLightConeOuter = pi / 4,
})

Implementation

DirectLight.spot({
  double color = 6500,
  double intensity = 100000,
  bool castShadows = true,
  Vector3? position,
  Vector3? direction,
  double falloffRadius = 1.0,
  double spotLightConeInner = pi / 8,
  double spotLightConeOuter = pi / 4,
}) : this(
  type: LightType.SPOT,
  color: color,
  intensity: intensity,
  castShadows: castShadows,
  position: position ?? Vector3(0, 1, 0),
  direction: direction ?? Vector3(0, -1, 0),
  falloffRadius: falloffRadius,
  spotLightConeInner: spotLightConeInner,
  spotLightConeOuter: spotLightConeOuter,
);