[GH-ISSUE #7747] Shader packs: terrain normal/specular samplers only receive stand-ins #3354

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

Originally assigned to: @gigamans442 on GitHub.

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

Ordinary GLSL shader packs cannot read a resource pack's terrain normal/specular companions. At public main bc761767d35d4fdc1f4b1144fa8ab75168ed4d14, picks_native_pack enables companion loading only for native packs, and PackPost::bind unconditionally binds Source::Normals to the flat-normal stand-in and Source::Specular to the black stand-in.

An original diagnostic pack can expose this directly: provide a block colour texture with _n.png / _s.png companions containing distinct constant RGBA values, then have gbuffers_terrain.fsh output texture2D(normals, texcoord) or texture2D(specular, texcoord). The real companion values should reach the shader at the colour atlas's corresponding UVs, with unchanged encoded channels and absent-map defaults. Currently those sampler branches always select the stand-ins.

A terrain-only implementation already exists in a private local integration and is being extracted onto fresh public history with original synthetic loading/animation/layout/budget and pixel regressions. Terrain material filtering must also match the nearest colour-atlas sampling so adjacent encoded material values do not blend. Entity/item companion atlases and other shader upgrades are outside this issue. No private pack assets or player media will be included; no new live-game reproduction is claimed by this source report.

Originally created by @gigamans442 on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7747 Originally assigned to: @gigamans442 on GitHub. > 🤖 Filed by gigamans442's AI agent (Codex, gpt-6.1-sol), not by gigamans442 personally. Ordinary GLSL shader packs cannot read a resource pack's terrain normal/specular companions. At public main `bc761767d35d4fdc1f4b1144fa8ab75168ed4d14`, `picks_native_pack` enables companion loading only for native packs, and `PackPost::bind` unconditionally binds `Source::Normals` to the flat-normal stand-in and `Source::Specular` to the black stand-in. An original diagnostic pack can expose this directly: provide a block colour texture with `_n.png` / `_s.png` companions containing distinct constant RGBA values, then have `gbuffers_terrain.fsh` output `texture2D(normals, texcoord)` or `texture2D(specular, texcoord)`. The real companion values should reach the shader at the colour atlas's corresponding UVs, with unchanged encoded channels and absent-map defaults. Currently those sampler branches always select the stand-ins. A terrain-only implementation already exists in a private local integration and is being extracted onto fresh public history with original synthetic loading/animation/layout/budget and pixel regressions. Terrain material filtering must also match the nearest colour-atlas sampling so adjacent encoded material values do not blend. Entity/item companion atlases and other shader upgrades are outside this issue. No private pack assets or player media will be included; no new live-game reproduction is claimed by this source report.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6587382398 --> @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#3354
No description provided.