Improve terrain fog quality and refactor cloud rendering #52

Merged
embeddedt merged 8 commits from rdh/celeritas:sky-fog into stonecutter 2026-11-19 21:51:49 -05:00
8 Commits
Author SHA1 Message Date
embeddedt 5371022a57 Free the sky texture when leaving a world 2026-11-19 20:47:15 -05:00
embeddedt bc2c981269 Extend the far plane to the cloud range before 1.21.6 2026-11-19 20:41:46 -05:00
embeddedt ae61a7ff8e Fix transformer issue 2026-11-19 12:09:33 -05:00
embeddedt 5c784d4002 Skip cloud faces past the fade end 2026-11-19 10:39:32 -05:00
embeddedt ffab197dab Rewrite clouds to draw from a face buffer in common
Clouds are vertex-pulled like vanilla's since 1.21.6, keeping per-cell colors
from the clouds texture, and fade out over their own range instead of using
terrain fog. Shader packs generate the same vertices through CloudVertices.
2026-11-19 10:34:36 -05:00
embeddedt b9b83b8402 Refactor sky fog 2026-11-19 09:58:03 -05:00
embeddedt 78f1221991 Clean up sky fog shader and texture handling
Bind the sky texture once per capture instead of on every program setup, free it when sky fog is off, and stop the LEGACY texelFetch remap from leaking into other includes.
2026-11-18 14:36:03 -05:00
rdh 438e706fe8 sky fog 2026-11-17 20:01:00 -05:00