Skip to content

tintAdditive(inputColor, addColor, strength?): Node <"vec4">

Defined in: packages/nodes/src/color/tint.ts:49

Apply an additive color tint (adds color rather than multiplying). Useful for “flash” effects like damage feedback.

Node <"vec4">

The input color (vec4 with alpha)

Vec3Input

Color to add as [r, g, b] (0-1 range) or TSL node

FloatInput = 1

Effect strength (0 = no effect, 1 = full effect)

Node <"vec4">

Color with additive tint

// Flash white on hit
tintAdditive(texture(tex, uv()), [1, 1, 1], hitFlashUniform)