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
With a combination of iris, sodium 0.6.3+ and DH 2.3 (nightly build, found in the DH discord in #links-and-downloads), the water gets very bright patches. The related conversation can be found in the DH discord at https://discord.com/channels/881614130614767666/1314395125329166376
Reproduction Steps
Use the mods in the image, go to a large area of water, set render distance to more than 6 to see it better.
Having done a bit more digging I think this issue may be caused due to undefined behavior between Iris and DH, specifically DH may have previously been reverting a GL state change that Iris was doing during DH's transparent rendering pass that is now no longer being reverted.
Long Story Short:
The problem appears to have started with Iris 1.8 (1.7.5 renders correctly) and when I changed DH to use MC's GlStateManager instead of directly tracking and reverting the GL state.
To fix the problem I'm guessing the GL state may be incorrect once Iris/Sodium's transparent rendering pass starts and it just needs to be rectified.
Long Story Long:
If Iris fires DH's DhApiBeforeRenderPassEvent during DH's transparent rendering pass, the normals for some chunks are incorrect.
If I comment out DH's DhApiBeforeRenderPassEvent in the transparent pass (Line 443), the normals render correctly.
I attempted to make a new branch reverting DH's MinecraftGLWrapper so it would directly track and change the GL state again, however it became a more difficult task than I am willing to do right now. However, if it needs to be done so Iris/Sodium can be properly tested, please let me know and I can take another crack at it.
Iris specific notes
@IMS212 I originally added this GlStateManager interface on your prompting. Am I using it incorrectly or is this just changing assumptions Iris made?
(Copy of CaffeineMC/sodium#2945, since it's not clear which mod is causing the issue)
Bug Description
With a combination of iris, sodium 0.6.3+ and DH 2.3 (nightly build, found in the DH discord in #links-and-downloads), the water gets very bright patches. The related conversation can be found in the DH discord at https://discord.com/channels/881614130614767666/1314395125329166376
Reproduction Steps
Use the mods in the image, go to a large area of water, set render distance to more than 6 to see it better.
Log File
https://mclo.gs/32Mymut
Crash Report
unrelated crash report for system specs and such: https://mclo.gs/zX44AOK
Operating System
Windows, linux
What is your GPU?
Nvidia 3070
Related DH issue: https://gitlab.com/distant-horizons-team/distant-horizons/-/issues/887
The text was updated successfully, but these errors were encountered: