| 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 => { |