Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add night sky using Unity 5 procedural skybox?

Tags:

unity3d

skybox

I'm using Unity 5 and it's new procedural skybox. It looks amazing!

In my game, I have a day/night cycle. I can't find a way to use a night skybox which will slowly appear (blend) to replace the procedural skybox when the night comes.

I know a shader exists to blend between two skyboxes, but it won't work with the new procedural skybox.

I want to be able to keep the procedural skybox, so I can keep my amaizing sunrise/sunset, but be able to add stars at night.

enter image description here

enter image description here

like image 662
JoRouss Avatar asked Oct 20 '22 13:10

JoRouss


1 Answers

Create a new directional light, which the Unity will interpret as the sun. Then, just rotate it!

like image 126
Max Yankov Avatar answered Jan 03 '23 03:01

Max Yankov