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
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
The input color (vec4 with alpha)
addColor
Section titled “addColor”Color to add as [r, g, b] (0-1 range) or TSL node
strength?
Section titled “strength?”FloatInput = 1
Effect strength (0 = no effect, 1 = full effect)
Returns
Section titled “Returns”Node <"vec4">
Color with additive tint
Example
Section titled “Example”// Flash white on hittintAdditive(texture(tex, uv()), [1, 1, 1], hitFlashUniform)