Unity 3D fade from one skybox to another

风流意气都作罢 提交于 2020-05-13 17:49:27

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!