UShader Engine Wikia
Advertisement
Step

Name[]

step - implement a step function returning either zero or one

Synopsis[]

vertex1 step(vertex1 a, vertex1 x);
vertex2 step(vertex2 a, vertex2 x);
vertex3 step(vertex3 a, vertex3 x);
vertex4 step(vertex4 a, vertex4 x);

Parameters[]

a
Scalar or vector reference value.
x
Scalar or vector.

Description[]

Implements a step function returning one for each component of x that is greater than or equal to the corresponding component in the reference vector a, and zero otherwise.

Advertisement