Bug: Minecraft - Water visual glitch shows flat panel reflection #167

Closed
opened 2026-05-22 17:37:14 +00:00 by Zhekrom · 1 comment
Title: C# Bug: Minecraft - Water visual glitch shows flat panel reflection
Severity: Medium
Mode: Minecraft
Lesson ID / File: Minecraft (C# course game)
Environment: Browser (specify version), OS (specify version)
Date/Time: 2026-05-22

Source Code

(Not applicable � rendering/visual issue)

Steps to Reproduce

1. Enter the Minecraft game mode.
2. Position the character over a body of water.
3. Observe the water surface over time.
4. A flat panel-like reflection of the sky or underground appears on the water.

Expected Output

The water should render consistently with proper reflections, without any flat panel artifacts appearing on the surface.

Actual Output

A flat panel rendering artifact appears on the water, reflecting the sky or underground geometry. Changing the camera viewpoint temporarily hides it, but there is always a specific angle from which the panel is visible. Once the artifact appears, it persists and does not go away on its own.

Suggested Priority

Medium � Visual bug that negatively impacts player experience but does not block gameplay.

Additional Notes

The artifact is position-dependent: changing the camera angle can hide it, but it does not resolve the underlying rendering issue. The flat panel appears periodically and then remains permanently visible from certain angles.

Title: C# Bug: Minecraft - Water visual glitch shows flat panel reflection Severity: Medium Mode: Minecraft Lesson ID / File: Minecraft (C# course game) Environment: Browser (specify version), OS (specify version) Date/Time: 2026-05-22 Source Code (Not applicable � rendering/visual issue) Steps to Reproduce 1. Enter the Minecraft game mode. 2. Position the character over a body of water. 3. Observe the water surface over time. 4. A flat panel-like reflection of the sky or underground appears on the water. Expected Output The water should render consistently with proper reflections, without any flat panel artifacts appearing on the surface. Actual Output A flat panel rendering artifact appears on the water, reflecting the sky or underground geometry. Changing the camera viewpoint temporarily hides it, but there is always a specific angle from which the panel is visible. Once the artifact appears, it persists and does not go away on its own. Suggested Priority Medium � Visual bug that negatively impacts player experience but does not block gameplay. Additional Notes The artifact is position-dependent: changing the camera angle can hide it, but it does not resolve the underlying rendering issue. The flat panel appears periodically and then remains permanently visible from certain angles.
Zhekrom changed title from C# Bug: Minecraft - Water visual glitch shows flat panel reflection to Bug: Minecraft - Water visual glitch shows flat panel reflection 2026-05-22 18:08:50 +00:00
Owner

Root cause identified: BlockWater.shouldRenderFace drew a face against every non-water neighbour, including opaque solids. Because the opaque block also draws its face toward the (translucent) water, the water quad ends up coplanar with the opaque face and depth-fights it — the view-angle-dependent flat panel that appears and then persists.

Fixed in spikersoft-angular PR #50: water now renders a face only against air or a translucent neighbour (e.g. glass), never against an opaque block or another water block. The opaque block already occludes the water there, so there's no visual gap. nx test wasm-voxel passes. Will close once PR #50 merges.

Root cause identified: `BlockWater.shouldRenderFace` drew a face against every non-water neighbour, including opaque solids. Because the opaque block also draws its face toward the (translucent) water, the water quad ends up coplanar with the opaque face and depth-fights it — the view-angle-dependent flat panel that appears and then persists. Fixed in `spikersoft-angular` PR #50: water now renders a face only against air or a translucent neighbour (e.g. glass), never against an opaque block or another water block. The opaque block already occludes the water there, so there's no visual gap. `nx test wasm-voxel` passes. Will close once PR #50 merges.
Sign in to join this conversation.