feat: 关闭时间对模型明暗的影响

This commit is contained in:
caoqianming 2024-04-04 01:29:51 +08:00
parent 891a5b5ec7
commit d452eea5b6
1 changed files with 4 additions and 0 deletions

View File

@ -403,6 +403,10 @@ export default {
navigationInstructionsInitiallyVisible: false,
});
this.viewer = viewer;
//
viewer.scene.light = new Cesium.DirectionalLight({
direction: new Cesium.Cartesian3(0.354925, -0.890918, -0.283358)
})
if (Cesium.FeatureDetection.supportsImageRenderingPixelated()) {
//
viewer.resolutionScale = window.devicePixelRatio;