[PR #6863] [MERGED] Baby striders and turtles: pin their shadow radius #7152

Closed
opened 2026-11-03 06:34:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6863
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: test/baby-mob-shadows


📝 Commits (1)

  • 5299166 Baby striders and turtles: pin their shadow radius

📊 Changes

1 file changed (+8 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/shadows.rs (+8 -0)

📄 Description

Vanilla: StriderRenderer.getShadowRadius halves a baby strider's age-scaled radius again (0.5 * 0.5 * 0.5 = 0.125), and TurtleRenderer.getShadowRadius takes 0.83 of the 0.7 * 0.3 age-scaled radius.

What Horizon got wrong: nothing; mobs and shadows.rs::mob_shadow_radius already apply both. But the existing babies_cast_their_age_scaled_shadow test pinned the cow, villager and goat cases only, so a change to the age table or the renderer's extra factor would have gone unnoticed.

The change adds the two assertions to that test.

Proven: cargo test -q -p horizon-client-lib --lib shadows::tests::babies_cast_their_age_scaled_shadow -> 1 passed; 0 failed; 1373 filtered out. cargo clippy -q -p horizon-client-lib --lib -> clean. rustfmt --edition 2024 --check crates/horizon-client/src/shadows.rs -> clean.

Not proven: no in-game run. In-game check: spawn a baby strider and a baby turtle beside an adult of each and compare the shadows.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6863 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `test/baby-mob-shadows` --- ### 📝 Commits (1) - [`5299166`](https://github.com/horizon-rust/horizon/commit/5299166ad0d7a0de2fa67ad0ee2e242dca3fd2c3) Baby striders and turtles: pin their shadow radius ### 📊 Changes **1 file changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/shadows.rs` (+8 -0) </details> ### 📄 Description Vanilla: `StriderRenderer.getShadowRadius` halves a baby strider's age-scaled radius again (0.5 * 0.5 * 0.5 = 0.125), and `TurtleRenderer.getShadowRadius` takes 0.83 of the 0.7 * 0.3 age-scaled radius. What Horizon got wrong: nothing; `mobs` and `shadows.rs::mob_shadow_radius` already apply both. But the existing `babies_cast_their_age_scaled_shadow` test pinned the cow, villager and goat cases only, so a change to the age table or the renderer's extra factor would have gone unnoticed. The change adds the two assertions to that test. **Proven:** `cargo test -q -p horizon-client-lib --lib shadows::tests::babies_cast_their_age_scaled_shadow` -> `1 passed; 0 failed; 1373 filtered out`. `cargo clippy -q -p horizon-client-lib --lib` -> clean. `rustfmt --edition 2024 --check crates/horizon-client/src/shadows.rs` -> clean. **Not proven:** no in-game run. In-game check: spawn a baby strider and a baby turtle beside an adult of each and compare the shadows. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:34:54 +07:00
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#7152
No description provided.