pointLight

Shortcuts:
  • pl

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

Parameters

Name Description Regular Handling Read-Only Handling
Position

The point from which the light eminates.

Runtime Baked
Intensity

Brightness of the light.

Runtime Baked
Color

Color of the light.

Runtime Baked
Attenuated

Whether to limit the light range.

Runtime Semi-Baked
Attenuation Start

The distance at which the light starts to dim.

Runtime Baked
Attenuation End

The distance at which the light is fully dimmed.

Runtime Baked
Enable Shadow Runtime Semi-Baked

Inputs

  • Position 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: vec4
  • Color 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: vec3
    • Context Types: LightContext
    • Return Types: float vec4
    • Supports Variables: lightdir
    • Supports Variables From Inputs: positionField
  • Attenuation Field: (optional)
    • Coordinate Types: float
    • Context Types: LightContext
    • Return Types: float vec4
    • Supports Variables: lightdir
    • Supports Variables From Inputs: positionField colorField

Variables

  • lightdir: