clamp node

Returns a field whose value at any position is clamped between min and max. Values of type float3 are clamped component by component.

Inputs

value [in]

The input scalar field.

min [in]

The minimum value of the output field.

max [in]

The maximum value of the output field.

Outputs

clamped [out]

The resulting field.