Light2DResult
Defined in: packages/nodes/src/lighting/lights.ts:9
Light data structure returned by light calculation nodes. Contains direction, intensity, and attenuation for use in lighting calculations.
Properties
Section titled “Properties”attenuation
Section titled “attenuation”attenuation:
Node<"float">
Defined in: packages/nodes/src/lighting/lights.ts:15
Distance attenuation factor (0-1)
color:
Node<"vec3">
Defined in: packages/nodes/src/lighting/lights.ts:13
Light color multiplied by intensity
direction
Section titled “direction”direction:
Node<"vec3">
Defined in: packages/nodes/src/lighting/lights.ts:11
Direction from surface to light (normalized vec3)