Fix planet and ship lighting regression
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user