Jump to content
  • Advertisement
Sign in to follow this  

Adaptive sun glare

This topic is 1814 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

I need help making my sun glare work properly. Currently I have a billboard to represent my sun glare. I scale it with respect to distance from the sun and occlusion. The occlusion is done by testing a series of points to see if any object is blocking it on screen. Each point lost to occlusion reduces the size of the glare. This works fine for the most part, but when for instance: coming around a planet, the edge of the sun is seen and the glare shows up over the planet. Here is an image:


As you can see, it doesn't look right.... Is there a better way to do the glare?

Share this post

Link to post
Share on other sites
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!