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.

RIB: color color1
Default: 0.0 0.0 0.0

Color 2

The second color that is mixed with the first color.

RIB: color color2
Default: 1.0 1.0 1.0

Mix

Determines the percentage of color1 that is mixed with color2. When mix is 0, the result will be equal to color1, and when mix is 1, the result with be eqaul to color2.

images/pxrMix/pxrMix_color1.jpg

color1

images/pxrMix/pxrMix_color2.jpg

color2

images/pxrMix/pxrMix_mix.jpg

mix

images/pxrMix/pxrMix_mixed.jpg

result

images/pxrMix/pxrMix_color1.jpg

mix = 0.0

images/pxrMix/pxrMix_25mix.jpg

mix = .25

images/pxrMix/pxrMix_5mix.jpg

mix = .5

images/pxrMix/pxrMix_75mix.jpg

mix = .75

images/pxrMix/pxrMix_color2.jpg

mix = 1.0

RIB: float mix
Default: 0.0

Output Parameters

resultRGB

The mixed 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.