Skip to content

brightnessClamped

brightnessClamped(inputColor, amount): Node<"vec4">

Defined in: packages/nodes/src/color/brightness.ts:53

Adjust brightness with clamping to prevent overflow.

Parameters

inputColor

Node<"vec4">

The input color (vec4 with alpha)

amount

FloatInput

Brightness adjustment (-1 to 1)

Returns

Node<"vec4">

Color with adjusted brightness, clamped to 0-1