Fix planet and ship lighting regression

This commit is contained in:
2026-03-12 09:59:54 -04:00
parent fbdf8d0d5a
commit 44311a8585
3 changed files with 6 additions and 1 deletions

View File

@@ -1086,6 +1086,8 @@ export class GameApp {
}
this.camera.updateProjectionMatrix();
const focusedSystemId = this.findNearestSystem(this.getCameraFocus()).definition.id;
this.systems.forEach((system) => {
const universe = this.viewLevel === "universe";
@@ -1106,6 +1108,7 @@ export class GameApp {
});
system.star.visible = !universe;
system.light.visible = !universe && system.definition.id === focusedSystemId;
system.strategicMarker.visible = universe;
});