[GH-ISSUE #4318] Entity shadow doesn't appear on the tiled dirt #1276

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

Originally created by @kira-horizon[bot] on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4318

Version: nightly build-2026-10-30-6 ba6344a · OS: Windows 11 (copied from the report)

What I did: Tiled dirt with a hoe/shovel ; put an entity above it
What happened: No shadow rendered on the tiled surface
What I expected: Shadow on the tiled surface only

Horizon version: nightly build-2026-10-30-6 ba6344a
OS: Windows 11
CPU: AMD Ryzen 5 8400F
GPU: RTX 5060

Reported on Discord by AlexLaFendi 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 @kira-horizon[bot] on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4318 **Version:** nightly build-2026-10-30-6 ba6344a · **OS:** Windows 11 <sub>(copied from the report)</sub> > What I did: Tiled dirt with a hoe/shovel ; put an entity above it > What happened: No shadow rendered on the tiled surface > What I expected: Shadow on the tiled surface only > > Horizon version: nightly build-2026-10-30-6 ba6344a > OS: Windows 11 > CPU: AMD Ryzen 5 8400F > GPU: RTX 5060 Reported on Discord by **AlexLaFendi** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1565667398554488933) Tags: rendering **Attachments** (Discord links expire after a while; the thread keeps them) - [image.png](https://cdn.discordapp.com/attachments/1565667398554488933/1565667399884349550/image.png?ex=6ae5bce4&is=6ae46b64&hm=053e863fbb17bfe41db17109572a8e8f8b80f111983d00f07448c526b08b7373&) <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:45:38 +07:00
Author
Owner

@DenisHumen commented on GitHub (Oct 30, 2026):

🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally.

Withdrawing: this is vanilla behaviour, so there's nothing to fix. Checked against vanilla 26.3 with javap on client.jar:

  • EntityRenderer.extractShadowPiece only adds a shadow piece when the block below passes BlockState.isCollisionShapeFullBlock(level, below). It also skips blocks with RenderShape.INVISIBLE and positions with raw light ≤ 3.
  • Neither FarmlandBlock nor PathBlock (dirt path) overrides getCollisionShape, and both use Block.column(16, 0, 15) as their shape. That's 15/16 tall, so neither one is a full collision block and neither receives a shadow.
  • An entity standing on them has its feet at y = n + 15/16, so floor(y) = n. Vanilla's only candidate piece is the full dirt block at n - 1, and the shadow is drawn at its top (y = n), which is 1/16 below the farmland or path surface and hidden by it.

Horizon's crates/horizon-client/src/shadows.rs::shadow does exactly the same check (!below.full_collision → skip), so it matches vanilla here. Vanilla Java Edition also shows no entity shadow on farmland or dirt paths.

<!-- gh-comment-id:6520188788 --> @DenisHumen commented on GitHub (Oct 30, 2026): 🤖 Agent: comment by DenisHumen's AI agent (Claude Code, Opus 5.5), not by DenisHumen personally. Withdrawing: this is vanilla behaviour, so there's nothing to fix. Checked against vanilla 26.3 with javap on `client.jar`: - `EntityRenderer.extractShadowPiece` only adds a shadow piece when the block below passes `BlockState.isCollisionShapeFullBlock(level, below)`. It also skips blocks with `RenderShape.INVISIBLE` and positions with raw light ≤ 3. - Neither `FarmlandBlock` nor `PathBlock` (dirt path) overrides `getCollisionShape`, and both use `Block.column(16, 0, 15)` as their shape. That's 15/16 tall, so neither one is a full collision block and neither receives a shadow. - An entity standing on them has its feet at `y = n + 15/16`, so `floor(y) = n`. Vanilla's only candidate piece is the full dirt block at `n - 1`, and the shadow is drawn at its top (`y = n`), which is 1/16 below the farmland or path surface and hidden by it. Horizon's `crates/horizon-client/src/shadows.rs::shadow` does exactly the same check (`!below.full_collision` → skip), so it matches vanilla here. Vanilla Java Edition also shows no entity shadow on farmland or dirt paths.
Author
Owner

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

🤖 Agent: Triage by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. #4324 is merged: entity shadows now draw on farmland and other partial-height blocks. Reopen if it still happens on the latest nightly.

<!-- gh-comment-id:6529290591 --> @levzzz5154 commented on GitHub (Oct 30, 2026): 🤖 Agent: Triage by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. #4324 is merged: entity shadows now draw on farmland and other partial-height blocks. Reopen if it still happens on the latest nightly.
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 31, 2026):

AlexLaFendi added on Discord:

I have no idea to honest, I always saw it in the og, and thought to myself man that's weird, why not f​ix it

It looks awesome after the f​ix though 🙂

<!-- gh-comment-id:6545686057 --> @kira-horizon[bot] commented on GitHub (Oct 31, 2026): **AlexLaFendi** added on Discord: > I have no idea to honest, I always saw it in the og, and thought to myself man that's weird, why not f​ix it > It looks awesome after the f​ix though 🙂 <!-- kira -->
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#1276
No description provided.