You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reflect sun and moon using actual textures or generated moon phase.
This patch replaces the "placeholder" sun reflection in water. For this
to work, you must have waving water enabled. Previously this only
worked when shadows were enabled, but, with this change, it no longer
depends on shadows being enabled or not.
The sun/moon reflection uses the actual texture that the game uses. I've
used Mineclonia to test it and tweak sizes (they're a tiny tiny bit
larger in the reflection but I think it's reasonable, because smaller
looks weird really quick) and test that the actual reflections are
correct (this part took quite a while).
Mineclonia relies on the generated sun texture (a bunch of squares
stacked on top of each other) so this has been tested with both variants
- texture and generated sun/moon.
A bunch of new shader stuff is needed to make this work, this patch
pulls all of those changes in. The noise functions previously only
in the shadow ifdefs are now also needed outside of it.
The specular dot that was previously used is now gone. The only times
when it now could be used is when the sun or moon is actively hidden or
there is a loading issue, or at the wicked time boundary. We avoid
any weird visual in all those conditions by just not having it anymore.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments