Character glow layers: drawn unlit, not lit by their colour map #320

Manually merged
github merged 1 commit from gh-pr/320/head into gh-pr/320/base 2026-11-26 20:27:08 +00:00
Owner

@⁠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 UTC

Ghost (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 an emissivemultiplier of 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 like standard_emissive and 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_alpha and ped_standard_emissive_layer (matched by hash, so it works without the names file) get emissive_source "none" and no emissive texture in the GLB. Other emissive shaders are unchanged.
  • Viewer: cached parts with these shaders that were still lit by the colour map are exported again.
  • README: a note in "Emissive and paint".

Verified: cargo test --release --locked passes, 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.

**@⁠holdmysocks** on GitHub · 2026-11-25 22:56 UTC · [original](https://github.com/holdmysocks/SixNG/pull/320) `holdmysocks:claude/people-ghost-face` → `master` · +36 −5 · 3 files · 1 commits · merged 2026-11-25 23:06 UTC Ghost (`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 an `emissivemultiplier` of 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 like `standard_emissive` and 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_alpha` and `ped_standard_emissive_layer` (matched by hash, so it works without the names file) get `emissive_source` "none" and no emissive texture in the GLB. Other emissive shaders are unchanged. - Viewer: cached parts with these shaders that were still lit by the colour map are exported again. - README: a note in "Emissive and paint". Verified: `cargo test --release --locked` passes, 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:27:06 +00:00
github manually merged commit 83e2180926 into gh-pr/320/base 2026-11-26 20:27:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.