Skip to content

tint

tint(inputColor, tintColor, strength): Node<"vec4">

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

Apply a color tint by multiplying with the input color.

Parameters

inputColor

Node<"vec4">

The input color (vec4 with alpha)

tintColor

Vec3Input

Tint color as [r, g, b] (0-1 range) or TSL node

strength

FloatInput = 1

Tint strength (0 = no tint, 1 = full tint, default: 1)

Returns

Node<"vec4">

Tinted color

Examples

// Apply red tint
tint(texture(tex, uv()), [1, 0, 0])
// Partial tint with uniform
tint(texture(tex, uv()), tintColorUniform, 0.5)