PGD Home

P0-MS4: Part 268: New Atmosphere/Clouds System

by on Nov.05, 2017, under Astral Realms, P-0, Software and Games, Spiritus Astrum

I found some sample code HERE on github which I have been modifying to add the gradient to the skybox. It seems to work well, and it includes an “upvector” parameter, so the orientation of the gradient can be changed at run time, this is vital for my project. The particular code file I used is HERE.

I can now blend properly between the starfield and a two-colour gradient skybox. I can also add and remove stars and clouds depending on the players altitude.

The system is now basically working, I just need to add the ability to change the colours depending what type of planet the user is landing on. I also need to properly test the system, since I made extensive changes to the project while working on this.

 

Screenshot (174) Screenshot (173)

Unity 05/11/2017 , 05:23:48 PM Unity 2017.2.0f3 Personal (64bit) - P0Main.unity - P0-MS4 - PC, Mac & Linux Standalone

Unity
05/11/2017 , 05:23:48 PM
Unity 2017.2.0f3 Personal (64bit) – P0Main.unity – P0-MS4 – PC, Mac & Linux Standalone

Screenshot (183) Screenshot (182) Screenshot (180) Screenshot (178) Screenshot (186)

Facebooktwitterredditpinterestlinkedinmail

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!