Dynamic Daylight

I have made dynamic sunlight and shadow support wired to the UI, so the sun position can be controlled interactively. The engine calculates the sun position by using azimuth and elevation as parameters. Sun and fog color is adjusted according to the elevation by using a color gradient generated with GIMP. The result can be seen here:

Advertisement

Posted on April 3, 2012, in Deferred Shading, demo video, GLSL, high dynamic range rendering, opengl, rendering, UI and tagged , , , . Bookmark the permalink. 2 Comments.

  1. Neat! The glass in the buildings reflects the sun too! ^_^

  2. Thanks. Yes, there is a reflection/specular map on the buildings. 🙂

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 )

Connecting to %s

%d bloggers like this: