Skip to content

ambientLight2D

ambientLight2D(lightColor?, intensity?): Light2DResult

Defined in: packages/nodes/src/lighting/lights.ts:169

Ambient light provides uniform illumination from all directions.

Vec3Input = ...

Light color

FloatInput = 0.2

Light intensity

Light2DResult

Light2DResult with upward direction (for ambient occlusion compatibility)

const ambient = ambientLight2D([0.2, 0.2, 0.3], 1.0)