Procedural Sky

This is a simple tech demo for creating a day and night cycle with adjusting sky, light, atmosphere and fog.

How it works:

I am starting with determing the length of the day in seconds and counting the time. The current time acts then as my evaluation point for all the settings for Sun, Light, Atmosphere, Exposure and Fog. I added the option of using the different ambient modes Unity offers.

Explaining this is rather hard as it really just is a bunch of gradients and curves which we then evaluate depending on the current time. I highly suggest taking a look at the source code, you’ll see it is a rather simple approach but it gives you a lot more freedom in creating the sky instead of just setting three set skybox settings.

See the entire Source Code on GitHub.

Screenshots:

 

Demo:

687474703a2f2f692e696d6775722e636f6d2f6579317863594d2e706e67

 

 

 

Author: itsmilkid

Self taught Unity C# Developer from Germany.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s