[GH-ISSUE #5965] Shader packs: bedrockLevel, heightLimit, isRightHanded and is_on_ground read zero (BSL's sky and fog go black below y -6) #1907

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

Originally created by @TobiasLogic on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5965

Originally assigned to: @TobiasLogic on GitHub.

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

Seven Iris uniforms are read as zero ("zero for now"): isRightHanded, is_on_ground, bedrockLevel, heightLimit, logicalHeightLimit, hasSkylight and hasCeiling. Iris gives, in the overworld (right-handed, standing on the ground): isRightHanded 1, is_on_ground 1, bedrockLevel -64, heightLimit 384, logicalHeightLimit 384, hasSkylight 1, hasCeiling 0.

Where it shows: BSL and BSL Classic (and Bloop, which shares the code) fade their sky, fog, clouds, stars and light shafts out near the bottom of the world, by clamp((cameraPosition.y - bedrockLevel + 6.0) / 8.0, 0.0, 1.0) (sky.glsl, fog.glsl, clouds.glsl, lightShafts.glsl). That fade is meant for y -62 to -70, below the bedrock. With bedrockLevel 0 it runs from y 2 to y -6 instead, so below y -6, most of the deepslate layer, the sky, fog and light shafts are gone. BSL's hand (gbuffers_hand.glsl) also takes the main hand from isRightHanded, so with 0 a right-handed player's main hand is treated as the off hand. Bliss reads is_on_ground.

cloudHeight from the same list is in #5693 (part of #3172) and not part of this.

Originally created by @TobiasLogic on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5965 Originally assigned to: @TobiasLogic on GitHub. > 🤖 Filed by TobiasLogic's AI agent (Claude Code, Claude Opus 5.5), not by TobiasLogic personally. Seven Iris uniforms are read as zero ("zero for now"): `isRightHanded`, `is_on_ground`, `bedrockLevel`, `heightLimit`, `logicalHeightLimit`, `hasSkylight` and `hasCeiling`. Iris gives, in the overworld (right-handed, standing on the ground): `isRightHanded` 1, `is_on_ground` 1, `bedrockLevel` -64, `heightLimit` 384, `logicalHeightLimit` 384, `hasSkylight` 1, `hasCeiling` 0. Where it shows: BSL and BSL Classic (and Bloop, which shares the code) fade their sky, fog, clouds, stars and light shafts out near the bottom of the world, by `clamp((cameraPosition.y - bedrockLevel + 6.0) / 8.0, 0.0, 1.0)` (`sky.glsl`, `fog.glsl`, `clouds.glsl`, `lightShafts.glsl`). That fade is meant for y -62 to -70, below the bedrock. With `bedrockLevel` 0 it runs from y 2 to y -6 instead, so below y -6, most of the deepslate layer, the sky, fog and light shafts are gone. BSL's hand (`gbuffers_hand.glsl`) also takes the main hand from `isRightHanded`, so with 0 a right-handed player's main hand is treated as the off hand. Bliss reads `is_on_ground`. `cloudHeight` from the same list is in #5693 (part of #3172) and not part of this.
Author
Owner

@TobiasLogic commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6558744607 --> @TobiasLogic commented on GitHub (Nov 1, 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#1907
No description provided.