Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Set Lighting according to Time of the day

$
0
0
I am creating a simple Graphics Engine and I want to let the user set the time of the day for the scene, but I have problems translating it into the lighting direction. The light direction is now given by a vector of three float. i.e. The user set time = 12 (noon). I want the light direction to be right on the top of the scene. Is there a way to achieve that? Thank you

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>