Export: weapon parts in their preset colours #119
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!119
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/119/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 04:45 UTC · original
holdmysocks:claude/weapon-export-colours→master· +60 −3 · 4 files · 1 commits · merged 2026-11-24 04:52 UTCWhat this changes
weaponmaterials looks up its layered-material preset by name (weapon library,matlib) and writes COLOR_0 per vertex: the preset's base colour of the vertex's sub-material (green byte of the raw colour stream / 4), linear. The material's stand-in becomesweapon_parts(white base colour factor; metallic and roughness as before), and the material extras getweapon_preset(preset, the eight sub-material colours, what is applied;preset: nullwhen the library names none, and the old gun-metal stand-in stays).weapon_preset). The assembled-weapon path of #114 is unchanged and gives the same colours.What was checked
weapon_parts, extras present.--gpu radeon): the slide alone is coloured; the assembled pistol looks as it did after #114.cargo test -p sixng-core: 148 passed;cargo checkand release builds of CLI and viewer pass.What is not done / not known