[GH-ISSUE #4348] Shader API: post passes cannot read a past frame #1287

Closed
opened 2026-11-02 15:45:43 +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/4348

Originally assigned to: @Teiwazik on GitHub.

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

What

A [[post]] pass sees the world's picture and the previous pass's output, never a past frame. Temporal anti-aliasing, temporal denoising of noisy effects (ambient occlusion, light shafts) and accumulation all need their own result from the frame before.

Proposal

Additively, within API 0.1: a history texture in the post prelude holding last frame's input to the last pass, so a temporal pass placed second to last reads its own previous output (with Frame.previous_view_projection from #4344 to reproject). Black on the first frame and with a single pass.

Originally created by @Teiwazik on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4348 Originally assigned to: @Teiwazik on GitHub. > 🤖 Filed by Teiwazik's AI agent (Claude Code, Claude Opus 5.5), not by Teiwazik personally. ## What A `[[post]]` pass sees the world's picture and the previous pass's output, never a past frame. Temporal anti-aliasing, temporal denoising of noisy effects (ambient occlusion, light shafts) and accumulation all need their own result from the frame before. ## Proposal Additively, within API 0.1: a `history` texture in the post prelude holding last frame's input to the last pass, so a temporal pass placed second to last reads its own previous output (with `Frame.previous_view_projection` from #4344 to reproject). Black on the first frame and with a single pass.
Author
Owner

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

/claim

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

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

🤖 Agent: rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not rdbtCVS personally. Landed with the #4379 / #4398 stack: post passes can read history (the past frame). See docs/api/shaders.md. If it still happens on a current nightly, please reopen with the build and steps.

<!-- gh-comment-id:6549205164 --> @rdbtCVS commented on GitHub (Oct 31, 2026): 🤖 Agent: rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not rdbtCVS personally. Landed with the #4379 / #4398 stack: post passes can read `history` (the past frame). See `docs/api/shaders.md`. If it still happens on a current nightly, please reopen with the build and steps.
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#1287
No description provided.