Skip to content

tintAdditive

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.

Parameters

inputColor

Node<"vec4">

The input color (vec4 with alpha)

addColor

Vec3Input

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

strength

FloatInput = 1

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

Returns

Node<"vec4">

Color with additive tint

Example

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