People: fabric baked into garment textures (weave, colour gradient, tint-mask layers) #122
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!122
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/122/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 04:57 UTC · original
holdmysocks:claude/people-fabric→master· +377 −7 · 6 files · 6 commits · merged 2026-11-24 05:06 UTCWhat
The viewer bakes each garment's fabric into its base texture (new
crates/sixng-gui/src/fabric.rs), at 2048 texels:materialidtexture, or the per-vertex part number), the tiling fabric texture (tilematerialmapgreen attilescale/tilerotationover the second UV set) under the three-stop gradient of its colour (matlib::stops);lerp(colour, gradient(tint), mask x opacity x tint alpha). Denim weave and wash, belts and trims, prints (camouflage).The tiling UV per texel comes from rasterising the mesh through UV0; each texel samples the tile at the mip level of its footprint, so where the weave is finer than a texel the colour converges to the tile's mean. No shader change, so it applies on both renderers.
Also:
matlib::Library::load(ws), and the item's preset hash onLookPart/PartFx.Relation to #117
Agreed with the shader session (and the user: combine): this goes in first; #117 is then cut down to close-up weave detail in the wgpu shader on top of the baked colour. The bake can sample the tile at its mean for materials that get shader detail, to avoid doubling (follow-up).
Verified
Not verified / limits
outfit --lookexports do not have the fabric yet.