Creating a Stepped Gradient Shader in Unity
Let's build a stepped gradient in Unity! This a form of gradient with hard transitions between the different keyframes in the gradient which creates clear blocks of color like you might see on a flag or logo. To do this we'll take advantage of the `lerp` and `step` function.
The `lerp(x, y, s)` fun...