/
PxrMix

PxrMix

Mixes two colors together according to the specified mix percentage. The mixed color result is calculated as: ((1.0-mix) * color1) + (mix * color2).

Input Parameters

Color 1

The first color that is mixed with the second color.

Color 2

The second color that is mixed with the first color.

Mixer

The first color that is mixed with the second color.

pxrMix_color1.jpg
color1
pxrMix_color2.jpg
color2
pxrMix_mix.jpg
mix
pxrMix_mixed.jpg
result
pxrMix_000mix.jpg
mix = 0.0
pxrMix_025mix.jpg
mix = 0.25
pxrMix_050mix.jpg
mix = 0.5
pxrMix_075mix.jpg
mix = 0.75
pxrMix_100mix.jpg
mix = 1.0

Clamp Mixer

Keep the mix value between 0 and 1 to make sure you only get either color1 or color2 when outside of that range.

Output Parameters

resultRGB

The clamped color result.

resultR

The R channel from the resultRGB output.

resultG

The G channel from the resultRGB output.

resultB

The B channel from the resultRGB output.

Related content