1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
.. _bpy.types.ShaderNodeClamp:
.. Editor's Note: This page gets copied into:
.. - :doc:`</modeling/nodes/utilities/clamp>`
.. --- copy below this line ---
**********
Clamp Node
**********
.. figure:: /images/node-types_ShaderNodeClamp.webp
:align: right
:alt: Clamp Node.
The *Clamp* node clamps a value between a minimum and a maximum.
Inputs
======
Value
The input value to be clamped.
Min
The minimum value.
Max
The maximum value.
Properties
==========
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.
Outputs
=======
Result
The input value after clamping.
Examples
========
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.
.. figure:: /images/render_shader-nodes_converter_clamp_example.jpg
Example of Clamp node.
|