This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

UnityGamesRoland

Advanced Day/Night system for Unity5

17 posts in this topic

Day/Night system with color blend and dynamic fog system.

Please login or register to see this spoiler.
13 people like this

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

 

Copy the script into an empty C# and name it as AutoIntensity. Then attach it to a gameobject.

Edited by UnityGamesRoland

Share this post


Link to post
Share on other sites
Assets/AutoIntensity.cs(54,32): error CS0117: `UnityEngine.RenderSettings' does not contain a definition for `ambientIntensity'

 

Help please

Share this post


Link to post
Share on other sites

This combined with my fog can be awesome Daylight system :P

Share this post


Link to post
Share on other sites

This is a really helpful script. May I use it in my Asset Store environment packs? Will of course give credit.

 

Added another directional, made child of the sun directional, and reversed it. Named it moon and set it intensity of .05. Testing it on a test scene that is precomputed GI baked. It is beautiful. Would be cool if the skybox material had a moon option. What I need to do to help with performance is edit the script so it disables the lights when they go under the horizon. Not sure how to do this without a time of day in the script.

Share this post


Link to post
Share on other sites

Its not my script. I just share it for the community. I think you cant use it, i dont know.

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

I implemented this thing in my game recently. I played the game with my friend, and he said:

"Never make anything ugly like that again!"

 

:((

Share this post


Link to post
Share on other sites
Please login or register to see this quote.

 

Alight. Will play with it for fun. Thanks for posting it.

Share this post


Link to post
Share on other sites

Do you want stars at nightime?

This simple tutorial will help you. [Please login or register to see this link. ]

Share this post


Link to post
Share on other sites
Please login or register to see this quote. Woah this is great! Thanks for showing me this Roland!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now