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

pointLight

Shortcuts:

Light eminating from a single point in space, with optional distance attentuation.

Parameters

  • Position: The point from which the light eminates.
  • Intensity: Brightness of the light.
  • Color: Color of the light.
  • Attenuated: Whether to limit the light range.
  • Attenuation Start: The distance at which the light starts to dim.
  • Attenuation End: The distance at which the light is fully dimmed.
  • Enable Shadow:

Inputs

  • Color Field: (optional) Optional field that can control the color of the light based on the position of surface hits where it is being applied. The resulting color is multiplied by the `Color` parameter and `Intensity`.
    • Coordinate Types: vec3
    • Context Types: LightContext
    • Return Types: float vec4
  • Attenuation Field: (optional) Optional field/function that controls the slope and coloration of the attentuation rolloff is shaped. It can be used to make the light shift from one color to another, or to control the sharpness of the rolloff.
    • Coordinate Types: float
    • Context Types: LightContext
    • Return Types: float vec4