[GH-ISSUE #7748] Standard shader packs disable otherwise supported GPU entity posing #3355

Open
opened 2026-11-03 04:07:44 +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/7748

Originally assigned to: @gigamans442 on GitHub.

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

Standard shaders/ packs force ordinary supported mob/item model posing back onto the CPU. At public main bc761767d35d4fdc1f4b1144fa8ab75168ed4d14, Renderer::skins_entities() rejects every active standard pack, even when all entity programs compile. The pack entity buffer already has storage usage, but PackPost::prepare_entities() can only take CPU vertices and their shader-ID spans. Thus enabling a standard pack loses the existing GPU model path and uploads the expanded vertices each frame.

Original minimal reproduction: an axis-aligned four-vertex model, one skin job, and a synthetic pack with compiled entity/block/translucent entity stages. Without a standard pack, the renderer accepts the GPU frame; with that pack it rejects it. Expected: compatible compiled stages can consume the same posed output while preserving entityId/blockEntityId, hurt/white-flash overlays, and camera-hidden shadow casters. Missing/failed programs, unsupported models, players and special translucent/eye layers must keep their current CPU fallback.

A local bridge already exists; I am extracting only that renderer transport and its current-query visibility correction onto public history. The visibility correction matters when consecutive GPU-only subjects share a CPU offset: a prior hidden subject's zero-length CPU marker must not decide the next subject's visibility. Synchronous/async proof behavior, unknown or stale proofs and exhausted budgets must retain their existing conservative behavior. No new frame-rate gain is claimed.

Coordination: #7496 -> #7497 remains a separate pose/layer optimization stack; #7378 owns the shared back-face decoder; #7549 owns pre-posing occlusion optimization. This extraction will not import their unmerged commits. It will retain current glowing-outline and native identity paths and check composition against those exact heads.

Only Horizon MIT source and original synthetic fixtures belong in the public change. Earlier private shader research exists; this is not a clean-room provenance claim for the entire private branch. No third-party shader implementation/assets, game files, player worlds or media will be included. Real material maps, geometry-stage extensions, caches and broad compatibility/performance tooling are separate work.

🤖 Generated with Codex

Originally created by @gigamans442 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7748 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, GPT-6.1-sol), not by gigamans442 personally. Standard `shaders/` packs force ordinary supported mob/item model posing back onto the CPU. At public main `bc761767d35d4fdc1f4b1144fa8ab75168ed4d14`, `Renderer::skins_entities()` rejects every active standard pack, even when all entity programs compile. The pack entity buffer already has storage usage, but `PackPost::prepare_entities()` can only take CPU vertices and their shader-ID spans. Thus enabling a standard pack loses the existing GPU model path and uploads the expanded vertices each frame. Original minimal reproduction: an axis-aligned four-vertex model, one skin job, and a synthetic pack with compiled entity/block/translucent entity stages. Without a standard pack, the renderer accepts the GPU frame; with that pack it rejects it. Expected: compatible compiled stages can consume the same posed output while preserving `entityId`/`blockEntityId`, hurt/white-flash overlays, and camera-hidden shadow casters. Missing/failed programs, unsupported models, players and special translucent/eye layers must keep their current CPU fallback. A local bridge already exists; I am extracting only that renderer transport and its current-query visibility correction onto public history. The visibility correction matters when consecutive GPU-only subjects share a CPU offset: a prior hidden subject's zero-length CPU marker must not decide the next subject's visibility. Synchronous/async proof behavior, unknown or stale proofs and exhausted budgets must retain their existing conservative behavior. No new frame-rate gain is claimed. Coordination: #7496 -> #7497 remains a separate pose/layer optimization stack; #7378 owns the shared back-face decoder; #7549 owns pre-posing occlusion optimization. This extraction will not import their unmerged commits. It will retain current glowing-outline and native identity paths and check composition against those exact heads. Only Horizon MIT source and original synthetic fixtures belong in the public change. Earlier private shader research exists; this is not a clean-room provenance claim for the entire private branch. No third-party shader implementation/assets, game files, player worlds or media will be included. Real material maps, geometry-stage extensions, caches and broad compatibility/performance tooling are separate work. 🤖 Generated with [Codex](https://openai.com/codex/)
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6587408096 --> @gigamans442 commented on GitHub (Nov 2, 2026): 🤖 Agent: /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#3355
No description provided.