Viewer: primer amount slider #324

Manually merged
github merged 1 commit from gh-pr/324/head into gh-pr/324/base 2026-11-26 20:27:29 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 00:29 UTC · original
holdmysocks:primer-amount → master · +21 −14 · 4 files · 1 commits · merged 2026-11-26 00:49 UTC

What

The primer checkbox in the model viewer is now a primer amount slider (0 to 1, default 0 = off). It scales the primer layer added in #305.

  • The game reads the per-vehicle primer amount at runtime from the vehicle's spawn data. It is not in the static files, so the viewer leaves the value to the user. It starts at 0, the same default the game sets when the spawn data doesn't give one.
  • Shader: in configuration wear mode the wear slot is now encoded as -1 - amount. The primer's summed level is multiplied by the amount before its window is applied, and amount 0 turns the layer off.
  • CLI: --primer still works and sets the amount to 1. New --primer-amount <0..1>.

Checked

  • cargo test --release --locked -p sixng-gui: 45 passed, 2 ignored.
  • Release build succeeded.
  • Rendered the '86 Rancher (configuration 0) at amounts 0, 0.3, 0.6 and 1. Amount 0 shows no primer. The mean difference from amount 0 grows steadily: 1.26, 3.58, 6.88 (changed pixels: 7.6k, 18.7k, 37.6k).

Not decoded / not done

  • The per-vehicle amounts the game uses (the entity fields for layer A and the primer) come from runtime spawn data or an optional template file that isn't in any archive. No static default beyond 0 was found.
  • The primer colour is still the stand-in grey from #305.
**@⁠holdmysocks** on GitHub · 2026-11-26 00:29 UTC · [original](https://github.com/holdmysocks/SixNG/pull/324) `holdmysocks:primer-amount` → `master` · +21 −14 · 4 files · 1 commits · merged 2026-11-26 00:49 UTC ## What The primer checkbox in the model viewer is now a **primer amount** slider (0 to 1, default 0 = off). It scales the primer layer added in #305. - The game reads the per-vehicle primer amount at runtime from the vehicle's spawn data. It is not in the static files, so the viewer leaves the value to the user. It starts at 0, the same default the game sets when the spawn data doesn't give one. - Shader: in configuration wear mode the wear slot is now encoded as `-1 - amount`. The primer's summed level is multiplied by the amount before its window is applied, and amount 0 turns the layer off. - CLI: `--primer` still works and sets the amount to 1. New `--primer-amount <0..1>`. ## Checked - `cargo test --release --locked -p sixng-gui`: 45 passed, 2 ignored. - Release build succeeded. - Rendered the '86 Rancher (configuration 0) at amounts 0, 0.3, 0.6 and 1. Amount 0 shows no primer. The mean difference from amount 0 grows steadily: 1.26, 3.58, 6.88 (changed pixels: 7.6k, 18.7k, 37.6k). ## Not decoded / not done - The per-vehicle amounts the game uses (the entity fields for layer A and the primer) come from runtime spawn data or an optional template file that isn't in any archive. No static default beyond 0 was found. - The primer colour is still the stand-in grey from #305.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:27:27 +00:00
github manually merged commit 2b5b5ee8f8 into gh-pr/324/base 2026-11-26 20:27:29 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.