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.
Parameters
Section titled “Parameters”inputColor
Section titled “inputColor”Node <"vec4">
The input color (vec4 with alpha)
gradientTex
Section titled “gradientTex”Horizontal gradient texture for color lookup
lookupValue
Section titled “lookupValue”Custom value for gradient lookup (0-1)
strength?
Section titled “strength?”FloatInput = 1
Effect strength (0 = original, 1 = fully remapped)
Returns
Section titled “Returns”Node <"vec4">
Color remapped through gradient
Example
Section titled “Example”// Remap based on red channelcolorRemapCustom(texture(tex, uv()), gradientTex, inputColor.r)