Jump to content
  • Advertisement
Sign in to follow this  
rvangaal

Sun position from Sean O'Neill's shaders

This topic is 3564 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 http://http.developer.nvidia.com/GPUGems2/gpugems2_chapter16.html 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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!