pointLight

Shortcuts:
  • pl

Light that emits from a single point in space.

Parameters

Name Description Regular Handling Read-Only Handling
Position

The point from which the light emits.

Runtime Baked
Intensity

Brightness that is applied to the Color.

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) Field controls 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) Field/function that controls the slope and coloration of the attenuation 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

  • Light Direction: