[GH-ISSUE #4378] Shader API: water cannot reflect what is off screen #1302

Closed
opened 2026-11-02 15:45:51 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Teiwazik on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4378

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

What

A pack's water can reflect only what is on screen (opaque_color, screen-space reflections), which loses everything above the top of the picture and behind objects: the sky over a lake, the trees on its far shore when looking down. Shader packs elsewhere draw a planar mirror of the world for water.

Proposal

Additively, within API 0.1:

  • the material stage gains reflection and reflection_sampler, the world as a camera mirrored about the horizontal water plane around the camera sees it (sky and solid terrain, at half resolution);
  • Frame gains water_plane, has_reflection and reflection_resolution.

The mirror is drawn only for a pack whose material function reads reflection, so other packs and vanilla pay nothing.

Originally created by @Teiwazik on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4378 > 🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally. ## What A pack's water can reflect only what is on screen (`opaque_color`, screen-space reflections), which loses everything above the top of the picture and behind objects: the sky over a lake, the trees on its far shore when looking down. Shader packs elsewhere draw a planar mirror of the world for water. ## Proposal Additively, within API 0.1: - the material stage gains `reflection` and `reflection_sampler`, the world as a camera mirrored about the horizontal water plane around the camera sees it (sky and solid terrain, at half resolution); - `Frame` gains `water_plane`, `has_reflection` and `reflection_resolution`. The mirror is drawn only for a pack whose material function reads `reflection`, so other packs and vanilla pay nothing.
Author
Owner

@Teiwazik commented on GitHub (Oct 30, 2026):

/claim

<!-- gh-comment-id:6522807238 --> @Teiwazik commented on GitHub (Oct 30, 2026): /claim
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, You hold 5 open issues: finish or /unclaim one first. (asked by @Teiwazik)

<!-- gh-comment-id:6522811071 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, You hold 5 open issues: finish or `/unclaim` one first. (asked by @Teiwazik)
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#1302
No description provided.