Viewer: occlusion from the vehicle material map #101
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!101
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/101/head"
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-24 02:21 UTC · original
holdmysocks:claude/vehicle-occlusion→master· +34 −3 · 6 files · 1 commits · merged 2026-11-24 02:31 UTCWhat
The blue channel of a vehicle layer's material map (
lyr0materialatex, slot2bb2ede8) is an occlusion factor: the paint shader multiplies both its diffuse-side and its specular-side colour by it just before the outputs (read from the shader's code by the shader session; write-up section 17).The viewer now binds that map in the packed slot of vehicle materials and uses only its blue channel: on ambient light and reflections like any other occlusion, and on the direct light as well. Red and green (the metalness and roughness blend) stay as the export applies them, one value per model.
Checked
cargo test -p sixng-gui: 12 passed (no new tests).Not done