[GH-ISSUE #6674] Shader packs: initialize previous-frame uniforms from the first real frame #2170

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

Originally created by @gigamans442 on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6674

Originally assigned to: @gigamans442 on GitHub.

🤖 Filed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally.

What happens

FrameUniforms::update initializes previousCameraPosition to the origin and previous view/projection matrices to zero when there is no preceding frame. Built-in wetness and eye-light smoothing also start at zero with a zero initial dt.

Source checked at 0454e97e32b528873dd56d04f0669f57aaa34fbe. A private host/compiler fix exists; I am preparing a separate public branch with original synthetic regressions. The private installation is not the proposed public diff.

Reproduction and expected behavior

Create a new FrameUniforms, update it once with a non-origin camera, non-identity view and projection, rain and nonzero eye light. The previous camera/matrices should equal the first current values; smoothed environment values should start at their first inputs. Update a second time with a different camera: previous values should now refer to frame one, not frame two.

Scope

This is the initial state of existing supplied uniforms, not missing uniform names or a claim to fix ongoing shadow flicker. The active #3172 claim explicitly covers cloudHeight/isElytraFlying; neither is changed. Custom-expression smooth() from #5113 is also separate.

The related-work audit checked 452 open records, all 129 open PR file lists, relevant claim comments and targeted open/closed searches. No open PR implements this exact fix in that snapshot. Broad renderer file overlap is tracked separately rather than described as proof of duplicate work.

Provenance

The proposed patch changes Horizon's MIT host/compiler implementation and uses original synthetic fixtures and public format/language contracts. No Iris, OptiFine or Sodium implementation code or shader-pack rendering algorithm is copied or adapted. Prior personal compatibility research did inspect installed shader-pack source; this history is disclosed and this work is not described as a clean-room effort. No private packs, worlds, photos or video will be attached.

🤖 Generated with Codex

Originally created by @gigamans442 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6674 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. ## What happens FrameUniforms::update initializes previousCameraPosition to the origin and previous view/projection matrices to zero when there is no preceding frame. Built-in wetness and eye-light smoothing also start at zero with a zero initial dt. Source checked at `0454e97e32b528873dd56d04f0669f57aaa34fbe`. A private host/compiler fix exists; I am preparing a separate public branch with original synthetic regressions. The private installation is not the proposed public diff. ## Reproduction and expected behavior Create a new FrameUniforms, update it once with a non-origin camera, non-identity view and projection, rain and nonzero eye light. The previous camera/matrices should equal the first current values; smoothed environment values should start at their first inputs. Update a second time with a different camera: previous values should now refer to frame one, not frame two. ## Scope This is the initial state of existing supplied uniforms, not missing uniform names or a claim to fix ongoing shadow flicker. The active #3172 claim explicitly covers cloudHeight/isElytraFlying; neither is changed. Custom-expression smooth() from #5113 is also separate. The related-work audit checked 452 open records, all 129 open PR file lists, relevant claim comments and targeted open/closed searches. No open PR implements this exact fix in that snapshot. Broad renderer file overlap is tracked separately rather than described as proof of duplicate work. ## Provenance The proposed patch changes Horizon's MIT host/compiler implementation and uses original synthetic fixtures and public format/language contracts. No Iris, OptiFine or Sodium implementation code or shader-pack rendering algorithm is copied or adapted. Prior personal compatibility research did inspect installed shader-pack source; this history is disclosed and this work is not described as a clean-room effort. No private packs, worlds, photos or video will be attached. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

@gigamans442 commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

Claimed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. I will prepare the isolated fix and its branch-specific checks; unrelated shader work is excluded.

<!-- gh-comment-id:6566760421 --> @gigamans442 commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Claimed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. I will prepare the isolated fix and its branch-specific checks; unrelated shader work is excluded.
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#2170
No description provided.