Skip to content

Inset liquid faces to fix z-fighting with waterlogged blocks - #892

Merged
TBlueF merged 1 commit into
BlueMap-Minecraft:masterfrom
Vishrut2403:fix/waterlogged-z-fighting
Oct 18, 2026
Merged

TBlueF merged 1 commit into
BlueMap-Minecraft:masterfrom
Vishrut2403:fix/waterlogged-z-fighting

Conversation

@Vishrut2403

@Vishrut2403 Vishrut2403 commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #97

Water faces of waterlogged blocks were coplanar with the block's own faces causing z-fighting.

Liquid faces are now inset by 0.001 blocks, same as vanilla's FluidRenderer does. Applied it to all liquid faces, so surfaces of neighbouring liquid blocks stay seamless.

Test Results

Before

image

After

image

@TBlueF
TBlueF merged commit fcef695 into BlueMap-Minecraft:master Oct 18, 2026
7 checks passed
@Vishrut2403
Vishrut2403 deleted the fix/waterlogged-z-fighting branch October 19, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Water logged stairs fighting over the z-indicies

2 participants