brightness
brightness(
inputColor,amount):Node<"vec4">
Defined in: packages/nodes/src/color/brightness.ts:20
Adjust brightness by adding a value to all color channels.
Parameters
inputColor
Node<"vec4">
The input color (vec4 with alpha)
amount
Brightness adjustment (-1 to 1, 0 = no change)
Returns
Node<"vec4">
Color with adjusted brightness
Examples
// Brighten by 20%brightness(texture(tex, uv()), 0.2)// Darkenbrightness(texture(tex, uv()), -0.3)