Jump to content
  • Advertisement
Sign in to follow this  

Adaptive sun glare

This topic is 2177 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.

GameDev.net 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!