[PR #4111] [MERGED] HDR: lightning, beacons, end crystals, blazes, fireworks, orbs and glow frames shine #5426

Closed
opened 2026-11-03 05:12:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4111
Author: @senjinthedragon
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @ludovic111

Base: main ← Head: hdr-glow-2


📝 Commits (4)

  • c5ffee7 HDR: lightning, beacons, end crystals, blazes, fireworks, orbs and glow frames shine
  • 975666d Merge remote-tracking branch 'origin/main' into hdr-glow-2
  • ad3f5ed Merge remote-tracking branch 'origin/main' into pr-4111
  • 60c91c3 HDR: what shines is marked with improved transparency on too

📊 Changes

13 files changed (+141 additions, -28 deletions)

View changed files

📝 crates/horizon-client-render/src/entity.wgsl (+7 -2)
📝 crates/horizon-client-render/src/gfx.rs (+64 -4)
📝 crates/horizon-client-render/src/gfx/entity_batch.rs (+12 -2)
📝 crates/horizon-client-render/src/gfx/lightning.rs (+2 -1)
📝 crates/horizon-client-render/src/gfx/lightning/tests/mod.rs (+2 -1)
📝 crates/horizon-client-render/src/gfx/pack_entities.rs (+5 -10)
📝 crates/horizon-client-render/src/particles.rs (+6 -4)
📝 crates/horizon-client/src/game.rs (+4 -2)
📝 crates/horizon-client/src/game/beacon.rs (+5 -0)
📝 crates/horizon-client/src/game/creatures.rs (+14 -1)
📝 crates/horizon-client/src/game/dragon.rs (+6 -1)
📝 crates/horizon-client/src/game/end.rs (+6 -0)
📝 crates/horizon-client/src/game/frames.rs (+8 -0)

📄 Description

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

What and why

Follows #2705 (light sources by kind). Blocks and particles shine in HDR output; much of what gives light in
Minecraft isn't a block, and stayed at SDR brightness. Each gets a tier in the vertex layer's high bits, which
entity.wgsl's fs_hdr_mark writes into the frame's alpha:

Tier
Lightning, the dragon's death rays very bright (as the sun)
Experience orbs very bright
Beacon beams, end crystals and their healing beam, the dragon's eyes, blazes, fireworks (sparks and flash) bright
Glow item frames (the item in one stays only lit), entity flames (FlameFeatureRenderer) incandescent
Magma cubes, glow squid low

A tier on a whole model lifts only its bright texels (the crystal's base, a blaze's dark parts stay as they are).

Rendering changes:

  • The additive pipelines marked nothing: lightning gets a mark pipeline over its own vertex layout
    (vs_lightning passes the tier on as vs_entity does), and the additive quads (the dragon) reuse the entity one.
  • Translucent-layer particles (fireworks) carry a tier next to their overlay and get a mark pass after their draw.
  • The mark pass wraps a beam's v in its sprite as fs_entity does; unwrapped, it sampled transparent texels.
  • The overlay is the layer's low 16 bits everywhere: the entity batch's materials and the shader packs'
    plain-run and hurt-colour checks now mask it, as entity.wgsl already did, so a tier can never change how
    anything draws, with HDR on or off.

Tuned in game on an AW3423DW (KWin): fireworks, beacons, end crystals and blazes checked; orbs and glow frames
raised after a first look.

Found along the way (not changed here):

  • Lightning bolts don't render in Horizon at all, HDR off too (only the sky flash); the bolt's mark takes effect
    once it does.
  • Burning mobs get no fire overlay: flame_geometry is only called for burning arrows.
  • The glow squid isn't drawn at block light 15 as GlowSquidRenderer does, so its tier barely lifts in the dark.

Vanilla reference

Horizon-only (HDR output). With HDR off, vanilla's rendering is unchanged.

Self-check

tools/pr_ready.py --quick: 13 files, +111 −16; rustfmt, clippy and 1518 tests (horizon-client, horizon-client-render) 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/4111 **Author:** [@senjinthedragon](https://github.com/senjinthedragon) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `hdr-glow-2` --- ### 📝 Commits (4) - [`c5ffee7`](https://github.com/horizon-rust/horizon/commit/c5ffee73bfbf2e98914d8cd53267f39cb4705e35) HDR: lightning, beacons, end crystals, blazes, fireworks, orbs and glow frames shine - [`975666d`](https://github.com/horizon-rust/horizon/commit/975666d3d5e61abd05017eacd679b8596594b90b) Merge remote-tracking branch 'origin/main' into hdr-glow-2 - [`ad3f5ed`](https://github.com/horizon-rust/horizon/commit/ad3f5ed3d7dc5cf4532fa428981de1951e79bdb9) Merge remote-tracking branch 'origin/main' into pr-4111 - [`60c91c3`](https://github.com/horizon-rust/horizon/commit/60c91c304ffaab11906161409bfc711544e7add4) HDR: what shines is marked with improved transparency on too ### 📊 Changes **13 files changed** (+141 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/entity.wgsl` (+7 -2) 📝 `crates/horizon-client-render/src/gfx.rs` (+64 -4) 📝 `crates/horizon-client-render/src/gfx/entity_batch.rs` (+12 -2) 📝 `crates/horizon-client-render/src/gfx/lightning.rs` (+2 -1) 📝 `crates/horizon-client-render/src/gfx/lightning/tests/mod.rs` (+2 -1) 📝 `crates/horizon-client-render/src/gfx/pack_entities.rs` (+5 -10) 📝 `crates/horizon-client-render/src/particles.rs` (+6 -4) 📝 `crates/horizon-client/src/game.rs` (+4 -2) 📝 `crates/horizon-client/src/game/beacon.rs` (+5 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+14 -1) 📝 `crates/horizon-client/src/game/dragon.rs` (+6 -1) 📝 `crates/horizon-client/src/game/end.rs` (+6 -0) 📝 `crates/horizon-client/src/game/frames.rs` (+8 -0) </details> ### 📄 Description > 🤖 Opened by senjinthedragon's AI agent (Claude Code, Claude Opus 5.5), not by senjinthedragon personally. ## What and why Follows #2705 (light sources by kind). Blocks and particles shine in HDR output; much of what gives light in Minecraft isn't a block, and stayed at SDR brightness. Each gets a tier in the vertex layer's high bits, which entity.wgsl's `fs_hdr_mark` writes into the frame's alpha: | | Tier | | --- | --- | | Lightning, the dragon's death rays | very bright (as the sun) | | Experience orbs | very bright | | Beacon beams, end crystals and their healing beam, the dragon's eyes, blazes, fireworks (sparks and flash) | bright | | Glow item frames (the item in one stays only lit), entity flames (`FlameFeatureRenderer`) | incandescent | | Magma cubes, glow squid | low | A tier on a whole model lifts only its bright texels (the crystal's base, a blaze's dark parts stay as they are). **Rendering changes:** - The additive pipelines marked nothing: lightning gets a mark pipeline over its own vertex layout (`vs_lightning` passes the tier on as `vs_entity` does), and the additive quads (the dragon) reuse the entity one. - Translucent-layer particles (fireworks) carry a tier next to their overlay and get a mark pass after their draw. - The mark pass wraps a beam's v in its sprite as `fs_entity` does; unwrapped, it sampled transparent texels. - **The overlay is the layer's low 16 bits everywhere**: the entity batch's materials and the shader packs' plain-run and hurt-colour checks now mask it, as entity.wgsl already did, so a tier can never change how anything draws, with HDR on or off. Tuned in game on an AW3423DW (KWin): fireworks, beacons, end crystals and blazes checked; orbs and glow frames raised after a first look. **Found along the way (not changed here):** - Lightning bolts don't render in Horizon at all, HDR off too (only the sky flash); the bolt's mark takes effect once it does. - Burning mobs get no fire overlay: `flame_geometry` is only called for burning arrows. - The glow squid isn't drawn at block light 15 as `GlowSquidRenderer` does, so its tier barely lifts in the dark. ## Vanilla reference Horizon-only (HDR output). With HDR off, vanilla's rendering is unchanged. ## Self-check `tools/pr_ready.py --quick`: 13 files, +111 −16; rustfmt, clippy and 1518 tests (horizon-client, horizon-client-render) 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 05:12:31 +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#5426
No description provided.