Closed QuImUfu closed 1 year ago
The doCompensate is originally used for avoiding z-fighting of world wrapping portal which is aligned to block grid.
Can you provide screenshots?
Close, rendered correctly:
~8 blocks away, planes start rendering (twice):
~105 blocks away, trapdoor starts rendering through portal:
I made the clipping compensation always 0.01. This should fix the issue.
That fixes the issue.
Thank you!
Is it a mod compatibility issue?
No
Minecraft version
1.20
Describe the issue
If you place a thin block in front of the remote location (e.g. Trapdoor), then move quite far away from the portal, the block will appear in front of the current Portal.
I debugged it a bit, and always setting
doCompensate
tofalse
inqouteall.imm_ptl.core.render.FrontClipping.getClipEquationInner(…)
seems to fix the issue.I imagine there is some reason that flag exists, but it does cause these rendering issues. Especially annoying with my Colourful Portals Reimagined mod, where, after a short (~8 blocks) distance, the plane gets rendered twice, making it look half as transparent.