leo60228 / VanillAA-Shaders

Vanilla, but with TAA
Mozilla Public License 2.0
28 stars 7 forks source link

Fix fog when submerged in lava or powdered snow #9

Closed Michael1297 closed 1 year ago

Michael1297 commented 1 year ago

Fixes issue https://github.com/leo60228/VanillAA-Shaders/issues/4

leo60228 commented 1 year ago

Thanks for this! I was aware the fog implementation was incorrect on 1.17+, but I couldn't find a reference for what it should be. This seems reasonable, but just to be sure, do you have a source for this being the correct usage of the fog parameters?

Michael1297 commented 1 year ago

I took this solution from Sildur's Basic shaders

Michael1297 commented 1 year ago

image image

leo60228 commented 1 year ago

Powder snow appears to be very slightly more transparent than vanilla with this PR, but it's still an improvement over the status quo.