Ped decorations: place layers in the record's own UV #468
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!468
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-468"
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-27 06:03 UTC · original
holdmysocks:claude/tattoo-zone-385→master· +50 −6 · 1 files · 2 commits · merged 2026-11-27 06:30 UTCPart of #385. Independent of #460 (both bump the bake rule; this one to 6). Fixes the smeared chest tattoo on cs_mandy (looks 0, 1 and 4–7).
Cause
cs_mandy's outfits list two decoration records that use the same decal. The bake applied only each layer's own matrix, so both landed on the chest at slightly different sizes and overlapped. The records' region names (
targets, joaat) are "left arm" and "right arm".The record matrix
Each decoration record has a UV matrix of its own (
6e8249bf, +32, three vec4 rows, the same layout as a layer's). The game's bake mesh shader (MSNC_VS_BakeDecorations) rasterises the part at the part UV times that matrix and hands that UV to the pixel shader. The layer's clip quad, U/V fold and matrix then all work in it. So:r = (u v 1) × R. Whererfalls outside0..1, the record draws nothing.r.r × L.Most records'
Ris the identity (unchanged here, head makeup included) or a uniform scale and offset that zooms into one region. Mandy's "left arm" record now lands on the forearm with the design's proportions, and the "right arm" record lands as a small mark by the hand. The chest is clear.Confidence
Still left out
Checked
Tests