|
|
Clamp scalar
The Clamp family of nodes allow you to clamp, or restrict, the values of the colour or scalar coming into the Input between the values specified by the Min input and the Max input. If the value is less than the Min value it's set to the Min value. If the value is greater than the Max value it's set to the Max value. The clamping is done component-wise for colours. Here is an example using a colour, with the following values:
Input.red is -1 Input.green is 0.5 Input.blue is 2 Min value is -0.5 Max value is 1.5
After clamping the colour will have these values:
Input.red becomes -0.5 (-1 was less than the Min value, so it becomes -0.5) Input.green remains 0.5 (0.5 is between the Min and Max values, so it's unchanged) Input.blue becomes 1.5 (2 was greater than the Max value, so it becomes 1.5)
Settings:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|