From 35f53b54046e95a39ee6ca77f513fe5ce2feb6d7 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 04 Feb 2026 16:55:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 applications/drone-command/src/utils/cesium/publicCesium.js |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/applications/drone-command/src/utils/cesium/publicCesium.js b/applications/drone-command/src/utils/cesium/publicCesium.js
index 234d0e5..de0c994 100644
--- a/applications/drone-command/src/utils/cesium/publicCesium.js
+++ b/applications/drone-command/src/utils/cesium/publicCesium.js
@@ -166,11 +166,7 @@
 		this.viewer.shadows = false
 		this.viewer.shadowMap.darkness = 0.5
 
-		let time = new Date()
-		time.setHours(12, 0, 0, 0)
-		let utc = Cesium.JulianDate.fromDate(new Date(time))
-
-		this.viewer.clockViewModel.currentTime = Cesium.JulianDate.addHours(utc, 0, new Cesium.JulianDate())
+		this.setFixedNoonLighting()
 
 		// 边界,机巢
 		this.boundary = useBoundary(this.viewer, { multiple, dockOptions, boundaryChange, boundaryColor, dockRangeType, useDockHeight })
@@ -904,4 +900,25 @@
 			this.viewer?.imageryLayers.remove(imageryLayers)
 		}
 	}
+
+	setFixedNoonLighting (utcOffsetHours = 8) {
+		if (!this.viewer) return
+		const now = new Date()
+		const utcNoon = Date.UTC(
+			now.getUTCFullYear(),
+			now.getUTCMonth(),
+			now.getUTCDate(),
+			12 - Number(utcOffsetHours || 0),
+			0,
+			0,
+			0
+		)
+		const julian = Cesium.JulianDate.fromDate(new Date(utcNoon))
+		this.viewer.clock.currentTime = julian
+		this.viewer.clockViewModel.currentTime = julian
+		this.viewer.clock.shouldAnimate = false
+		this.viewer.clock.multiplier = 0
+		this.viewer.clockViewModel.multiplier = 0
+		this.viewer.scene.requestRender()
+	}
 }

--
Gitblit v1.9.3