Home > other >  Unity of how to set up dynamic sky box, box on the sky clouds move?
Unity of how to set up dynamic sky box, box on the sky clouds move?

Time:09-19

Unity of how to set up dynamic sky box, box on the sky clouds move?

CodePudding user response:

The sky box set
Standard Assets - & gt; Skyboxes
Add a camera Hierarchy
Selected MainCamera, Component - & gt; Rendering - & gt; Skybox, add up,
File drag and drop MAinCamera above Skybox
The cloud is more complex, you can look at http://advances.realtimerendering.com/s2015/index.html

CodePudding user response:

 
Float num=RenderSettings. Skybox. GetFloat (" _Rotation ");
RenderSettings. Skybox. SetFloat (" _Rotation ", num + 0.05 f);


Try to turn the sky box, a try, specific rotation speed is your own choice, can also effect,

CodePudding user response:

Void the Update ()
{
Float rots, speed;
Material sky=RenderSettings. Skybox;
Rots +=speed * Time. DeltaTime;
Rots %=360;
Sky. SetFloat (_Rotation, rot);

}
  • Related