Tattoos: decode the ink words and bake ink-coloured decorations #442
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!442
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-442"
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 03:00 UTC · original
holdmysocks:claude/tattoo-ink-385→master· +275 −65 · 2 files · 4 commits · merged 2026-11-27 03:40 UTCPart of #385; follows #429. Ink-coloured tattoos are now baked. The ink words and the way the game turns them into colours are decoded from the game's CPU packer and its bake shader.
Ink words
An ink word is
0xAAVVSSHH: hue, saturation, value and alpha bytes, each / 255. Withramp = hue(H)(the game's HSV ramp), the packer makes three stops in sRGB:0.1 V × lerp(1, ramp, S), alpha 1V × lerp(1, ramp, S), alpha A(0.45 + 0.55 V) × lerp(1, ramp, 0.55 S), alpha 1Each stop goes to linear light and is quantised to a byte. An ink with alpha 0 is off. The common body ink
ff438982is a dark teal, sRGB about (0.12, 0.25, 0.26).Shading (from the bake shader)
alpha × red, ink 2 byalpha × blue, each with its own stops at green.0x4000000multiply,0x8000000screen,0x10000000overlay, otherwise normal. All in linear light; coverage is decal alpha × opacity as before.Still left out (counted in model.json
decorations)p3row has a non-zero fourth value. The game moves that ink toward a colour from a lookup in another colour space, which is not decoded yet. That is the makeup follow-up.mode(0–5) is a target index the game matches against the record it bakes into, not a blend mode. It is recorded but not used.Confidence
Other changes
p3. Catalogue cache version 2.ruleandink_rulestrings in model.json describe the decoded rule.Checked
outfit g_m_m_guardia_00 --look 5: the ink tattoos (crow, moka pot, eye and dagger, and the outlines of the colour pieces) now bake in dark teal ink next to the full-colour car.Tests
p3read from a PSO laid out as the game's.