Scalar In Range

 
 
 

Category: Processing > Math

Shader Family: Texture

Output: Scalar

Ensures that an input scalar value remain in range, in between two other scalar values.

Name

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

Minimum Threshold

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

Input

Defines the input scalar value to compute.

Maximum Threshold

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

Negate Result

Makes a negative result positive and a positive result a negative one.

Render Tree Usage

Used to connect a scalar-output shader to the Input parameter. Define the maximum and minimum thresholds to create a Boolean (on/off) switch for the shader that was input. You can also use other shaders to define the thresholds.