Skip to main content Link Menu Expand (external link) Document Search Copy Copied

spotLight

Cone-shaped spotlight.

This is similar to the Light COMP in spotlight mode.

Parameters

  • Intensity:
  • Color:
  • Position: The position of the tip of the light cone.
  • Direction: The direction which the cone faces, as a vector.
  • Cone Angle: The width of the cone.
  • Cone Delta: The amount of blending between the inside and outside of the cone.
  • Attenuated: Whether to adjust the amount of light depending on distance.
  • Attenuation Start: The start of the blending range, inside which the light will be at full intensity.
  • Attenuation End: The end of the blending range, outside which the light will be at zero intensity.
  • Enable Shadow:

Inputs

  • Color Field: (optional) Optional field that controls the color of the light.
    • Coordinate Types: vec3
    • Context Types: LightContext
    • Return Types: float vec4
  • Attenuation Field: (optional) Optional function that controls the color/intensity of the light based on the attenuation distance.
    • Coordinate Types: float
    • Context Types: LightContext
    • Return Types: float vec4