瀏覽代碼

upgrade the cesium

tags/2.16.0
Caven Chen 3 年之前
父節點
當前提交
3eaf8ba232
共有 1 個檔案被更改,包括 14 行新增6 行删除
  1. 14
    6
      modules/overlay/primitive/LightCylinderPrimitive.js

+ 14
- 6
modules/overlay/primitive/LightCylinderPrimitive.js 查看文件

this._computeEllipsePositions(this._center, this._bottomRadius * 2) this._computeEllipsePositions(this._center, this._bottomRadius * 2)
), ),
perPositionHeight: !isGroud perPositionHeight: !isGroud
})
}),
asynchronous: false
}),
asynchronous: false
})
} }


// ring // ring
asynchronous: false asynchronous: false
}) })


this._delegate.add(ring)
this._delegate.add(circle)
this._delegate.add(cylinder)
if (isGroud) {
Cesium.GroundPrimitive.initializeTerrainHeights().then(() => {
this._delegate.add(ring)
this._delegate.add(circle)
this._delegate.add(cylinder)
})
} else {
this._delegate.add(ring)
this._delegate.add(circle)
this._delegate.add(cylinder)
}


// particles // particles
Cesium.Resource.fetchImage({ url: IMG_PARTICLES }).then(image => { Cesium.Resource.fetchImage({ url: IMG_PARTICLES }).then(image => {

Loading…
取消
儲存