Ped decorations: bake head makeup toward the skin tone #458
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!458
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-458"
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 04:43 UTC · original
holdmysocks:claude/tattoo-makeup-385→master· +292 −56 · 13 files · 3 commits · merged 2026-11-27 05:52 UTCPart of #385; follows #442. Head makeup is now baked. How the game tints a makeup ink, and where the skin tone comes from, are decoded from the exe.
Makeup inks
A makeup layer has an ink whose
p3row(dL, da, db, w)hasw ≠ 0. Before packing, the game runs that ink through one function:wis 0, the ink is unchanged.(dL, da, db), then taken back to sRGB.lerp(ink, target, w)in sRGB.Then the ink is baked like any other ink (#442). So
p3 = (0, 0, 0, 1)paints the plain skin tone, and(-30, 10, 12, 1)paints a darker, redder shade of it. Each ink of a makeup layer has its own row.Skin tone
ff.0d6de047. Ped looks now carry it per part (skin_tone), and the outfit export and the viewer pass it to the bake. With no tag, the game's default toneac2315dais used.Mirrored layers
The bake shader folds the part UV before the decal transform when flag
0x400(U) or0x800(V) is set:u' = 0.5 − |u − 0.5|. One decal then lands on both halves of the texture. Eye make-up uses this, so it now shows on both eyes. The clip quad still uses the raw UV.Confidence
u − 0.5, selected by those two bits).Still left out (counted in the export's
decorationsrecord)0x4/0x8/0x10, which these layers carry, are not read by the bake shader, so the CPU decides what happens to them. Still being traced.0x1000000samples a second texture in the shader; not handled yet.Checked
outfit g_f_m_san4san_00 --look 0: lipstick bakes red on the lips, eye make-up on both eyes, and the body ink tattoos as before.Tests
w = 0leaves it unchanged.