Skip to content

colorRemapCustom

colorRemapCustom(inputColor, gradientTex, lookupValue, strength?): Node <"vec4">

Defined in: packages/nodes/src/color/colorRemap.ts:62

Remap colors using a custom channel for lookup instead of luminance.

Node <"vec4">

The input color (vec4 with alpha)

Texture 

Horizontal gradient texture for color lookup

FloatInput

Custom value for gradient lookup (0-1)

FloatInput = 1

Effect strength (0 = original, 1 = fully remapped)

Node <"vec4">

Color remapped through gradient

// Remap based on red channel
colorRemapCustom(texture(tex, uv()), gradientTex, inputColor.r)