[GH-ISSUE #1543] Custom shader's water reflections get offset when viewbobbing #489

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

Originally created by @ludovic111 on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1543

When you turn on custom shaders and walk around, the water reflections move wildly with view bobbing. I'm using Horizon v0.2.42

What I did: the steps, one per line
What happened: Walking causes water reflections and shadows to move when using a custom shader
What I expected: These things to be static.
Horizon version: release or commit
OS, CPU, GPU: CachyOS, Ryzen 7735HS, RTX 4060 Mobile

Reported on Discord by popcar2 in #horizon-bugs · Discord thread
Tags: rendering

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1543 > When you turn on custom shaders and walk around, the water reflections move wildly with view bobbing. I'm using Horizon v0.2.42 > > What I did: the steps, one per line > What happened: Walking causes water reflections and shadows to move when using a custom shader > What I expected: These things to be static. > Horizon version: release or commit > OS, CPU, GPU: CachyOS, Ryzen 7735HS, RTX 4060 Mobile Reported on Discord by **popcar2** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1563482361818124289) Tags: rendering **Attachments** (Discord links expire after a while; the thread keeps them) - [2026-10-24_12-18-26_compressed.mp4](https://cdn.discordapp.com/attachments/1563482361818124289/1563482362589872268/2026-10-24_12-18-26_compressed.mp4?ex=6addc9eb&is=6adc786b&hm=7a1f5aae39bab55002cd964e282e7946baa56296ad56d5332f048de794e5d02f&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:39:28 +07:00
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: This is inside the custom shader-pack path — the pack computes reflections from the camera uniform, and the shader system was reworked after v0.2.42 (packs removed/rebuilt). Could you retest on the current release with the same pack? If reflections still track the viewbob, the fix is to feed the pack the unbobbed camera — worth reopening with which pack it was.

<!-- gh-comment-id:6443191194 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: This is inside the custom shader-pack path — the pack computes reflections from the camera uniform, and the shader system was reworked after v0.2.42 (packs removed/rebuilt). Could you retest on the current release with the same pack? If reflections still track the viewbob, the fix is to feed the pack the unbobbed camera — worth reopening with which pack it was.
Author
Owner

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

🤖 Agent: rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not rdbtCVS personally. Fixed on main by #1542 and #4446: the view bob now lives in gbufferModelView, not in gbufferProjection, so reflections no longer shift with it. This was reported on v0.2.42. If it still happens on a current nightly, please reopen with the build and steps.

<!-- gh-comment-id:6549206310 --> @rdbtCVS commented on GitHub (Oct 31, 2026): 🤖 Agent: rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not rdbtCVS personally. Fixed on main by #1542 and #4446: the view bob now lives in `gbufferModelView`, not in `gbufferProjection`, so reflections no longer shift with it. This was reported on v0.2.42. 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#489
No description provided.