---
title: Clamp
framework: shadergraph
role: symbol
role_heading: ShaderGraph Node
path: shadergraph/math/clamp
---

# Clamp

Clamps the input per-channel to a specified range.

## Parameter Types

Parameter Types Parameter descriptions Discussion The Clamp node restricts the range of values of an input as defined by the Low and High parameters passed into the node. The output of the Clamp node is the same as the In value if it falls within the defined range. Otherwise, the output clamps to the nearest limit, which is either the Low or High value. Use the Clamp node to create more predictable and controlled shader behavior for materials.

## See Also

### Nodes

- [Add](shadergraph/math/add.md)
- [Subtract](shadergraph/math/subtract.md)
- [Multiply](shadergraph/math/multiply.md)
- [Divide](shadergraph/math/divide.md)
- [Modulo](shadergraph/math/modulo.md)
- [Abs](shadergraph/math/abs.md)
- [Floor](shadergraph/math/floor.md)
- [Ceiling](shadergraph/math/ceiling.md)
- [Power](shadergraph/math/power.md)
- [Sin](shadergraph/math/sin.md)
- [Cos](shadergraph/math/cos.md)
- [Tan](shadergraph/math/tan.md)
- [Asin](shadergraph/math/asin.md)
- [Acos](shadergraph/math/acos.md)
- [Atan2](shadergraph/math/atan2.md)
