Body skin: per-ped detail strength and its distance fade #492
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!492
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-492"
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 18:56 UTC · original
holdmysocks:people-skin-perped→master· +41 −11 · 3 files · 2 commits · merged 2026-11-27 19:07 UTCFollows #463 and #483 (issue #392).
The game scales the engine skin detail by two values in a per-ped GPU record (3b316b01, copied from the ped's own block each frame):
1 - saturate((distance - near) / (far - near)). near and far are 6 and 9 m, or 20 and 21 m for peds with a flag set. Both detail terms are multiplied by it.1 - c(c is an owner byte / 255) when one of two owner flags is set.Up close both values are 1, which is what the viewer already uses. So rendering is unchanged.
Changes:
extras.skin_spec.detail.per_pedrecords these rules.per_ped_detail_is_one_up_close.Tests: sixng-core and sixng-gui release tests pass.