Skip to content

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

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

Adjust brightness by adding a value to all color channels.

Node <"vec4">

The input color (vec4 with alpha)

FloatInput

Brightness adjustment (-1 to 1, 0 = no change)

Node <"vec4">

Color with adjusted brightness

// Brighten by 20%
brightness(texture(tex, uv()), 0.2)
// Darken
brightness(texture(tex, uv()), -0.3)