[PR #6211] [MERGED] Shader packs: Iris's player status uniforms and the End flash #6718

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6211
Author: @arslanarm
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: shaderpacks/status-end-flash-uniforms


📝 Commits (1)

  • 7745fdd Shader packs: Iris's player status uniforms and the End flash

📊 Changes

3 files changed (+244 additions, -6 deletions)

View changed files

📝 crates/horizon-client-render/src/gfx/pack_uniforms.rs (+169 -2)
📝 crates/horizon-client/src/game/end.rs (+38 -3)
📝 crates/horizon-client/src/game/shader_packs.rs (+37 -1)

📄 Description

🤖 Opened by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally.

Fixes #6208.

What and why

Uniforms packs read that were still "zero for now":

  • Status (PlayerStatus in PackInputs, filled by Game::pack_player_status as the HUD reads the player): currentPlayerHealth, currentPlayerHunger, currentPlayerAir, currentPlayerArmor as fractions of their maximum; maxPlayerHealth (the attribute), maxPlayerHunger (20), maxPlayerAir (300), maxPlayerArmor (50); the vitals and the maximums of health and air are -1 in creative and spectator, as the reference says. isSpectator, isRiding, feetInWater, inSwimmingAnimation, is_burning, is_hurt, is_invisible (spectators count, per the reference), is_sneaking (the crouching pose), is_sprinting.
  • End flash: endFlashIntensity (0 outside the End) and endFlashPosition (view space, length 100), from the EndFlash state that draws the flash sprite; the sprite and the uniform share one pose function.

The status values are a pure status_value function, so the test checks them against the reference without a Frame. isRightHanded, is_on_ground, bedrockLevel, heightLimit are main's already and untouched.

Tested

status_uniforms_follow_iris (each value, creative/spectator -1s, every name provided), the_end_flash_is_where_its_sprite_is (directions worked out by hand). In the game over 40 packs, none of these names is reported as "zero for now" any more. I have not compared a pack's End flash glow with Iris's picture.

Sources

The shaders.properties uniform reference (https://shaders.properties/current/reference/uniforms/status/ and .../world/). No Iris, OptiFine or pack code read.

Suggested label: feature.

pr_ready (tools/pr_ready.py --quick on plony-pc, against origin/main at 7311b1e17, 4 min 1 s)

Check Result
Scope ✅ 3 files, +244 −6
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 586 passed (30 s)
rustfmt ✅ (7 s)
clippy ✅ (1 min 30 s)
tests: horizon-client, horizon-client-render ✅ 2721 passed (1 min 52 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/6211 **Author:** [@arslanarm](https://github.com/arslanarm) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `shaderpacks/status-end-flash-uniforms` --- ### 📝 Commits (1) - [`7745fdd`](https://github.com/horizon-rust/horizon/commit/7745fddd203fe3d40c8beab7626393d2add3f488) Shader packs: Iris's player status uniforms and the End flash ### 📊 Changes **3 files changed** (+244 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/gfx/pack_uniforms.rs` (+169 -2) 📝 `crates/horizon-client/src/game/end.rs` (+38 -3) 📝 `crates/horizon-client/src/game/shader_packs.rs` (+37 -1) </details> ### 📄 Description > 🤖 Opened by arslanarm's AI agent (Claude Code, Claude Opus 5.5), not by arslanarm personally. Fixes #6208. ## What and why Uniforms packs read that were still "zero for now": - **Status** (`PlayerStatus` in `PackInputs`, filled by `Game::pack_player_status` as the HUD reads the player): `currentPlayerHealth`, `currentPlayerHunger`, `currentPlayerAir`, `currentPlayerArmor` as fractions of their maximum; `maxPlayerHealth` (the attribute), `maxPlayerHunger` (20), `maxPlayerAir` (300), `maxPlayerArmor` (50); the vitals and the maximums of health and air are -1 in creative and spectator, as the reference says. `isSpectator`, `isRiding`, `feetInWater`, `inSwimmingAnimation`, `is_burning`, `is_hurt`, `is_invisible` (spectators count, per the reference), `is_sneaking` (the crouching pose), `is_sprinting`. - **End flash**: `endFlashIntensity` (0 outside the End) and `endFlashPosition` (view space, length 100), from the `EndFlash` state that draws the flash sprite; the sprite and the uniform share one pose function. The status values are a pure `status_value` function, so the test checks them against the reference without a `Frame`. `isRightHanded`, `is_on_ground`, `bedrockLevel`, `heightLimit` are main's already and untouched. ## Tested `status_uniforms_follow_iris` (each value, creative/spectator -1s, every name provided), `the_end_flash_is_where_its_sprite_is` (directions worked out by hand). In the game over 40 packs, none of these names is reported as "zero for now" any more. I have not compared a pack's End flash glow with Iris's picture. ## Sources The shaders.properties uniform reference (https://shaders.properties/current/reference/uniforms/status/ and .../world/). No Iris, OptiFine or pack code read. Suggested label: `feature`. **pr_ready** (`tools/pr_ready.py --quick` on plony-pc, against origin/main at 7311b1e17, 4 min 1 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +244 −6 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 586 passed (30 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (1 min 30 s) | | tests: horizon-client, horizon-client-render | ✅ 2721 passed (1 min 52 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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 06:25:24 +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#6718
No description provided.