Viewer: fabric weave per pixel for a garment's main sub-material #128
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!128
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/128/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 05:53 UTC · original
holdmysocks:claude/fabric-detail→master· +131 −19 · 9 files · 1 commits · merged 2026-11-24 06:05 UTCReplaces the draft #117, rebuilt on master after #122 (the fabric bake). Linear: SIX-43.
What this changes
detail: Nonein its two material constructors).fabric::baketakes adetailflag and returns the main sub-material;Tex::mean,Tex::rgba,Fabric::detailare new. Material uniform +1 vector, material bind group +1 texture.glb::mergeshifts the detail image index like the other image indices.SIXNG_NO_FABRIC_DETAIL=1turns the shader weave off (the bake then does everything, as before).What was checked
--gpu radeon, with and without the switch: at very close range the denim twill is crisp per pixel instead of blurred; the mean colour of the same screen region differs by at most 1 level of 255 at both distances (78.6 / 102.6 / 130.4 against 79.0 / 103.4 / 131.5 close up; 93.5 / 103.7 / 120.1 against 93.4 / 103.5 / 119.9 at normal distance). The pale hems, a different sub-material, keep their baked weave.glb::merge; the screenshots above are from after the fix.cargo test -p sixng-corepasses; release build of the viewer passes.What is not done / not known