Color In Range
 
 
 

Category: Processing > Math

Shader Family: Texture

Output: Boolean value

Determines whether or not a color falls within two other colors.

Name

The shader's name. Enter any name you like, or leave the default.

Minimum Threshold

Defines the minimum RGBA value that can be attained before the input color is out of range.

Input

Defines the input texture or shader to compute.

Maximum Threshold

Defines the maximum RGBA value that can be attained before the input color is out of range.

Include Alpha

If enabled, the alpha channel must be within minimum and maximum threshold as well.

Negate Result

Reverses the meaning shader function; returns true if the color is outside the range, false if it is within range.

Render Tree Usage

Connect a texture or surface shader to the Input parameter. Define the maximum and minimum thresholds to create a Boolean (on/off) switch for the input texture/shader. You can also use other (texture) shaders to define the thresholds.