Viewer: colour clothing whose textures are not in the install #295

Manually merged
github merged 1 commit from gh-pr/295/head into gh-pr/295/base 2026-11-26 20:25:22 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 17:03 UTC · original
holdmysocks:claude/people-bare-colour → master · +43 −3 · 3 files · 1 commits · merged 2026-11-25 17:12 UTC

Colours clothing in the viewer when none of its textures are in the install. Such garments were shown white.

What changed

  • Which garments. Some garments, such as Cal's bucket hat and Maryam's sun hat, bind textures that no store holds. With no base texture, the viewer had no shade map to bake the preset colour into, so the garment stayed white.
  • How they are found. A material counts as such a garment when it has no base texture, uses a ped_ shader and binds speculartex2 (739e3d0d), which marks ped clothing.
  • What they get. These materials now take their colour per vertex, as a vertex tint. The source is the preset colour of the part named in the vertex colour's green channel, or else the item's colour, tint row or colour word. That is the same colour the textured path would bake.
  • Viewer only. Export is unchanged, so EXPORT_VERSION stays.

Verified

  • cargo test --release --locked passes.
  • I rendered Cal and Maryam with PR 294 applied.
    • Cal's bucket hat went from white to tan with a dark band.
    • Maryam's hat went from white to cream with a black band.

Not verified

  • Only these two hats were checked. I did not count how many garments across the game have no textures in the install.
  • These garments have no fabric shading, because there is no texture to give it.
  • sixng outfit --look exports still leave these garments uncoloured.
  • The colours were not compared against game footage.
**@⁠holdmysocks** on GitHub · 2026-11-25 17:03 UTC · [original](https://github.com/holdmysocks/SixNG/pull/295) `holdmysocks:claude/people-bare-colour` → `master` · +43 −3 · 3 files · 1 commits · merged 2026-11-25 17:12 UTC Colours clothing in the viewer when none of its textures are in the install. Such garments were shown white. ## What changed - **Which garments.** Some garments, such as Cal's bucket hat and Maryam's sun hat, bind textures that no store holds. With no base texture, the viewer had no shade map to bake the preset colour into, so the garment stayed white. - **How they are found.** A material counts as such a garment when it has no base texture, uses a `ped_` shader and binds `speculartex2` (`739e3d0d`), which marks ped clothing. - **What they get.** These materials now take their colour per vertex, as a vertex tint. The source is the preset colour of the part named in the vertex colour's green channel, or else the item's colour, tint row or colour word. That is the same colour the textured path would bake. - **Viewer only.** Export is unchanged, so `EXPORT_VERSION` stays. ## Verified - `cargo test --release --locked` passes. - I rendered Cal and Maryam with PR 294 applied. - Cal's bucket hat went from white to tan with a dark band. - Maryam's hat went from white to cream with a black band. ## Not verified - Only these two hats were checked. I did not count how many garments across the game have no textures in the install. - These garments have no fabric shading, because there is no texture to give it. - `sixng outfit --look` exports still leave these garments uncoloured. - The colours were not compared against game footage.
A garment with no texture in any store (Cal's bucket hat, Maryam's sun
hat) had no shade map for its preset colour to be baked into and was
shown white. Such ped clothing materials (a ped_ shader that binds
speculartex2, no base texture) now take the preset colour per vertex
(part number in the vertex colour's green), or the item's colour, tint
row or colour word, as a vertex tint.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:25:21 +00:00
github manually merged commit 4ef29d6874 into gh-pr/295/base 2026-11-26 20:25:22 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.