unity天空盒渐变,Unity 3D从一个天空盒淡入另一个天空盒
生活随笔
收集整理的這篇文章主要介紹了
unity天空盒渐变,Unity 3D从一个天空盒淡入另一个天空盒
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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!
解決方案
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.
總結
以上是生活随笔為你收集整理的unity天空盒渐变,Unity 3D从一个天空盒淡入另一个天空盒的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: OpenSSL笔记-PKCS#1和PKC
- 下一篇: Linux线程优先级设置