Tint palettes: export how much of the palette the game applies (SIX-245) #441
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!441
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-441"
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 02:54 UTC · original
holdmysocks:six245-tint-weight→master· +66 −2 · 2 files · 1 commits · merged 2026-11-27 03:23 UTCSIX-245. The game doesn't always multiply a prop's full tint palette colour into its albedo. Read in the deferred pixel shaders of prop_batch_dirt, standard, standard_dirt and standard_decal_blend:
381999f3).73511514) smooths w and blends toward a colour (b1b16aaf, sRGB). It is 0 on almost every material.Every effect that binds speculartex2, the palette and both controls has the same three bindings (217 effects), which is the test the export uses.
model.json: each material with a tint palette gets
tint_weight:statusstrengthandsmooth(the two controls) andsmooth_target(the colour)mask(the speculartex2 PNG and its hash, alpha channel)full_paletteformulaThe two-layer shaders use
381999f3for something else, so they are marked not decoded. COLOR_0 in the GLB is unchanged (full palette colour). The README tint paragraph describes it.Checked on three exports (the construction rock, a Ferris wheel hub, a mannequin):
Across 8.6 K tinted map materials in a sample, strength is 1 on 2.6 K and 0 on 2.0 K.
Tests:
tint_weight_reads_the_mask_and_strength; the tint tests pass.