ambientLight2D
ambientLight2D(
lightColor?,intensity?):Light2DResult
Defined in: packages/nodes/src/lighting/lights.ts:169
Ambient light provides uniform illumination from all directions.
Parameters
Section titled “Parameters”lightColor?
Section titled “lightColor?”Vec3Input = ...
Light color
intensity?
Section titled “intensity?”FloatInput = 0.2
Light intensity
Returns
Section titled “Returns”Light2DResult with upward direction (for ambient occlusion compatibility)
Example
Section titled “Example”const ambient = ambientLight2D([0.2, 0.2, 0.3], 1.0)