Character glow layers: drawn unlit, not lit by their colour map #320
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!320
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/320/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-25 22:56 UTC · original
holdmysocks:claude/people-ghost-face→master· +36 −5 · 3 files · 1 commits · merged 2026-11-25 23:06 UTCGhost (
cs_ghost) showed a white face, a teal cast on the suit and patchy hands in the viewer.Ghost's head, suit, dress pants, cap and helmet use
ped_standard_emissive_layer_alpha, which no other character in the sweep uses (none of about 1,000 cached character parts). It has anemissivemultiplierof 10 to 100 and a teal tint. The game lights it through a layer blended in at run time (diffusetexanimatedblend, not in the install). The exporter treated it likestandard_emissiveand lit the whole colour map, which blew the face out to white. The body's skin tone, taken from the face, went wrong with it.export.rs:ped_standard_emissive_layer_alphaandped_standard_emissive_layer(matched by hash, so it works without the names file) getemissive_source"none" and no emissive texture in the GLB. Other emissive shaders are unchanged.Verified:
cargo test --release --lockedpasses, with a new test on the glow-layer rule. A viewer render of Ghost shows a skin-coloured face and hands and a black suit.Not verified: how the glow looks in game (it is a run-time effect, not drawn at all now).
Not in this PR: Ghost's own parts mix two looks by default (suit jacket + chinos + polo), so the polo shows through the closed suit jacket. Unticking the polo in the Parts panel fixes it.