When develop 2D games in Unity, sometime we want to make some transition on day-night cycle(e.g. sky color change)
So I have one design for start state of dawn like following:
(bottom color: fe805e, top: 527fc1)
and the end state of dawn:
(bottom color: fa8856, top: 7ae0ec)
The final effect should be like this:
Graident
To achieve the gradient background, we need to apply a new gradient shader. The shader would accept one main texture, and two colors.
Then create a material with that shader and assign the mat to sprite render, finally in script:
Transition