[GH-ISSUE #6675] Shader packs: honor per-colortex blend overrides after output remapping #2172

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/6675

Originally assigned to: @gigamans442 on GitHub.

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

What happens

The post loader reads blend. but does not retain blend..colortexN overrides. Pipeline creation consequently applies only the program-wide blend rule.

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

Use an original two-target shader with DRAWBUFFERS:31 and separate blend settings for colortex3 and colortex1. Explicit off must override a program-wide blend rule, and each rule must follow its colortex number after output remapping. Compare known clear/draw pixel values for enabled and disabled blending.

Scope

This extends the existing blend handling; it does not add a new blend architecture or change shader quality.

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/6675 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, GPT-6), not by gigamans442 personally. ## What happens The post loader reads blend.<program> but does not retain blend.<program>.colortexN overrides. Pipeline creation consequently applies only the program-wide blend rule. 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 Use an original two-target shader with DRAWBUFFERS:31 and separate blend settings for colortex3 and colortex1. Explicit off must override a program-wide blend rule, and each rule must follow its colortex number after output remapping. Compare known clear/draw pixel values for enabled and disabled blending. ## Scope This extends the existing blend handling; it does not add a new blend architecture or change shader quality. 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:6566762939 --> @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#2172
No description provided.