[PR #1563] [MERGED] Graphics: remove Cull Leaves, which was adapted from the CullLeaves mod #3591

Closed
opened 2026-11-03 04:10:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1563
Author: @ludovic111
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/24/2026
Merged by: @ludovic111

Base: main ← Head: pa1/remove-cull-leaves


📝 Commits (2)

  • 717acb0 Graphics: remove Cull Leaves, which was adapted from the CullLeaves mod
  • 2ad8188 Merge remote-tracking branch 'origin/main' into pa1/remove-cull-leaves

📊 Changes

11 files changed (+7 additions, -248 deletions)

View changed files

📝 THIRD_PARTY_NOTICES.md (+0 -30)
📝 crates/horizon-client/examples/probe/section_mesh_fixture.rs (+0 -1)
📝 crates/horizon-client/src/game.rs (+2 -12)
📝 crates/horizon-client/src/game/world_loading.rs (+0 -1)
📝 crates/horizon-client/src/graphics.rs (+2 -8)
📝 crates/horizon-client/src/graphics_ui.rs (+0 -51)
📝 crates/horizon-client/src/mesher.rs (+3 -12)
➖ crates/horizon-client/src/mesher/leaf_culling_tests.rs (+0 -126)
📝 crates/horizon-client/src/mesher/visibility_tests.rs (+0 -1)
📝 crates/horizon-client/src/streaming.rs (+0 -5)
📝 crates/horizon-client/tests/streaming_meshes.rs (+0 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Part of the provenance audit (code built from other mods' source). Ludovic decides: this removes a contributor's opt-in setting whose code was adapted, with credit and under MIT, from the CullLeaves mod.

What

The opt-in Cull Leaves graphics setting (#420, from #387) was adapted from the CullLeaves mod's code and credited in THIRD_PARTY_NOTICES.md. Under the rule of 2026-10-24 (Horizon doesn't build on another mod's code, even with a permissive licence), it goes:

  • the setting, its options-file key, its graphics-menu row and its notice;
  • the mesher's leaf-face rule falls back to vanilla's alone: with opaque leaves (cutoutLeaves off), the faces between two leaf blocks are skipped (LeavesBlock.skipRendering); with cutout leaves every face is drawn. That is what the setting's Off did and what the game did before #420;
  • mesher/leaf_culling_tests.rs (tests of the removed rule) and the mangrove-roots fact #420 added for it.

An old options.txt with cullLeaves:true loads fine; the key is ignored (tested in graphics.rs).

Players see the change: the row leaves Video Settings, and anyone who had turned it on gets vanilla's leaf faces back (more faces with cutout leaves, so a little more GPU work in forests). No label.

Conflicts

#1564 edits mesher/leaf_culling_tests.rs (one call renamed) and this PR deletes it. Whichever merges second gets a modify/delete conflict whose answer is to keep the deletion; I'll resolve it on the second branch.

Main was merged in after #1561 (shader packs removed); the conflicts were a few lines each.

Self-check

cargo fmt --all --check                                         ok
cargo clippy -p horizon-client --all-targets -- -D warnings     ok
cargo test -p horizon-client --lib --tests                      1058 + 99 + 18 + 2 + 2 + 2 + 1 passed (after merging main with #1561)
integration commit (main + #1558 #1559 #1560 #1563 #1564)       workspace clippy -D warnings ok, fast client build ok, horizon-mods tests ok
parity (CI, this head)                                          pass

🤖 Generated with Claude Code


🔄 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/1563 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `pa1/remove-cull-leaves` --- ### 📝 Commits (2) - [`717acb0`](https://github.com/horizon-rust/horizon/commit/717acb07af64e18299b1c20dfc3e236cba263c04) Graphics: remove Cull Leaves, which was adapted from the CullLeaves mod - [`2ad8188`](https://github.com/horizon-rust/horizon/commit/2ad81884f9c9d44960662bb7b572d064d0437c6b) Merge remote-tracking branch 'origin/main' into pa1/remove-cull-leaves ### 📊 Changes **11 files changed** (+7 additions, -248 deletions) <details> <summary>View changed files</summary> 📝 `THIRD_PARTY_NOTICES.md` (+0 -30) 📝 `crates/horizon-client/examples/probe/section_mesh_fixture.rs` (+0 -1) 📝 `crates/horizon-client/src/game.rs` (+2 -12) 📝 `crates/horizon-client/src/game/world_loading.rs` (+0 -1) 📝 `crates/horizon-client/src/graphics.rs` (+2 -8) 📝 `crates/horizon-client/src/graphics_ui.rs` (+0 -51) 📝 `crates/horizon-client/src/mesher.rs` (+3 -12) ➖ `crates/horizon-client/src/mesher/leaf_culling_tests.rs` (+0 -126) 📝 `crates/horizon-client/src/mesher/visibility_tests.rs` (+0 -1) 📝 `crates/horizon-client/src/streaming.rs` (+0 -5) 📝 `crates/horizon-client/tests/streaming_meshes.rs` (+0 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part of the provenance audit (code built from other mods' source). **Ludovic decides:** this removes a contributor's opt-in setting whose code was adapted, with credit and under MIT, from the CullLeaves mod. ## What The opt-in **Cull Leaves** graphics setting (#420, from #387) was adapted from the CullLeaves mod's code and credited in `THIRD_PARTY_NOTICES.md`. Under the rule of 2026-10-24 (Horizon doesn't build on another mod's code, even with a permissive licence), it goes: - the setting, its options-file key, its graphics-menu row and its notice; - the mesher's leaf-face rule falls back to vanilla's alone: with opaque leaves (`cutoutLeaves` off), the faces between two leaf blocks are skipped (`LeavesBlock.skipRendering`); with cutout leaves every face is drawn. That is what the setting's Off did and what the game did before #420; - `mesher/leaf_culling_tests.rs` (tests of the removed rule) and the mangrove-roots fact #420 added for it. An old `options.txt` with `cullLeaves:true` loads fine; the key is ignored (tested in `graphics.rs`). Players see the change: the row leaves Video Settings, and anyone who had turned it on gets vanilla's leaf faces back (more faces with cutout leaves, so a little more GPU work in forests). No label. ## Conflicts #1564 edits `mesher/leaf_culling_tests.rs` (one call renamed) and this PR deletes it. Whichever merges second gets a modify/delete conflict whose answer is to keep the deletion; I'll resolve it on the second branch. Main was merged in after #1561 (shader packs removed); the conflicts were a few lines each. ## Self-check ``` cargo fmt --all --check ok cargo clippy -p horizon-client --all-targets -- -D warnings ok cargo test -p horizon-client --lib --tests 1058 + 99 + 18 + 2 + 2 + 2 + 1 passed (after merging main with #1561) integration commit (main + #1558 #1559 #1560 #1563 #1564) workspace clippy -D warnings ok, fast client build ok, horizon-mods tests ok parity (CI, this head) pass ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:10:39 +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#3591
No description provided.