Improved rendering of obstructed lines & quads - #160
Conversation
implementation of issue EngineHub#108 ~ changed default rendering of lines and quads so they get displayed with lower opacity when obstructed by other objects for clearer visuals + added additional config option to completely hide obstructed lines and mimic the legacy display behaviour
me4502
left a comment
There was a problem hiding this comment.
Thanks for the PR, I've just left one comment to clarify one part :)
| * Render type for "hidden" lines (under world geometry) | ||
| */ | ||
| HIDDEN(CompareOp.GREATER_THAN), | ||
| HIDDEN(CompareOp.LESS_THAN), |
There was a problem hiding this comment.
So while it looks fine to me IMO, is there a reason these are being changed? We had a fair few reports that alongside MC's render sink system the lines became hard to see in a lot of cases, and the changes being done to this PR here revert that.
There was a problem hiding this comment.
Thanks for the quick response.
As stated here in the official Minecraft 26.2 changelog under the technical changes section, "Rendering now uses a reversed depth buffer" which means the CompareOps also had to be reversed in this case. You can test it out by swapping them back around. The lines in front of the terrain will then become less opaque while the ones hidden behind other objects will keep their full opacity.
There was a problem hiding this comment.
This was already accounted for in the 26.2 update (or at least, using the values that visually appeared identical to the 26.1 values). However it does visually appear fine with the ones in this change, so I'm happy to approve it -- just mildly concerned we'll have people asking us to fix things again
implementation of issue #108