From 83fbe6949fec7cb7b1735dc8227115ca14c1e27d Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Thu, 22 Oct 2026 13:38:22 +0400 Subject: [PATCH] fix(navara): disable redundant sun shadows in minimal look Minimal inherited the sun light default of castShadow=true although the photoreal tiles carry baked lighting. Use the same no-shadow sun configuration as cinematic. The focused 3-run city gate improved from C4.6/N5.1 ms (1.1087) to C4.6/N4.9 ms (1.0652) with 12000 vessels. Full Node 24 tests and allocation gates, boundaries, format, build and panel build pass. --- src/globe/navara/viewOptions.js | 3 ++- src/globe/navara/viewOptions.test.mjs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/globe/navara/viewOptions.js b/src/globe/navara/viewOptions.js index 7474fb8dc..b04076a0e 100644 --- a/src/globe/navara/viewOptions.js +++ b/src/globe/navara/viewOptions.js @@ -204,7 +204,8 @@ const PLANS = { minimal: () => ({ pluginDefault: false, meshes: [{ sky: {} }, { stars: {} }], - lights: [{ skyLightProbe: {} }, { sun: {} }], + // Match cinematic: Google tiles already carry baked sunlight. + lights: [{ skyLightProbe: {} }, { sun: { castShadow: false } }], effects: [], globeLighting: false, atmosphereLuminance: 1, diff --git a/src/globe/navara/viewOptions.test.mjs b/src/globe/navara/viewOptions.test.mjs index 3abf113c8..c64a56675 100644 --- a/src/globe/navara/viewOptions.test.mjs +++ b/src/globe/navara/viewOptions.test.mjs @@ -70,7 +70,7 @@ test('cinematic is the default look; photoreal is the default plugin scene; mini assert.deepEqual(navaraScenePlan('minimal'), { pluginDefault: false, meshes: [{ sky: {} }, { stars: {} }], - lights: [{ skyLightProbe: {} }, { sun: {} }], + lights: [{ skyLightProbe: {} }, { sun: { castShadow: false } }], effects: [], globeLighting: false, atmosphereLuminance: 1,