Clamp Node

../../../_images/render_shader-nodes_converter_clamp_node.png

Clamp Node.

The Clamp node clamps a value between a minimum and a maximum.

Входы

Value

The input value to be clamped.

Мин.

The minimum value.

Макс.

The maximum value.

Свойства

Clamp Type

Method to clamp.

Min Max

Constrain values between Min and Max.

Range

Constrain values between Min and Max. When Min is greater than Max, constrain between Max and Min instead.

Выходы

Result

The input value after clamping.

Примеры

The Voronoi Texture node outputs a value whose minimum is zero. We can use the Clamp node to clamp this value such that the minimum is 0.2.

../../../_images/render_shader-nodes_converter_clamp_example.jpg

Example of Clamp node.