Search code examples
c#unity-game-engineskybox

Unity 3D fade from one skybox to another


I have four different skyboxes, one for each season in my game.

How can I create a fade transition between the skyboxes in c#?

So for example, at a certain point, the summer skybox fades into the autumn skybox.

Thank you!


Solution

  • You'll want to do the blending in a shader, there's one on the Unify wiki that can blend between two skyboxes.

    You need to swap the textures in your material using a script (using material.SetTexture) when it's finished blending between 2 of them to get the effect of blending between 4.