mib_color_interpolate

 
 
 

Category: mental ray > Texture

Shader Family: Texture

Output: Color

Given a scalar or a color, this shader performs a lookup and interpolation of a multi-color map. The map is a set (not an array) of up to 8 colors. The actual number of colors is specified by the num parameter.

Name

The name of the shader node displayed in the render tree. Enter any name you like, or leave the default.

input

The scalar to be looked up.

num

The number of colors in the color list. The minimum is 1 and the maximum is 8.

weight_*

Specifies the locations of colors 1 to 6 in the color spread. A value of 0 puts a color at the low end, and 1 at the high end.

The weights must be monotonically increasing. Color 0 always has a weight of 0, and color num-1 always has a weight of 1.

Only the weights between these two must be specified (that is, two fewer than colors, or num-2 weights).

color_*

Specifies the color spread. Only the first num colors are defined. If the input is 0, then only color_0 is evaluated; if the input is 1, then only color_( num-1 ) is evaluated.

If the input is exactly equal to a weight within numerical precision, only the corresponding color is evaluated. In all other cases, exactly two neighboring colors are evaluated and interpolated.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License