Advertisement Jump to content
Sign in to follow this  

Sun position from Sean O'Neill's shaders

This topic is 3658 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I've been able to get Sean's Cg shaders more or less working (from GPU Gems 2, although he has a slightly varied version on his website). See One thing that's not working yet is getting the sun position; I'm adding flares for a bit of effect, plus that I'm generating projected shadows. How would I extract the current position from the Cg shaders? It's not really explicit unfortunately. An added question would be: how can I add something like winter sun positions? I mean, the motion will be lower as the sun doesn't get as high as in the summer. However, I'm not sure how to perform that yet. Thanks!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!