Skin spec maps as glTF channels and in the viewer's skin shading (#392, part 2) #446
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!446
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-446"
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 03:10 UTC · original
holdmysocks:people-skin-shading→master· +172 −6 · 10 files · 5 commits · merged 2026-11-27 04:37 UTC#392, part 2. Stacked on PR 435 (it carries that PR's two commits); merge PR 435 first.
What the game does
Read from the forward skin program
PS_StudioPedTextured_Eight(the shader archive'sforwardstudiotechnique):speculartexG is roughness. GGX alpha = roughness squared. There is no metal.fresnel), wherefresnelis the material'sspecularfresnelconstant (b5fe3acb). On body skin it is -0.3, so F0 = 0.028; f90 = saturate(49.5 x F0) = 1.speculartexR (translucency) and B (occlusion) go only to the deferred G-buffer.speculartex2R is the detail strength, and its G is a region index into engine-wide detail atlases.What changes
metallicRoughnessTextureisspeculartex, with metallicFactor 0 and roughnessFactor 1. glTF reads roughness from G, and B is not read as metal.KHR_materials_specular.specularFactor= 1 +fresnel(0.7).extras.skin_speckeeps both raw maps and their channel meanings.speculartexG as roughness and the game's F0.speculartex2is no longer read as a packed roughness/metal map; before, that put streaks on the torso and arms.Not carried (stated in the README)
Checks
cargo test -p sixng-core(346 passed) andcargo test -p sixng-gui(53 passed). The release build has no warnings.extensionsUsedlistsKHR_materials_specular.