I’m making a game where the background depends on the colors of 2 players. The colors should fade from one side’s color to the other. Like a color gradient from left to right:
:
:
This should of course happen at game startup but I’m not sure the best way to generate the background for the Main camera.
Should I:
- Generate an image and add it to the scene as a sprite?
- Generate and add some material to an object in the scene? If so how?
- Is there a way to do this directly to the main camera’s default background color?
or
Is there a more efficient way?
Thanks