From 9260dbdad3f207dce6e52bf117d7c7c6de61340e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=BB=E7=AE=A1=E7=BB=8F=E7=90=86=E6=9D=8E=E5=AE=9D?= =?UTF-8?q?=E5=BA=93?= <51938677+Zooeed@users.noreply.github.com> Date: Sun, 22 Jun 2025 15:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E8=A7=86=E5=9F=9F=E5=88=86=E6=9E=90?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9C=B0=E5=BD=A2=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/cesiumEx/viewshed.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/cesiumEx/viewshed.js b/examples/cesiumEx/viewshed.js index b9e7d0ee..b4958a1b 100644 --- a/examples/cesiumEx/viewshed.js +++ b/examples/cesiumEx/viewshed.js @@ -244,9 +244,11 @@ class viewshed extends analyser { size: this.size, softShadows: this.softShadows, normalOffset: false, - fromLightSource: false + fromLightSource: false, }); this.viewer.scene.shadowMap = this.shadowMap; + // 启用地形阴影 + this.viewer.scene.globe.shadows = Cesium.ShadowMode.ENABLED; } //创建PostStage