问题
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!
回答1:
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.
来源:https://stackoverflow.com/questions/36386430/unity-3d-fade-from-one-skybox-to-another