Hair: drawn strands keep the piece's cover under the count rule #345

Manually merged
github merged 1 commit from gh-pr/345/head into gh-pr/345/base 2026-11-26 20:29:13 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 03:04 UTC · original
holdmysocks:claude/people-hair-widen → master · +21 −2 · 2 files · 1 commits · merged 2026-11-26 03:15 UTC

Fixes the hair that renders as a sparse pale cloud with a bare scalp, reported for Lucia on a plain launch.

Cause

  • The strand count rule draws a share of a piece's strands that depends on distance. At a full-body view this is about 7 %.
  • The game draws that share at its target thickness, so the piece keeps its coverage. The viewer drew the kept strands at their own width and coverage, so the hair lost coverage by the same share.
  • Characters with fewer stored strands lost almost all of it. Lucia's scalp pieces store 1,420 and 4,773 strands, compared with Mandy's 16,031.

Fix

  • Each strand piece's material now carries a width factor every frame: stored strands over drawn strands, capped at 50.
  • The strand vertex program widens each strand by that factor before the minimum-width rule. Where a strand becomes wider than the minimum width, it is fully opaque.
  • The sun shadow pass keeps its own rule.
  • The material uniform gains one vec4 and is now visible to the vertex stage.

Result (plain launches, no env vars)

  • Lucia: the scalp is covered and the ponytail reads as hair.
  • Mandy: fuller hair, otherwise unchanged.

Still open: Lucia's ponytail piece shows a pale, low-coverage veil around it, faint at full-body distance and clear in close-ups. Its strands there are lit much brighter than their brown colour set. This was present before this change and will be a follow-up.

Tests: sixng-core, sixng-gui and sixng-cli all pass.

**@⁠holdmysocks** on GitHub · 2026-11-26 03:04 UTC · [original](https://github.com/holdmysocks/SixNG/pull/345) `holdmysocks:claude/people-hair-widen` → `master` · +21 −2 · 2 files · 1 commits · merged 2026-11-26 03:15 UTC Fixes the hair that renders as a sparse pale cloud with a bare scalp, reported for Lucia on a plain launch. **Cause** - The strand count rule draws a share of a piece's strands that depends on distance. At a full-body view this is about 7 %. - The game draws that share at its target thickness, so the piece keeps its coverage. The viewer drew the kept strands at their own width and coverage, so the hair lost coverage by the same share. - Characters with fewer stored strands lost almost all of it. Lucia's scalp pieces store 1,420 and 4,773 strands, compared with Mandy's 16,031. **Fix** - Each strand piece's material now carries a width factor every frame: stored strands over drawn strands, capped at 50. - The strand vertex program widens each strand by that factor before the minimum-width rule. Where a strand becomes wider than the minimum width, it is fully opaque. - The sun shadow pass keeps its own rule. - The material uniform gains one vec4 and is now visible to the vertex stage. **Result** (plain launches, no env vars) - Lucia: the scalp is covered and the ponytail reads as hair. - Mandy: fuller hair, otherwise unchanged. **Still open:** Lucia's ponytail piece shows a pale, low-coverage veil around it, faint at full-body distance and clear in close-ups. Its strands there are lit much brighter than their brown colour set. This was present before this change and will be a follow-up. Tests: sixng-core, sixng-gui and sixng-cli all pass.
The strand count rule draws a share of a piece's strands by distance, as
the game does at its target thickness, but the drawn strands kept their
own width and covered share. Hair thinned by the same share: at a full
body view about 7 % of the cover was left, and a character with fewer
stored strands showed a bare scalp and a pale cloud. Each strand piece's
material now carries the factor (stored over drawn strands, up to 50),
and the strand vertex program widens the strand by it, so the piece keeps
its cover at any distance. The sun shadow pass keeps its own rule.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:29:10 +00:00
github manually merged commit 7a41c1f482 into gh-pr/345/base 2026-11-26 20:29:13 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.