Open adQuid opened 1 year ago
Seems reasonable! Just one comment.
Thanks for reviewing so quick, but it looks like this logic breaks down on the coastlines, so let me work on it more.
Ok, try out this version. I ended up redoing the algorithm, but I think that this version works way better.
Thanks. Any chance you have a screenshot showing a before/after? I'm unfortunately not in a position to check the code in-game right now.
The first is old, second is new. I excluded clouds in those screenshots since this change doesn't affect them much. Third screenshot is after the changes with the clouds.
bonus screenshot at the coast to show it still works in those conditions
Prevents bizarre fog glow when looking off of high places past the draw distance.
(also moved some lines over a tab, which I assume wasn't intended to be double tabbed)