Go to: Related nodes. Attributes.

Compute the smooth step function. The function returns 0 if the input is less than or equal to the left edge, 1 if the input is greater than or equal to the right edge, and interpolates using a Hermite polynomial, between 0 and 1 otherwise. The gradient of the smoothstep function is zero at both edges. The right edge value will be clamped to the left edge if it is lower than the left edge.

Node nameParentsClassificationMFn typeCompatible function sets
smoothStepnodemath/rounding:utility/scalar:drawdb/shader/operation/smoothStepkSmoothStepkBase
kNamedObject
kDependencyNode
kSmoothStep

Related nodes

round, ceil, clamp

Attributes (4)

input, leftEdge, output, rightEdge

Long name (short name)TypeDefaultFlags
input (i) distance (double)0.0cmoutputinputconnectablestorablekeyable
A double input
leftEdge (le) distance (double)0.0cmoutputinputconnectablestorablekeyable
Clamp input value below this number to 0.
output (o) distance (double)0.0cmoutputconnectable
The smooth step value of the input
rightEdge (re) distance (double)1.0cmoutputinputconnectablestorablekeyable
Clamp input value above this number to 1.