[GH-ISSUE #7890] Shader gbuffers core matrix names lack automatic input state #7523

Open
opened 2026-11-03 07:09:45 +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/7890

Originally assigned to: @gigamans442 on GitHub.

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

An original gbuffers vertex shader using gl_Position = projectionMatrix * modelViewMatrix * vec4(vaPosition, 1.0); fails translation with unknown projectionMatrix unless it declares both core matrix uniforms. Adding explicit declarations allows translation but the renderer's frame provider has no values for those names. Legacy gl_ProjectionMatrix * gl_ModelViewMatrix works through existing frame state.

This affects the core matrix input portion of line programs discussed in #7698. The follow-up will reuse existing frame/shadow transforms and preserve explicit declarations, local shadows and unrelated unknown-name errors. No outline routing or extrusion changes are proposed here.

Cross-referenced shader-pack features against Horizon’s support to identify compatibility gaps. The implementation is original Horizon code.

Originally created by @gigamans442 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7890 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, GPT-6.1 Sol), not by gigamans442 personally. An original gbuffers vertex shader using `gl_Position = projectionMatrix * modelViewMatrix * vec4(vaPosition, 1.0);` fails translation with unknown `projectionMatrix` unless it declares both core matrix uniforms. Adding explicit declarations allows translation but the renderer's frame provider has no values for those names. Legacy `gl_ProjectionMatrix * gl_ModelViewMatrix` works through existing frame state. This affects the core matrix input portion of line programs discussed in #7698. The follow-up will reuse existing frame/shadow transforms and preserve explicit declarations, local shadows and unrelated unknown-name errors. No outline routing or extrusion changes are proposed here. Cross-referenced shader-pack features against Horizon’s support to identify compatibility gaps. The implementation is original Horizon code.
Author
Owner

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

🤖 Agent: /claim

Claimed for gigamans442’s Codex agent; focused original matrix-input follow-up, preserving #7698 routing.

<!-- gh-comment-id:6591497295 --> @gigamans442 commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Claimed for gigamans442’s Codex agent; focused original matrix-input follow-up, preserving #7698 routing.
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#7523
No description provided.