[GH-ISSUE #2709] Dirt path's edge is see-through when viewed at an angle #661

Closed
opened 2026-11-02 15:40:55 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2709

What I did: Fly over a village
What happened: The sides of the dirt path blocks go invisible at the top edge when looking down at an angle.
Higher fov makes it worse.
What I expected: Dirth path rendering correctly
Horizon version: 0.2.79
OS, CPU, GPU: CachyOS, Ryzen 9 7950X3D, RTX 4090

Reported on Discord by POG in #horizon-bugs · Discord thread
Tags: rendering

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2709 > What I did: Fly over a village > What happened: The sides of the dirt path blocks go invisible at the top edge when looking down at an angle. > Higher fov makes it worse. > What I expected: Dirth path rendering correctly > Horizon version: 0.2.79 > OS, CPU, GPU: CachyOS, Ryzen 9 7950X3D, RTX 4090 Reported on Discord by **POG** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564562740989792277) Tags: rendering **Attachments** (Discord links expire after a while; the thread keeps them) - [2026-10-27_08.25.49.png](https://cdn.discordapp.com/attachments/1564562740989792277/1564562741442646067/2026-10-27_08.25.49.png?ex=6ae1b819&is=6ae06699&hm=1083881a29e1b3ebb0b29126665c876e84f3113068f42582a554d73882524f90&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:55 +07:00
Author
Owner

@kacpherek commented on GitHub (Oct 27, 2026):

Thanks POG for the report! A fix is up in #2726: faces whose texels are all opaque (like a dirt path's side) no longer get the alpha cutout, so mip filtering can't eat the top edge. It's waiting for review.

<!-- gh-comment-id:6439048590 --> @kacpherek commented on GitHub (Oct 27, 2026): Thanks POG for the report! A fix is up in #2726: faces whose texels are all opaque (like a dirt path's side) no longer get the alpha cutout, so mip filtering can't eat the top edge. It's waiting for review.
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: Covered by open PR #2726 ("Draw dirt path sides without the alpha cutout so their top edge stays solid").

<!-- gh-comment-id:6443368621 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Covered by open PR #2726 ("Draw dirt path sides without the alpha cutout so their top edge stays solid").
Author
Owner

@levzzz5154 commented on GitHub (Oct 27, 2026):

🤖 Agent: this one is covered by the open pull request #2726 ("Draw dirt path sides without the alpha cutout so their top edge stays solid"), and I confirmed the cause while reading the current main: the dirt path's side face is drawn with the alpha cutout, and the mip filtering eats the top row of texels, so the side becomes see-through at the top edge when the block is seen at an angle. #2726 leaves the alpha cutout off for the faces whose texels are all opaque, so the side's top edge stays solid.

The vanilla's dirt path is a lower slab with the side texture on its sides (minecraft:block/dirt_path_side on the side and minecraft:block/dirt_path_top on the top) and the sides are opaque, so vanilla never cuts them out.

I could not run a village at an angle in this check, so this is a reading of the code and of the open pull request, not a live run.

Vanilla classes and methods: net.minecraft.client.resources.model.BlockModel and the block's variants (dirt_path with the side and top textures), net.minecraft.client.renderer.block.BlockRenderDispatcher / net.minecraft.client.renderer.block.model.BakedQuad (the face's quads and their culling).

I cannot close this issue (no permission on the upstream repository), so I leave it open for a maintainer.

<!-- gh-comment-id:6444231286 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: this one is covered by the open pull request #2726 ("Draw dirt path sides without the alpha cutout so their top edge stays solid"), and I confirmed the cause while reading the current `main`: the dirt path's side face is drawn with the alpha cutout, and the mip filtering eats the top row of texels, so the side becomes see-through at the top edge when the block is seen at an angle. #2726 leaves the alpha cutout off for the faces whose texels are all opaque, so the side's top edge stays solid. The vanilla's dirt path is a lower slab with the side texture on its sides (`minecraft:block/dirt_path_side` on the side and `minecraft:block/dirt_path_top` on the top) and the sides are opaque, so vanilla never cuts them out. I could not run a village at an angle in this check, so this is a reading of the code and of the open pull request, not a live run. Vanilla classes and methods: `net.minecraft.client.resources.model.BlockModel` and the block's `variants` (`dirt_path` with the `side` and `top` textures), `net.minecraft.client.renderer.block.BlockRenderDispatcher` / `net.minecraft.client.renderer.block.model.BakedQuad` (the face's quads and their culling). I cannot close this issue (no permission on the upstream repository), so I leave it open for a maintainer.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#661
No description provided.