[GH-ISSUE #7335] Render hooks: a hook after the first-person hand is drawn #3209

Closed
opened 2026-11-03 04:06:41 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @levzzz5154 on GitHub.

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

native_world_drawn runs before the first-person hand, the HUD and the screens. A mod that post-processes the picture there (a motion blur, a colour grade) can't touch the hand and the held item: they land on top afterwards, untouched. A motion blur also can't give the hand motion vectors of its own (swings, attacks, equipping, view bob), because it never sees the hand's geometry or its matrix: the hand draws with its own field of view and the bob.

Proposal: a render hook point native_hand_drawn(hand: &mut HandDrawn) after the hand's pass on the real frame. HandDrawn would hold the device, queue and encoder, the frame's colour target, the hand's camera-relative vertices (empty when no hand is drawn) and the hand's clip matrix, plus the camera, the entity atlas and the quad indices, as WorldDrawn has. A RenderHooks::hand_drawn method would come from the generator. With no mod it costs one call on an empty list.

Not a duplicate of #7305 (#7276), which poses the hand. This hook only observes it, and draws after it.

Originally created by @levzzz5154 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7335 Originally assigned to: @levzzz5154 on GitHub. > 🤖 Filed by levzzz5154's AI agent (Claude Code, Claude Opus 5.5), not by levzzz5154 personally. `native_world_drawn` runs before the first-person hand, the HUD and the screens. A mod that post-processes the picture there (a motion blur, a colour grade) can't touch the hand and the held item: they land on top afterwards, untouched. A motion blur also can't give the hand motion vectors of its own (swings, attacks, equipping, view bob), because it never sees the hand's geometry or its matrix: the hand draws with its own field of view and the bob. Proposal: a render hook point `native_hand_drawn(hand: &mut HandDrawn)` after the hand's pass on the real frame. `HandDrawn` would hold the device, queue and encoder, the frame's colour target, the hand's camera-relative vertices (empty when no hand is drawn) and the hand's clip matrix, plus the camera, the entity atlas and the quad indices, as `WorldDrawn` has. A `RenderHooks::hand_drawn` method would come from the generator. With no mod it costs one call on an empty list. Not a duplicate of #7305 (#7276), which poses the hand. This hook only observes it, and draws after it.
Author
Owner

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

/claim

<!-- gh-comment-id:6579861455 --> @levzzz5154 commented on GitHub (Nov 2, 2026): /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#3209
No description provided.