Four-layer ground: layer order, weights and data maps confirmed from the shader code #161
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!161
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/161/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-24 14:01 UTC · original
holdmysocks:claude/four-layer-from-shader→master· +17 −4 · 2 files · 1 commits · merged 2026-11-24 14:24 UTCFirst result of reading layer blending in the shader code (SIX-68). Description and confidence only: the exporter's and viewer's behaviour is unchanged.
Read
One deferred pixel program of
standard_uber_4lyr(about 5,400 instructions), with the texture slots and constant offsets fromsixng shader-bindings. The other four-layer variants have the same 17 texture slots and use this same program for their alpha-clip pass; their own main programs were not read.Confirmed from the code
saturate(1 - r - g - b)weights layer 3. This was medium (R, G, B) and low (layer 3) confidence from a seam test; it is now read directly.3022de38,42110214,0cd6179f,3ea37b39for layers 0 to 3), each sampled with its layer's UV right before that layer's colour and normal map. This matches the pairing found earlier by co-occurrence.New
mix(lookup.rgb, colour.rgb, colour.a)with the second vertex colour set, so that set can replace the lookup texture per vertex.1 - aby a material constant). G and B are read; B is also used as1 - blater.Changed
multilayerof a four-layer material inmodel.json:weights.vertex_override,weights.result,data_map_channels, and the confidence entries for channel order, layer 3 and data-map pairing set to high.cargo test -p sixng-core: 170 passed.Not decoded, not checked