Project Silvershine – Day and Night system

Project Silvershine – Day and Night system
 
A day and nigt system is vital to this game. We got alot of functionality that is only avaiable during night, and others that only are avaiable during the day( what this is will be a secret 😉 ). Implmenting this is a hard thing compared to my knowledge, but I have come up with a solution. I created a shader that checks what time it is, and interpolates different textures based on this. so if its night o’ clock, render the night texture, if i’s evening or morning o’clock, render a blend of the night and day texture, and if its day, render the day texture. I will also make ajustments to the light settings, but for now, take a look at the screenshots to see how this look like:
 
 
As you can see, the ground and lighting is quite similar, so this aint very good YET. But anyways, you can still see if its day or night 😉
Advertisements
This entry was posted in Game programming. Bookmark the permalink.

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