Build smooth two-colour and three-colour gradient shaders in Unity, with the maths broken down step by step.
In this tutorial we will show you how to create a two-color gradient in shader code, without requiring textures.
When two colours just don't cut it, we present here a 3-colour gradient shader for Unity.