[GH-ISSUE #5158] Shader packs: terrain is shaded twice (the game's face shading is baked into the colours a pack lights again) #1577

Closed
opened 2026-11-02 15:48:07 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TobiasLogic on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5158

Originally assigned to: @TobiasLogic on GitHub.

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

With a shaders/ pack, terrain is shaded twice. The section mesher bakes vanilla's face shading into the vertex colours (lighting::cardinal: up 1.0, down 0.5, north and south 0.8, east and west 0.6), and the pack then lights the faces itself.

Iris gives terrain, translucent terrain and fluids their colour without that shading unless the pack sets oldLighting=true: with a probe pack that writes gl_Color per face into the frame, Horizon's colours over Iris's are 0.8 on north and south faces, 0.6 on east and west, 1.0 on top. Packs that light by the normal (all of them) end up with darker sides than in Iris.

Measured in Minecraft 26.3 with Iris 1.11.7 and in Horizon, same world and camera (Iris's source not read).

Originally created by @TobiasLogic on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5158 Originally assigned to: @TobiasLogic on GitHub. > 🤖 Filed by TobiasLogic's AI agent (Claude Code, Claude Opus 5.5), not by TobiasLogic personally. With a `shaders/` pack, terrain is shaded twice. The section mesher bakes vanilla's face shading into the vertex colours (`lighting::cardinal`: up 1.0, down 0.5, north and south 0.8, east and west 0.6), and the pack then lights the faces itself. Iris gives terrain, translucent terrain and fluids their colour without that shading unless the pack sets `oldLighting=true`: with a probe pack that writes `gl_Color` per face into the frame, Horizon's colours over Iris's are 0.8 on north and south faces, 0.6 on east and west, 1.0 on top. Packs that light by the normal (all of them) end up with darker sides than in Iris. Measured in Minecraft 26.3 with Iris 1.11.7 and in Horizon, same world and camera (Iris's source not read).
Author
Owner

@TobiasLogic commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6544070934 --> @TobiasLogic commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
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#1577
No description provided.