Sodium Reloaded (Unofficial)

Sodium Reloaded (Unofficial)

0 Downloads

Waterlogged double slabs and stairs have Z-fighting when rendered next to water

Lolothepro opened this issue · 6 comments

commented

Bug Description

3d4cf6a

I suspect that this commit causes undesirable side effects with waterlogged double slabs.

Sodium:

image

Vanilla:

image



It causes Z-Fighting with Sodium
i.e:
2024-07-16_23 56 33
2024-07-16_23 56 31

Reproduction Steps

Make a wall of waterlogged double slabs
Switch to spectator mode
Go into the wall or move away from the wall

Log File

https://mclo.gs/wS0lUP4

Crash Report

commented

Vanilla's rendition of this scene is objectively worse.

commented

Vanilla's rendition of this scene is objectively worse.

Yes, but it causes Z-Fighting

commented

There's Z-fighting in both images

commented

There's Z-fighting in both images

Both images are with Sodium

commented

Oh I see

commented

presumed root cause is bc38d56 : that code changed the test on isFaceSturdy on the pos, dir to the adjPos, dir.getOpposite(). It makes sense for the case when the water is occluded by a neighbor block, but that removed the test for water being occluded by the faces of the waterlogged block itself.

This also causes z-fighting on full-faces of waterlogged stairs.