Weapon speculartex2 slot role: wear amount, not a metal mask #391

Manually merged
github merged 2 commits from gh-pr/391/head into gh-pr/391/base 2026-11-26 20:32:49 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 18:36 UTC · original
holdmysocks:six18-weapon-slot → master · +26 −4 · 2 files · 2 commits · merged 2026-11-26 20:11 UTC

The weapon pixel program uses speculartex2 R (times a block strength) as a wear amount: it lerps the colour toward a wear ramp, scales metalness by 1 - wear and moves roughness toward a block value. G modulates gloss. Metalness comes from another map.

  • New SHADER_SLOTS table and slot_role_in(shader, param) in material.rs. A shader-specific role replaces the generic one.
  • The model.json texture entries use slot_role_in, so weapon materials now describe speculartex2 correctly.
  • The generic speculartex2 role no longer claims roughness/metal/AO.
  • Test: weapon_speculartex2_is_wear_not_metal.

Resolves the export side of SIX-18.

**@⁠holdmysocks** on GitHub · 2026-11-26 18:36 UTC · [original](https://github.com/holdmysocks/SixNG/pull/391) `holdmysocks:six18-weapon-slot` → `master` · +26 −4 · 2 files · 2 commits · merged 2026-11-26 20:11 UTC The weapon pixel program uses speculartex2 R (times a block strength) as a wear amount: it lerps the colour toward a wear ramp, scales metalness by 1 - wear and moves roughness toward a block value. G modulates gloss. Metalness comes from another map. - New SHADER_SLOTS table and slot_role_in(shader, param) in material.rs. A shader-specific role replaces the generic one. - The model.json texture entries use slot_role_in, so weapon materials now describe speculartex2 correctly. - The generic speculartex2 role no longer claims roughness/metal/AO. - Test: weapon_speculartex2_is_wear_not_metal. Resolves the export side of SIX-18.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:32:49 +00:00
github manually merged commit 4c796b2571 into gh-pr/391/base 2026-11-26 20:32:49 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.