Viewer: lamps, vehicle occlusion and fabric weave on the normal macOS build #242

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

@⁠holdmysocks on GitHub · 2026-11-25 03:44 UTC · original
holdmysocks:claude/metal-parity → master · +13 −6 · 3 files · 1 commits · merged 2026-11-25 03:54 UTC

What

Three viewer features were switched off on every macOS build with cfg!(not(target_os = "macos")), with the comment "not on the Metal renderer":

  • lit vehicle lamps and sirens
  • occlusion from a vehicle's material map
  • the per-pixel fabric weave on garments

The Metal 4 renderer is opt-in (--features metal4-poc); the normal macOS build, and the released one, draw with the same wgpu shader as Windows and Linux, which has all three. So a Mac user got none of them for no reason.

The three gates now ask for a Metal 4 build (METAL4_BUILD: macOS and the metal4-poc feature). Nothing changes on Windows or Linux, and nothing changes in a Metal 4 build.

Checked

  • Windows: builds, workspace tests pass. The three conditions evaluate as before there.
  • That release and CI builds do not enable metal4-poc: the release workflow, the macOS app script and CI build without it.

Not decoded / not done

  • Not run on a Mac. CI compiles the macOS build on this PR; nobody has looked at lamps, occlusion or the weave on macOS with the wgpu shader. They use nothing platform-specific (a joint matrix row, one more texture read, a texture's alpha), but that is reasoning, not a test.
  • The Metal 4 renderer itself is not changed. Compared with the wgpu shader it still lacks: lit lamps and sirens, the brake disc glow, the occlusion-only material map, the fabric weave. Its shader is not compiled by CI or a release build and cannot be built on Windows, so a port could not be checked here.
  • A Metal 4 build that falls back to wgpu at run time (older macOS) still has the three features off, as before.
**@⁠holdmysocks** on GitHub · 2026-11-25 03:44 UTC · [original](https://github.com/holdmysocks/SixNG/pull/242) `holdmysocks:claude/metal-parity` → `master` · +13 −6 · 3 files · 1 commits · merged 2026-11-25 03:54 UTC ## What Three viewer features were switched off on every macOS build with `cfg!(not(target_os = "macos"))`, with the comment "not on the Metal renderer": - lit vehicle lamps and sirens - occlusion from a vehicle's material map - the per-pixel fabric weave on garments The Metal 4 renderer is opt-in (`--features metal4-poc`); the normal macOS build, and the released one, draw with the same wgpu shader as Windows and Linux, which has all three. So a Mac user got none of them for no reason. The three gates now ask for a Metal 4 build (`METAL4_BUILD`: macOS and the `metal4-poc` feature). Nothing changes on Windows or Linux, and nothing changes in a Metal 4 build. ## Checked - Windows: builds, workspace tests pass. The three conditions evaluate as before there. - That release and CI builds do not enable `metal4-poc`: the release workflow, the macOS app script and CI build without it. ## Not decoded / not done - Not run on a Mac. CI compiles the macOS build on this PR; nobody has looked at lamps, occlusion or the weave on macOS with the wgpu shader. They use nothing platform-specific (a joint matrix row, one more texture read, a texture's alpha), but that is reasoning, not a test. - The Metal 4 renderer itself is not changed. Compared with the wgpu shader it still lacks: lit lamps and sirens, the brake disc glow, the occlusion-only material map, the fabric weave. Its shader is not compiled by CI or a release build and cannot be built on Windows, so a port could not be checked here. - A Metal 4 build that falls back to wgpu at run time (older macOS) still has the three features off, as before.
They were switched off on every macOS build for the sake of the opt-in
Metal 4 renderer. The gates now ask for a Metal 4 build.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:20:53 +00:00
github manually merged commit a7f5e7ece5 into gh-pr/242/base 2026-11-26 20:20:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.