mojira.dev
MC-127004

Waterlogged blocks cause z-fighting when looking at them from a distance

The bug

Waterlogged block causes z-fighting, when away from it from a distance.

Linked issues

MC-127183 Waterlogged Stairs Texture Bug Resolved MC-127554 Z-Fighting in waterlogged blocks Resolved MC-128833 Visual glitch of water logged blocks from distance Resolved MC-130291 When i am far away water bug Resolved MC-143673 Glitched waterlogged stairs Resolved

Attachments

Comments 22

This is caused because the water texture is placed too closely to the edge of the block, causing it to render improperly when viewed from a distance. This image shows how close the water texture is to the block texture:

[media]

Note that this also occurs on the bottom face of most waterlogged blocks also.

Sorry, not really fixable right now 😞

Hmm, I think it might be possible to be fixed by having a different model for the water depending the block's blockstate, or distance from the player.

Play Dash Number f800f8 000000

Yes Fix

Play Dash Number f800f8 000000

Affects 18w20a.

12 more comments

@Les3awe In fact, the problem is only fixed on one side of the block. The other sides of the block are still problematic. We can see it in the debugging world.

[media]

@@unknown, create a new ticket.

What is the actual bug now?
Looking at this, it does seem to be fixed for the backside of stairs in all cases.
The fix seems to be done by culling the water texture completely when the block has a full side in that direction itself.

This obviously does not fix it on block faces that are not full (e.g. the front of a stair).

So since something was fixed here, I do think a new ticket should be created.

Removed the rc1 from affected versions for now, as we can't remove it once it's an archived version but still can add it again.

[media]

[media]

→ MC-190728

[Mod]Les3awe

slicedlime

Confirmed

Important

Rendering

distance, rendering, waterlogged-blocks, z-fighting

Minecraft 18w10d, Minecraft 18w11a, Minecraft 18w14a, Minecraft 18w14b, Minecraft 18w15a, ..., 20w11a, 20w12a, 20w13b, 20w18a, 20w21a

1.16 Pre-release 1

Retrieved