|
Procedural Texture and Material Editor
![]() To Documentation Index 5. Color Function ModulesThe modules in the "Color Functions" submenu have one or more number or color input ports, and a single color output port. The output value is calculated by applying a function to the input values.CustomThis module represents a user defined mapping of numeric input values to colors. Double-click the module to bring up a window in which you can edit the mapping. You define it by specifying the output colors C(x) for a set of input values of x, where x is between 0 and 1. The behavior outside the range [0, 1] is determined by the "Function is Periodic" checkbox. If you select this option, the function will repeat so that it has the same value at 0.2, 1.2, 1000.2, -0.8, etc. If you do not choose this option, the function will be constant outside this range so that C(x) = C(0) for any x<0, and C(x) = C(1) for any x>1.
BlendThis module has one number input port, fraction, and two color input ports, color 1 and color 2. It uses the fraction input to interpolate between the two colors. If fraction<0, the output equals color 1. If fraction>1, the output equals color 2. If fraction is between 0 and 1, the output is a weighted average of color 1 and color 2.AddThis module calculates its output by adding together the corresponding components of its two input colors.SubtractThis module calculates its output by subtracting each component of the second input color from the corresponding component of the first input color.MultiplyThis module calculates its output by multiplying the corresponding components of its two input colors.LighterThis module outputs whichever of its two input colors is lighter. (For the technically inclined, which color is lighter is determined based on the luminance component of the CIE XYZ color system.)DarkerThis module outputs whichever of its two input colors is darker (again, as determined based on the luminance component of the CIE XYZ color system.)ScaleThis module has two input ports: one color and one number. It calculates its output by multiplying each component of the input color by the input number.RGBThis module has three numeric input ports, which allow you to specify the Red, Green, and Blue components of its output color.HSVThis module has three numeric input ports, which allow you to specify the Hue, Saturation, and Value of its output color.
Prev: Function Modules Next: Transform Modules
![]() |