@hztxi/cesium-engine 25.0.6 → 26.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Workers/chunk-2GJAWJJT.js +1344 -0
- package/Build/Workers/chunk-2J2VS5RI.js +288 -0
- package/Build/Workers/chunk-2NCNUVAT.js +56 -0
- package/Build/Workers/chunk-2ZYRUVVU.js +301 -0
- package/Build/Workers/chunk-36IU7N4V.js +1284 -0
- package/Build/Workers/chunk-375SHKGW.js +44 -0
- package/Build/Workers/chunk-3BDLET5S.js +198 -0
- package/Build/Workers/chunk-3PRHI4KX.js +241 -0
- package/Build/Workers/chunk-3R6E2SH4.js +672 -0
- package/Build/Workers/chunk-3ZKKXEXL.js +415 -0
- package/Build/Workers/chunk-47KVKPTO.js +415 -0
- package/Build/Workers/chunk-4N227IPR.js +973 -0
- package/Build/Workers/chunk-4P6OAPBM.js +97 -0
- package/Build/Workers/chunk-4ZOLEPZK.js +519 -0
- package/Build/Workers/chunk-5EF3WWQG.js +352 -0
- package/Build/Workers/chunk-5FYUSABU.js +945 -0
- package/Build/Workers/chunk-5I76476T.js +288 -0
- package/Build/Workers/chunk-5PBZKBAP.js +511 -0
- package/Build/Workers/chunk-5RVAAW26.js +82 -0
- package/Build/Workers/chunk-5VWK76PO.js +511 -0
- package/Build/Workers/chunk-5WU37CUJ.js +630 -0
- package/Build/Workers/chunk-6EBDN5WS.js +97 -0
- package/Build/Workers/chunk-75HIWCEV.js +301 -0
- package/Build/Workers/chunk-77DBX23X.js +455 -0
- package/Build/Workers/chunk-7AMVPXZY.js +1992 -0
- package/Build/Workers/chunk-7BMDD6SM.js +124 -0
- package/Build/Workers/chunk-7GQOWCSN.js +959 -0
- package/Build/Workers/chunk-7J2ONMKC.js +198 -0
- package/Build/Workers/chunk-7MHUHXZZ.js +219 -0
- package/Build/Workers/chunk-7MQPHOAS.js +455 -0
- package/Build/Workers/chunk-7NJ5O7TP.js +387 -0
- package/Build/Workers/chunk-7OME2OKM.js +171 -0
- package/Build/Workers/chunk-7Y642MCO.js +352 -0
- package/Build/Workers/chunk-7ZFKBLUE.js +1054 -0
- package/Build/Workers/chunk-A2BROW3D.js +352 -0
- package/Build/Workers/chunk-A7LGY5XS.js +140 -0
- package/Build/Workers/chunk-AN2NVYL6.js +1483 -0
- package/Build/Workers/chunk-B4XOVZGA.js +476 -0
- package/Build/Workers/chunk-B7PT2VL5.js +630 -0
- package/Build/Workers/chunk-C6XQGBPV.js +476 -0
- package/Build/Workers/chunk-CAEC5DA2.js +57 -0
- package/Build/Workers/chunk-CBCOHH5O.js +837 -0
- package/Build/Workers/chunk-CDLPLYLV.js +1287 -0
- package/Build/Workers/chunk-CEKCKPFN.js +368 -0
- package/Build/Workers/chunk-CEMXKBQO.js +1800 -0
- package/Build/Workers/chunk-CHMDKP5L.js +2342 -0
- package/Build/Workers/chunk-CKW3STKA.js +1067 -0
- package/Build/Workers/chunk-CV5RICKT.js +1992 -0
- package/Build/Workers/chunk-CWGB3D4Z.js +257 -0
- package/Build/Workers/chunk-DBWSISJT.js +56 -0
- package/Build/Workers/chunk-DQEUGBGA.js +2719 -0
- package/Build/Workers/chunk-DSBSPPPJ.js +1344 -0
- package/Build/Workers/chunk-DSGLDRTI.js +278 -0
- package/Build/Workers/chunk-DUBE5G2H.js +497 -0
- package/Build/Workers/chunk-DXD7OPSP.js +1992 -0
- package/Build/Workers/chunk-DXECZBSA.js +368 -0
- package/Build/Workers/chunk-DZIRO6ZK.js +682 -0
- package/Build/Workers/chunk-E4CRPGX5.js +140 -0
- package/Build/Workers/chunk-E4IVMEBH.js +52 -0
- package/Build/Workers/chunk-E4PBNWWK.js +58 -0
- package/Build/Workers/chunk-E5MWOMVC.js +57 -0
- package/Build/Workers/chunk-ECN3VUMA.js +73 -0
- package/Build/Workers/chunk-ECSKVHUB.js +476 -0
- package/Build/Workers/chunk-EE3XBOQI.js +1483 -0
- package/Build/Workers/chunk-EHA2ZDPZ.js +415 -0
- package/Build/Workers/chunk-EKEKPAJF.js +454 -0
- package/Build/Workers/chunk-EL4B5CSQ.js +162 -0
- package/Build/Workers/chunk-EOHKUXPX.js +198 -0
- package/Build/Workers/chunk-ERENMHG2.js +754 -0
- package/Build/Workers/chunk-ESQGFRLZ.js +163 -0
- package/Build/Workers/chunk-FAYBQGKO.js +219 -0
- package/Build/Workers/chunk-FGCXPEZM.js +3201 -0
- package/Build/Workers/chunk-FHCRXPA6.js +44 -0
- package/Build/Workers/chunk-FQ42MT7M.js +58 -0
- package/Build/Workers/chunk-FQDYQG4P.js +1284 -0
- package/Build/Workers/chunk-FTCBY5HH.js +138 -0
- package/Build/Workers/chunk-FV4OWDV4.js +9230 -0
- package/Build/Workers/chunk-FYRNNQSL.js +280 -0
- package/Build/Workers/chunk-GI5RWJAY.js +101 -0
- package/Build/Workers/chunk-GNLMSDRO.js +945 -0
- package/Build/Workers/chunk-GVUJ6O3R.js +73 -0
- package/Build/Workers/chunk-HCGU7OCG.js +97 -0
- package/Build/Workers/chunk-HRIPVWSC.js +58 -0
- package/Build/Workers/chunk-IC3BR6SC.js +102 -0
- package/Build/Workers/chunk-IU3YAYPT.js +1344 -0
- package/Build/Workers/chunk-J7MZR7B2.js +1483 -0
- package/Build/Workers/chunk-JMF4ATAS.js +3794 -0
- package/Build/Workers/chunk-KEJKMITY.js +82 -0
- package/Build/Workers/chunk-KSIEJYNL.js +3822 -0
- package/Build/Workers/chunk-KT3GG7AW.js +754 -0
- package/Build/Workers/chunk-KW2QZDUS.js +147 -0
- package/Build/Workers/chunk-KYCEM22I.js +1800 -0
- package/Build/Workers/chunk-L6B5XPBL.js +73 -0
- package/Build/Workers/chunk-LGJXN2VP.js +352 -0
- package/Build/Workers/chunk-LJTQW46H.js +57 -0
- package/Build/Workers/chunk-LMQGYJME.js +672 -0
- package/Build/Workers/chunk-LOBYJQA4.js +76 -0
- package/Build/Workers/chunk-LOF32O7F.js +163 -0
- package/Build/Workers/chunk-LOTIJA7D.js +124 -0
- package/Build/Workers/chunk-LY2UG3HV.js +38 -0
- package/Build/Workers/chunk-M7Z3MPAX.js +973 -0
- package/Build/Workers/chunk-MHNLTQHO.js +3201 -0
- package/Build/Workers/chunk-ML7OMD72.js +2342 -0
- package/Build/Workers/chunk-NBTGXEMT.js +945 -0
- package/Build/Workers/chunk-NCPJBP24.js +140 -0
- package/Build/Workers/chunk-NFY5V6MR.js +102 -0
- package/Build/Workers/chunk-NQZC37F7.js +38 -0
- package/Build/Workers/chunk-O3X3D2Z3.js +352 -0
- package/Build/Workers/chunk-OBUIHPKF.js +352 -0
- package/Build/Workers/chunk-OYPSUED3.js +1067 -0
- package/Build/Workers/chunk-PAEWNYIV.js +138 -0
- package/Build/Workers/chunk-PANJ7YH6.js +102 -0
- package/Build/Workers/chunk-PCL3Y7H5.js +82 -0
- package/Build/Workers/chunk-PIIUGRQD.js +387 -0
- package/Build/Workers/chunk-POKD22OT.js +2719 -0
- package/Build/Workers/chunk-PQMA7MFS.js +9237 -0
- package/Build/Workers/chunk-PURIPUSY.js +682 -0
- package/Build/Workers/chunk-QIOOTLWN.js +56 -0
- package/Build/Workers/chunk-QQZPPXY4.js +3822 -0
- package/Build/Workers/chunk-QUPRALOD.js +101 -0
- package/Build/Workers/chunk-QXLQLGL2.js +1067 -0
- package/Build/Workers/chunk-RBEVHHXK.js +3201 -0
- package/Build/Workers/chunk-RC4YC3VU.js +278 -0
- package/Build/Workers/chunk-RGNNWVR6.js +171 -0
- package/Build/Workers/chunk-RHO5HV52.js +305 -0
- package/Build/Workers/chunk-SBBIEHYT.js +44 -0
- package/Build/Workers/chunk-SVCZUP5R.js +837 -0
- package/Build/Workers/chunk-SWVZTU6X.js +305 -0
- package/Build/Workers/chunk-T3EUPM5A.js +454 -0
- package/Build/Workers/chunk-TA6IU2XL.js +171 -0
- package/Build/Workers/chunk-TBHW5UME.js +973 -0
- package/Build/Workers/chunk-TLSGD5TR.js +280 -0
- package/Build/Workers/chunk-TOXDLWKZ.js +368 -0
- package/Build/Workers/chunk-TPOX6IOR.js +1054 -0
- package/Build/Workers/chunk-TZBM6TAB.js +124 -0
- package/Build/Workers/chunk-U2OY6MX6.js +398 -0
- package/Build/Workers/chunk-UCY4B5EV.js +288 -0
- package/Build/Workers/chunk-ULNBTI6R.js +138 -0
- package/Build/Workers/chunk-UMUS2AQQ.js +398 -0
- package/Build/Workers/chunk-UZ7GTP2L.js +162 -0
- package/Build/Workers/chunk-V52FEPCV.js +754 -0
- package/Build/Workers/chunk-VBEXZBG5.js +147 -0
- package/Build/Workers/chunk-VC76B6GM.js +959 -0
- package/Build/Workers/chunk-VCUOYHWC.js +519 -0
- package/Build/Workers/chunk-VJIL5H6K.js +2719 -0
- package/Build/Workers/chunk-VMF7KOGY.js +162 -0
- package/Build/Workers/chunk-W3C7OHXF.js +387 -0
- package/Build/Workers/chunk-W5OCKMPJ.js +101 -0
- package/Build/Workers/chunk-WB5GWYDP.js +455 -0
- package/Build/Workers/chunk-WN6MAL25.js +682 -0
- package/Build/Workers/chunk-WTR7KMQA.js +693 -0
- package/Build/Workers/chunk-WTTFMU3P.js +241 -0
- package/Build/Workers/chunk-WULONJZC.js +1800 -0
- package/Build/Workers/chunk-WZPMAVTV.js +511 -0
- package/Build/Workers/chunk-XHT5SVP4.js +52 -0
- package/Build/Workers/chunk-XITBARMZ.js +2342 -0
- package/Build/Workers/chunk-XLQZNQ4Z.js +163 -0
- package/Build/Workers/chunk-XZ6HDXKM.js +76 -0
- package/Build/Workers/chunk-Y7KVUJEB.js +219 -0
- package/Build/Workers/chunk-Y7NDFEQ3.js +398 -0
- package/Build/Workers/chunk-YBBQDYX2.js +301 -0
- package/Build/Workers/chunk-YHPYPVAB.js +837 -0
- package/Build/Workers/chunk-YNKK6BXY.js +454 -0
- package/Build/Workers/chunk-YRAJ74HR.js +305 -0
- package/Build/Workers/chunk-YULTZK5O.js +147 -0
- package/Build/Workers/chunk-YUNQYP3Z.js +9237 -0
- package/Build/Workers/chunk-Z6JV4DZG.js +1046 -0
- package/Build/Workers/chunk-Z7BONRW2.js +241 -0
- package/Build/Workers/chunk-ZK2R3DEJ.js +1054 -0
- package/Build/Workers/chunk-ZTK5EBUI.js +76 -0
- package/Build/Workers/chunk-ZZPDORJK.js +56 -0
- package/Build/Workers/combineGeometry.js +24 -24
- package/Build/Workers/createBoxGeometry.js +18 -18
- package/Build/Workers/createBoxOutlineGeometry.js +18 -18
- package/Build/Workers/createCircleGeometry.js +26 -26
- package/Build/Workers/createCircleOutlineGeometry.js +19 -19
- package/Build/Workers/createCoplanarPolygonGeometry.js +39 -39
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +33 -33
- package/Build/Workers/createCorridorGeometry.js +36 -37
- package/Build/Workers/createCorridorOutlineGeometry.js +34 -35
- package/Build/Workers/createCylinderGeometry.js +20 -20
- package/Build/Workers/createCylinderOutlineGeometry.js +20 -20
- package/Build/Workers/createEllipseGeometry.js +26 -26
- package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
- package/Build/Workers/createEllipsoidGeometry.js +19 -19
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
- package/Build/Workers/createFrustumGeometry.js +18 -18
- package/Build/Workers/createFrustumOutlineGeometry.js +20 -20
- package/Build/Workers/createGeometry.js +25 -24
- package/Build/Workers/createGroundPolylineGeometry.js +98 -34
- package/Build/Workers/createMvtTile.js +111 -19
- package/Build/Workers/createPlaneGeometry.js +18 -18
- package/Build/Workers/createPlaneOutlineGeometry.js +17 -17
- package/Build/Workers/createPolygonGeometry.js +36 -36
- package/Build/Workers/createPolygonOutlineGeometry.js +33 -33
- package/Build/Workers/createPolylineGeometry.js +28 -28
- package/Build/Workers/createPolylineVolumeGeometry.js +38 -36
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +32 -31
- package/Build/Workers/createRectangleGeometry.js +29 -29
- package/Build/Workers/createRectangleOutlineGeometry.js +23 -23
- package/Build/Workers/createSimplePolylineGeometry.js +26 -26
- package/Build/Workers/createSphereGeometry.js +19 -19
- package/Build/Workers/createSphereOutlineGeometry.js +18 -18
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -24
- package/Build/Workers/createVectorTilePoints.js +13 -13
- package/Build/Workers/createVectorTilePolygons.js +22 -22
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -26
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +23 -23
- package/Build/Workers/createVerticesFromHeightmap.js +23 -23
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +21 -21
- package/Build/Workers/createWallGeometry.js +26 -26
- package/Build/Workers/createWallOutlineGeometry.js +26 -26
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +993 -2334
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
- package/Build/Workers/transcodeKTX2.js +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +23 -23
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -26
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +1 -5
- package/Source/Core/BoundingRectangle.js +6 -8
- package/Source/Core/BoundingSphere.js +0 -3
- package/Source/Core/Cartesian2.js +1 -1
- package/Source/Core/Cartesian3.js +1 -1
- package/Source/Core/Cartesian4.js +1 -1
- package/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js +3 -4
- package/Source/Core/Color.js +1 -0
- package/Source/Core/ComponentDatatype.js +35 -0
- package/Source/Core/CoplanarPolygonGeometry.js +2 -2
- package/Source/Core/CorridorGeometry.js +2 -4
- package/Source/Core/CorridorOutlineGeometry.js +1 -3
- package/Source/Core/EarthOrientationParameters.js +2 -2
- package/Source/Core/EllipseGeometryLibrary.js +2 -2
- package/Source/Core/EllipsoidGeodesic.js +3 -3
- package/Source/Core/EllipsoidRhumbLine.js +1 -1
- package/Source/Core/GroundPolylineGeometry.js +99 -4
- package/Source/Core/Heap.js +1 -1
- package/Source/Core/HermitePolynomialApproximation.js +215 -179
- package/Source/Core/InterpolationAlgorithm.js +58 -50
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/JulianDate.js +1 -1
- package/Source/Core/LagrangePolynomialApproximation.js +55 -52
- package/Source/Core/LinearApproximation.js +69 -66
- package/Source/Core/MapProjection.js +1 -0
- package/Source/Core/Math.js +59 -0
- package/Source/Core/Matrix2.js +3 -3
- package/Source/Core/Matrix3.js +3 -3
- package/Source/Core/Matrix4.js +1 -1
- package/Source/Core/OrthographicFrustum.js +1 -1
- package/Source/Core/PerspectiveFrustum.js +1 -1
- package/Source/Core/PolygonGeometry.js +2 -2
- package/Source/Core/PolygonGeometryLibrary.js +1 -1
- package/Source/Core/PolygonOutlineGeometry.js +1 -1
- package/Source/Core/PolylineGeometry.js +1 -1
- package/Source/Core/PolylinePipeline.js +9 -2
- package/Source/Core/PolylineVolumeGeometryLibrary.js +1 -1
- package/Source/Core/Rectangle.js +7 -1
- package/Source/Core/RectangleOutlineGeometry.js +1 -1
- package/Source/Core/Resource.js +1 -1
- package/Source/Core/ScreenSpaceEventHandler.js +51 -41
- package/Source/Core/SimplePolylineGeometry.js +1 -1
- package/Source/Core/TerrainEncoding.js +2 -2
- package/Source/Core/TerrainMesh.js +3 -3
- package/Source/Core/TerrainPicker.js +180 -168
- package/Source/Core/TimeIntervalCollection.js +1 -3
- package/Source/Core/Tipsify.js +1 -1
- package/Source/Core/Transforms.js +5 -1
- package/Source/Core/VectorPipeline.js +1117 -0
- package/Source/Core/VectorProvider.js +429 -0
- package/Source/Core/WallOutlineGeometry.js +1 -1
- package/Source/Core/createColorRamp.js +37 -0
- package/Source/Core/getTimestamp.js +4 -2
- package/Source/Core/globalTypes.js +25 -0
- package/Source/Core/writeTextToCanvas.js +1 -0
- package/Source/DataSources/CompositeEntityCollection.js +0 -1
- package/Source/DataSources/CzmlDataSource.js +14 -0
- package/Source/DataSources/DataSourceDisplay.js +1 -1
- package/Source/DataSources/GeoJsonDataSource.js +0 -1
- package/Source/DataSources/GeometryVisualizer.js +1 -1
- package/Source/DataSources/KmlDataSource.js +529 -557
- package/Source/DataSources/PathGraphics.js +8 -1
- package/Source/DataSources/PathMode.js +27 -0
- package/Source/DataSources/PathVisualizer.js +298 -1
- package/Source/DataSources/PolylineGeometryUpdater.js +125 -7
- package/Source/DataSources/PolylineVisualizer.js +1 -1
- package/Source/DataSources/StaticOutlineGeometryBatch.js +1 -1
- package/Source/Renderer/AutomaticUniforms.js +23 -0
- package/Source/Renderer/Context.js +9 -3
- package/Source/Renderer/DrawCommand.js +22 -0
- package/Source/Renderer/Framebuffer.js +4 -0
- package/Source/Renderer/Pass.js +11 -9
- package/Source/Renderer/Texture.js +12 -1
- package/Source/Renderer/UniformState.js +7 -0
- package/Source/Renderer/VertexArray.js +1 -1
- package/Source/Renderer/createUniform.js +346 -239
- package/Source/Renderer/createUniformArray.js +494 -381
- package/Source/Scene/ArcGisMapServerImageryProvider.js +0 -5
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +2 -1
- package/Source/Scene/BillboardCollection.js +15 -5
- package/Source/Scene/BillboardTexture.js +5 -3
- package/Source/Scene/BufferPointCollection.js +11 -1
- package/Source/Scene/BufferPolygonCollection.js +26 -0
- package/Source/Scene/BufferPolylineCollection.js +2 -0
- package/Source/Scene/BufferPrimitiveCollection.js +105 -32
- package/Source/Scene/Camera.js +137 -8
- package/Source/Scene/CameraEventAggregator.js +30 -18
- package/Source/Scene/CameraFlightPath.js +17 -0
- package/Source/Scene/Cesium3DTile.js +102 -4
- package/Source/Scene/Cesium3DTileContent.js +195 -254
- package/Source/Scene/Cesium3DTileContentFactory.js +10 -2
- package/Source/Scene/Cesium3DTileOptimizations.js +4 -6
- package/Source/Scene/Cesium3DTileStyle.js +40 -0
- package/Source/Scene/Cesium3DTileset.js +213 -8
- package/Source/Scene/Cesium3DTilesetTraversal.js +14 -0
- package/Source/Scene/ClippingPlaneCollection.js +4 -4
- package/Source/Scene/ClippingPolygon.js +2 -0
- package/Source/Scene/ClippingPolygonCollection.js +2 -2
- package/Source/Scene/ColumbusWorlds.js +190 -0
- package/Source/Scene/Composite3DTileContent.js +254 -292
- package/Source/Scene/Controllers/Controller.js +63 -0
- package/Source/Scene/Controllers/ControllerHost.js +78 -0
- package/Source/Scene/Controllers/HybridScreenSpacePanCameraController.js +106 -0
- package/Source/Scene/Controllers/MouseButton.js +32 -0
- package/Source/Scene/Controllers/ScreenSpaceElevatorCameraController.js +295 -0
- package/Source/Scene/Controllers/ScreenSpaceInputBindings.js +154 -0
- package/Source/Scene/Controllers/ScreenSpaceMapCameraController.js +310 -0
- package/Source/Scene/Controllers/ScreenSpaceTiltOrbitCameraController.js +642 -0
- package/Source/Scene/Controllers/ScreenSpaceZoomCameraController.js +431 -0
- package/Source/Scene/Controllers/defaultPickWorldPosition.js +84 -0
- package/Source/Scene/DerivedCommand.js +98 -0
- package/Source/Scene/EdgeDisplayMode.js +50 -0
- package/Source/Scene/EdgeFramebuffer.js +1 -5
- package/Source/Scene/Empty3DTileContent.js +100 -132
- package/Source/Scene/Expression.js +6 -8
- package/Source/Scene/FrameState.js +27 -0
- package/Source/Scene/GaussianSplat3DTileContent.js +436 -478
- package/Source/Scene/GeoJsonPrimitive.js +874 -0
- package/Source/Scene/Geometry3DTileContent.js +151 -185
- package/Source/Scene/Globe.js +110 -22
- package/Source/Scene/GlobeDepth.js +243 -6
- package/Source/Scene/GlobeSurfaceShaderSet.js +637 -540
- package/Source/Scene/GlobeSurfaceTile.js +575 -398
- package/Source/Scene/GlobeSurfaceTileProvider.js +2289 -1842
- package/Source/Scene/GltfBufferViewLoader.js +3 -3
- package/Source/Scene/GltfLoader.js +146 -3
- package/Source/Scene/GltfLoaderUtil.js +20 -4
- package/Source/Scene/GltfPipeline/forEachTextureInMaterial.js +10 -0
- package/Source/Scene/GltfPipeline/removeUnusedElements.js +21 -11
- package/Source/Scene/GltfSpzLoader.js +1 -1
- package/Source/Scene/GltfVertexBufferLoader.js +6 -3
- package/Source/Scene/GroundPolylinePrimitive.js +2 -1
- package/Source/Scene/I3SDataProvider.js +1 -1
- package/Source/Scene/I3SLayer.js +1 -1
- package/Source/Scene/I3SNode.js +2 -2
- package/Source/Scene/ImageryLayer.js +2 -2
- package/Source/Scene/ImageryLayerCollection.js +190 -6
- package/Source/Scene/Implicit3DTileContent.js +192 -216
- package/Source/Scene/ImplicitTileCoordinates.js +17 -0
- package/Source/Scene/IonImageryProvider.js +1 -5
- package/Source/Scene/Label.js +4 -4
- package/Source/Scene/LabelCollection.js +4 -1
- package/Source/Scene/MVTDataProvider.js +555 -0
- package/Source/Scene/Material.js +1 -0
- package/Source/Scene/Model/B3dmLoader.js +1 -2
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +82 -312
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLoader.js +4 -0
- package/Source/Scene/Model/I3dmLoader.js +1 -1
- package/Source/Scene/Model/InstancingPipelineStage.js +4 -7
- package/Source/Scene/Model/MaterialPipelineStage.js +124 -1
- package/Source/Scene/Model/Model.js +45 -10
- package/Source/Scene/Model/Model3DTileContent.js +424 -458
- package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +28 -1
- package/Source/Scene/Model/ModelDrawCommand.js +180 -8
- package/Source/Scene/Model/ModelDrawCommands.js +4 -0
- package/Source/Scene/Model/ModelSceneGraph.js +21 -0
- package/Source/Scene/Model/ModelUtility.js +5 -0
- package/Source/Scene/Model/PickingPipelineStage.js +29 -0
- package/Source/Scene/Model/PrimitiveRenderResources.js +24 -0
- package/Source/Scene/Model/createVectorTileBuffersFromModelComponents.js +645 -153
- package/Source/Scene/ModelComponents.js +112 -0
- package/Source/Scene/Multiple3DTileContent.js +291 -334
- package/Source/Scene/MvtLabelCandidates.js +295 -0
- package/Source/Scene/MvtLabelManager.js +1069 -0
- package/Source/Scene/Picking.js +19 -3
- package/Source/Scene/PlanarFillIdFramebuffer.js +172 -0
- package/Source/Scene/PntsParser.js +1 -1
- package/Source/Scene/Polyline.js +32 -5
- package/Source/Scene/PolylineCollection.js +39 -0
- package/Source/Scene/PostProcessStage.js +4 -2
- package/Source/Scene/Primitive.js +12 -13
- package/Source/Scene/PrimitivePipeline.js +158 -28
- package/Source/Scene/QuadtreePrimitive.js +3 -2
- package/Source/Scene/ResourceCache.js +7 -4
- package/Source/Scene/ResourceCacheKey.js +21 -18
- package/Source/Scene/Scene.js +655 -6
- package/Source/Scene/SceneTransforms.js +18 -0
- package/Source/Scene/ScreenSpaceCameraController.js +12 -3
- package/Source/Scene/ShadowMap.js +9 -3
- package/Source/Scene/ShadowMapShader.js +50 -2
- package/Source/Scene/SnapFramebuffer.js +121 -0
- package/Source/Scene/Snapping.js +184 -0
- package/Source/Scene/TerrainFillMesh.js +3 -2
- package/Source/Scene/Tileset3DTileContent.js +113 -146
- package/Source/Scene/UrlTemplate3DTilesDataProvider.js +543 -0
- package/Source/Scene/Vector3DTileContent.js +207 -237
- package/Source/Scene/VectorGltf3DTileContent.js +185 -45
- package/Source/Scene/View.js +10 -8
- package/Source/Scene/VoxelPrimitive.js +159 -175
- package/Source/Scene/VoxelProvider.js +64 -91
- package/Source/Scene/VoxelTraversal.js +1 -1
- package/Source/Scene/buildVectorGltfFromMVT.js +1208 -0
- package/Source/Scene/buildVoxelCustomShader.js +199 -0
- package/Source/Scene/createElevationBandMaterial.js +1 -1
- package/Source/Scene/decodeMVT.js +877 -0
- package/Source/Scene/findMeshoptExtension.js +23 -0
- package/Source/Scene/renderBufferPointCollection.js +114 -64
- package/Source/Scene/renderBufferPolygonCollection.js +245 -53
- package/Source/Scene/renderBufferPolylineCollection.js +271 -145
- package/Source/Shaders/BillboardCollectionVS.glsl +23 -25
- package/Source/Shaders/BillboardCollectionVS.js +23 -25
- package/Source/Shaders/BufferPointMaterialFS.glsl +1 -0
- package/Source/Shaders/BufferPointMaterialFS.js +1 -0
- package/Source/Shaders/BufferPointMaterialVS.glsl +19 -9
- package/Source/Shaders/BufferPointMaterialVS.js +20 -10
- package/Source/Shaders/BufferPolygonMaterialFS.glsl +13 -0
- package/Source/Shaders/BufferPolygonMaterialFS.js +13 -0
- package/Source/Shaders/BufferPolygonMaterialVS.glsl +22 -4
- package/Source/Shaders/BufferPolygonMaterialVS.js +23 -5
- package/Source/Shaders/BufferPolylineMaterialVS.glsl +16 -2
- package/Source/Shaders/BufferPolylineMaterialVS.js +17 -3
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdgesDirect.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdgesDirect.js +11 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTilePlanarFillId.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTilePlanarFillId.js +11 -0
- package/Source/Shaders/Builtin/Constants/passClassification.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOpaque.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passOpaque.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.js +1 -1
- package/Source/Shaders/Builtin/CzmBuiltins.js +4 -0
- package/Source/Shaders/GlobeFS.glsl +10 -6
- package/Source/Shaders/GlobeFS.js +10 -6
- package/Source/Shaders/Materials/PolylineGlowMaterial.glsl +1 -1
- package/Source/Shaders/Materials/PolylineGlowMaterial.js +1 -1
- package/Source/Shaders/Model/EdgeVisibilityStageVS.glsl +0 -1
- package/Source/Shaders/Model/EdgeVisibilityStageVS.js +0 -1
- package/Source/Shaders/Model/MaterialStageFS.glsl +8 -2
- package/Source/Shaders/Model/MaterialStageFS.js +8 -2
- package/Source/Shaders/Model/ModelFS.glsl +105 -0
- package/Source/Shaders/Model/ModelFS.js +105 -0
- package/Source/Shaders/PolylineShadowVolumeFS.glsl +14 -0
- package/Source/Shaders/PolylineShadowVolumeFS.js +14 -0
- package/Source/Shaders/RestoreDepth.glsl +8 -0
- package/Source/Shaders/RestoreDepth.js +10 -0
- package/Source/Shaders/VectorCommon.glsl +178 -0
- package/Source/Shaders/VectorCommon.js +180 -0
- package/Source/ThirdParty/zip-module.wasm +0 -0
- package/Source/Widget/CesiumWidget.js +30 -0
- package/Source/Workers/createMvtTile.js +39 -0
- package/Source/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/Source/Workers/incrementallyBuildTerrainPicker.js +2 -0
- package/index.d.ts +535 -1393
- package/index.js +125 -93
- package/package.json +13 -13
|
@@ -13,147 +13,172 @@ import Vector3DTileGeometry from "./Vector3DTileGeometry.js";
|
|
|
13
13
|
* Implements the {@link Cesium3DTileContent} interface.
|
|
14
14
|
* </p>
|
|
15
15
|
*
|
|
16
|
-
* @
|
|
17
|
-
* @constructor
|
|
18
|
-
*
|
|
16
|
+
* @implements Cesium3DTileContent
|
|
19
17
|
* @private
|
|
20
18
|
*/
|
|
21
|
-
|
|
22
|
-
tileset,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
) {
|
|
28
|
-
this._tileset = tileset;
|
|
29
|
-
this._tile = tile;
|
|
30
|
-
this._resource = resource;
|
|
31
|
-
this._geometries = undefined;
|
|
32
|
-
|
|
33
|
-
this._metadata = undefined;
|
|
34
|
-
|
|
35
|
-
this._batchTable = undefined;
|
|
36
|
-
this._features = undefined;
|
|
19
|
+
class Geometry3DTileContent {
|
|
20
|
+
constructor(tileset, tile, resource, arrayBuffer, byteOffset) {
|
|
21
|
+
this._tileset = tileset;
|
|
22
|
+
this._tile = tile;
|
|
23
|
+
this._resource = resource;
|
|
24
|
+
this._geometries = undefined;
|
|
37
25
|
|
|
38
|
-
|
|
39
|
-
* Part of the {@link Cesium3DTileContent} interface.
|
|
40
|
-
*/
|
|
41
|
-
this.featurePropertiesDirty = false;
|
|
42
|
-
this._group = undefined;
|
|
26
|
+
this._metadata = undefined;
|
|
43
27
|
|
|
44
|
-
|
|
28
|
+
this._batchTable = undefined;
|
|
29
|
+
this._features = undefined;
|
|
45
30
|
|
|
46
|
-
|
|
47
|
-
}
|
|
31
|
+
/**
|
|
32
|
+
* Part of the {@link Cesium3DTileContent} interface.
|
|
33
|
+
*/
|
|
34
|
+
this.featurePropertiesDirty = false;
|
|
35
|
+
this._group = undefined;
|
|
48
36
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
trianglesLength
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
? this._batchTable.batchTableByteLength
|
|
90
|
-
: 0;
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
innerContents: {
|
|
95
|
-
get: function () {
|
|
96
|
-
return undefined;
|
|
97
|
-
},
|
|
98
|
-
},
|
|
37
|
+
this._ready = false;
|
|
38
|
+
|
|
39
|
+
initialize(this, arrayBuffer, byteOffset);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
get featuresLength() {
|
|
43
|
+
return defined(this._batchTable) ? this._batchTable.featuresLength : 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
get pointsLength() {
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
get trianglesLength() {
|
|
51
|
+
if (defined(this._geometries)) {
|
|
52
|
+
return this._geometries.trianglesLength;
|
|
53
|
+
}
|
|
54
|
+
return 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
get geometryByteLength() {
|
|
58
|
+
if (defined(this._geometries)) {
|
|
59
|
+
return this._geometries.geometryByteLength;
|
|
60
|
+
}
|
|
61
|
+
return 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
get texturesByteLength() {
|
|
65
|
+
return 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
get batchTableByteLength() {
|
|
69
|
+
return defined(this._batchTable)
|
|
70
|
+
? this._batchTable.batchTableByteLength
|
|
71
|
+
: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
get innerContents() {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
99
77
|
|
|
100
78
|
/**
|
|
101
79
|
* Returns true when the tile's content is ready to render; otherwise false
|
|
102
80
|
*
|
|
103
|
-
* @memberof Geometry3DTileContent.prototype
|
|
104
81
|
*
|
|
105
82
|
* @type {boolean}
|
|
106
83
|
* @readonly
|
|
107
84
|
* @private
|
|
108
85
|
*/
|
|
109
|
-
ready
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
})
|
|
86
|
+
get ready() {
|
|
87
|
+
return this._ready;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
get tileset() {
|
|
91
|
+
return this._tileset;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
get tile() {
|
|
95
|
+
return this._tile;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
get url() {
|
|
99
|
+
return this._resource.getUrlComponent(true);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
get metadata() {
|
|
103
|
+
return this._metadata;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
set metadata(value) {
|
|
107
|
+
this._metadata = value;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
get batchTable() {
|
|
111
|
+
return this._batchTable;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
get group() {
|
|
115
|
+
return this._group;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
set group(value) {
|
|
119
|
+
this._group = value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
hasProperty(batchId, name) {
|
|
123
|
+
return this._batchTable.hasProperty(batchId, name);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
getFeature(batchId) {
|
|
127
|
+
//>>includeStart('debug', pragmas.debug);
|
|
128
|
+
const featuresLength = this.featuresLength;
|
|
129
|
+
if (!defined(batchId) || batchId < 0 || batchId >= featuresLength) {
|
|
130
|
+
throw new DeveloperError(
|
|
131
|
+
`batchId is required and between zero and featuresLength - 1 (${
|
|
132
|
+
featuresLength - 1
|
|
133
|
+
}).`,
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
//>>includeEnd('debug');
|
|
137
|
+
|
|
138
|
+
createFeatures(this);
|
|
139
|
+
return this._features[batchId];
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
applyDebugSettings(enabled, color) {
|
|
143
|
+
if (defined(this._geometries)) {
|
|
144
|
+
this._geometries.applyDebugSettings(enabled, color);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
applyStyle(style) {
|
|
149
|
+
createFeatures(this);
|
|
150
|
+
if (defined(this._geometries)) {
|
|
151
|
+
this._geometries.applyStyle(style, this._features);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
update(tileset, frameState) {
|
|
156
|
+
if (defined(this._geometries)) {
|
|
157
|
+
this._geometries.classificationType = this._tileset.classificationType;
|
|
158
|
+
this._geometries.debugWireframe = this._tileset.debugWireframe;
|
|
159
|
+
this._geometries.update(frameState);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if (defined(this._batchTable) && this._geometries.ready) {
|
|
163
|
+
this._batchTable.update(tileset, frameState);
|
|
164
|
+
this._ready = true;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
pick(ray, frameState, result) {
|
|
169
|
+
return undefined;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
isDestroyed() {
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
destroy() {
|
|
177
|
+
this._geometries = this._geometries && this._geometries.destroy();
|
|
178
|
+
this._batchTable = this._batchTable && this._batchTable.destroy();
|
|
179
|
+
return destroyObject(this);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
157
182
|
|
|
158
183
|
function createColorChangedCallback(content) {
|
|
159
184
|
return function (batchId, color) {
|
|
@@ -472,63 +497,4 @@ function createFeatures(content) {
|
|
|
472
497
|
}
|
|
473
498
|
}
|
|
474
499
|
|
|
475
|
-
Geometry3DTileContent.prototype.hasProperty = function (batchId, name) {
|
|
476
|
-
return this._batchTable.hasProperty(batchId, name);
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
Geometry3DTileContent.prototype.getFeature = function (batchId) {
|
|
480
|
-
//>>includeStart('debug', pragmas.debug);
|
|
481
|
-
const featuresLength = this.featuresLength;
|
|
482
|
-
if (!defined(batchId) || batchId < 0 || batchId >= featuresLength) {
|
|
483
|
-
throw new DeveloperError(
|
|
484
|
-
`batchId is required and between zero and featuresLength - 1 (${
|
|
485
|
-
featuresLength - 1
|
|
486
|
-
}).`,
|
|
487
|
-
);
|
|
488
|
-
}
|
|
489
|
-
//>>includeEnd('debug');
|
|
490
|
-
|
|
491
|
-
createFeatures(this);
|
|
492
|
-
return this._features[batchId];
|
|
493
|
-
};
|
|
494
|
-
|
|
495
|
-
Geometry3DTileContent.prototype.applyDebugSettings = function (enabled, color) {
|
|
496
|
-
if (defined(this._geometries)) {
|
|
497
|
-
this._geometries.applyDebugSettings(enabled, color);
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
|
|
501
|
-
Geometry3DTileContent.prototype.applyStyle = function (style) {
|
|
502
|
-
createFeatures(this);
|
|
503
|
-
if (defined(this._geometries)) {
|
|
504
|
-
this._geometries.applyStyle(style, this._features);
|
|
505
|
-
}
|
|
506
|
-
};
|
|
507
|
-
|
|
508
|
-
Geometry3DTileContent.prototype.update = function (tileset, frameState) {
|
|
509
|
-
if (defined(this._geometries)) {
|
|
510
|
-
this._geometries.classificationType = this._tileset.classificationType;
|
|
511
|
-
this._geometries.debugWireframe = this._tileset.debugWireframe;
|
|
512
|
-
this._geometries.update(frameState);
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
if (defined(this._batchTable) && this._geometries.ready) {
|
|
516
|
-
this._batchTable.update(tileset, frameState);
|
|
517
|
-
this._ready = true;
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
|
|
521
|
-
Geometry3DTileContent.prototype.pick = function (ray, frameState, result) {
|
|
522
|
-
return undefined;
|
|
523
|
-
};
|
|
524
|
-
|
|
525
|
-
Geometry3DTileContent.prototype.isDestroyed = function () {
|
|
526
|
-
return false;
|
|
527
|
-
};
|
|
528
|
-
|
|
529
|
-
Geometry3DTileContent.prototype.destroy = function () {
|
|
530
|
-
this._geometries = this._geometries && this._geometries.destroy();
|
|
531
|
-
this._batchTable = this._batchTable && this._batchTable.destroy();
|
|
532
|
-
return destroyObject(this);
|
|
533
|
-
};
|
|
534
500
|
export default Geometry3DTileContent;
|
package/Source/Scene/Globe.js
CHANGED
|
@@ -20,6 +20,7 @@ import GlobeFS from "../Shaders/GlobeFS.js";
|
|
|
20
20
|
import GlobeVS from "../Shaders/GlobeVS.js";
|
|
21
21
|
import AtmosphereCommon from "../Shaders/AtmosphereCommon.js";
|
|
22
22
|
import GroundAtmosphere from "../Shaders/GroundAtmosphere.js";
|
|
23
|
+
import ColumbusWorlds from "./ColumbusWorlds.js";
|
|
23
24
|
import GlobeSurfaceShaderSet from "./GlobeSurfaceShaderSet.js";
|
|
24
25
|
import GlobeSurfaceTileProvider from "./GlobeSurfaceTileProvider.js";
|
|
25
26
|
import GlobeTranslucency from "./GlobeTranslucency.js";
|
|
@@ -28,6 +29,7 @@ import QuadtreePrimitive from "./QuadtreePrimitive.js";
|
|
|
28
29
|
import SceneMode from "./SceneMode.js";
|
|
29
30
|
import ShadowMode from "./ShadowMode.js";
|
|
30
31
|
import CesiumMath from "../Core/Math.js";
|
|
32
|
+
import VectorProvider from "../Core/VectorProvider.js";
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
35
|
* The globe rendered in the scene, including its terrain ({@link Globe#terrainProvider})
|
|
@@ -45,6 +47,9 @@ function Globe(ellipsoid) {
|
|
|
45
47
|
ellipsoid: ellipsoid,
|
|
46
48
|
});
|
|
47
49
|
const imageryLayerCollection = new ImageryLayerCollection();
|
|
50
|
+
const vectorProvider = new VectorProvider({
|
|
51
|
+
tilingScheme: terrainProvider.tilingScheme,
|
|
52
|
+
});
|
|
48
53
|
|
|
49
54
|
this._ellipsoid = ellipsoid;
|
|
50
55
|
this._imageryLayerCollection = imageryLayerCollection;
|
|
@@ -57,12 +62,15 @@ function Globe(ellipsoid) {
|
|
|
57
62
|
terrainProvider: terrainProvider,
|
|
58
63
|
imageryLayers: imageryLayerCollection,
|
|
59
64
|
surfaceShaderSet: this._surfaceShaderSet,
|
|
65
|
+
vectorProvider,
|
|
60
66
|
}),
|
|
61
67
|
});
|
|
62
68
|
|
|
63
69
|
this._terrainProvider = terrainProvider;
|
|
64
70
|
this._terrainProviderChanged = new Event();
|
|
65
71
|
|
|
72
|
+
this._vectorProvider = vectorProvider;
|
|
73
|
+
|
|
66
74
|
this._undergroundColor = Color.clone(Color.BLACK);
|
|
67
75
|
this._undergroundColorAlphaByDistance = new NearFarScalar(
|
|
68
76
|
ellipsoid.maximumRadius / 1000.0,
|
|
@@ -569,6 +577,9 @@ Object.defineProperties(Globe.prototype, {
|
|
|
569
577
|
set: function (value) {
|
|
570
578
|
if (value !== this._terrainProvider) {
|
|
571
579
|
this._terrainProvider = value;
|
|
580
|
+
if (defined(value)) {
|
|
581
|
+
this._vectorProvider.tilingScheme = value.tilingScheme;
|
|
582
|
+
}
|
|
572
583
|
this._terrainProviderChanged.raiseEvent(value);
|
|
573
584
|
if (defined(this._material)) {
|
|
574
585
|
makeShadersDirty(this);
|
|
@@ -588,6 +599,16 @@ Object.defineProperties(Globe.prototype, {
|
|
|
588
599
|
return this._terrainProviderChanged;
|
|
589
600
|
},
|
|
590
601
|
},
|
|
602
|
+
/**
|
|
603
|
+
* @memberof Globe.prototype
|
|
604
|
+
* @type {VectorProvider}
|
|
605
|
+
* @ignore
|
|
606
|
+
*/
|
|
607
|
+
vectorProvider: {
|
|
608
|
+
get: function () {
|
|
609
|
+
return this._vectorProvider;
|
|
610
|
+
},
|
|
611
|
+
},
|
|
591
612
|
/**
|
|
592
613
|
* Gets an event that's raised when the length of the tile load queue has changed since the last render frame. When the load queue is empty,
|
|
593
614
|
* all terrain and imagery for the current view have been loaded. The event passes the new length of the tile load queue.
|
|
@@ -724,24 +745,28 @@ function makeShadersDirty(globe) {
|
|
|
724
745
|
|
|
725
746
|
function createComparePickTileFunction(rayOrigin) {
|
|
726
747
|
return function (a, b) {
|
|
727
|
-
const aDist = BoundingSphere.distanceSquaredTo(
|
|
728
|
-
|
|
729
|
-
rayOrigin,
|
|
730
|
-
);
|
|
731
|
-
const bDist = BoundingSphere.distanceSquaredTo(
|
|
732
|
-
b.pickBoundingSphere,
|
|
733
|
-
rayOrigin,
|
|
734
|
-
);
|
|
748
|
+
const aDist = BoundingSphere.distanceSquaredTo(a.sphere, rayOrigin);
|
|
749
|
+
const bDist = BoundingSphere.distanceSquaredTo(b.sphere, rayOrigin);
|
|
735
750
|
|
|
736
751
|
return aDist - bDist;
|
|
737
752
|
};
|
|
738
753
|
}
|
|
739
754
|
|
|
755
|
+
// Columbus repeat worlds: how many translated world copies to test on either
|
|
756
|
+
// side of the pick ray's own world when repeat worlds are enabled.
|
|
757
|
+
const GLOBE_COLUMBUS_MAX_EXTRA_WORLDS = 2;
|
|
758
|
+
|
|
759
|
+
function getGlobeColumbusWorldWidth(projection) {
|
|
760
|
+
return ColumbusWorlds.getWorldWidth(projection);
|
|
761
|
+
}
|
|
762
|
+
|
|
740
763
|
const scratchArray = [];
|
|
741
764
|
const scratchSphereIntersectionResult = {
|
|
742
765
|
start: 0.0,
|
|
743
766
|
stop: 0.0,
|
|
744
767
|
};
|
|
768
|
+
const scratchPickOffsetSphere = new BoundingSphere();
|
|
769
|
+
const scratchColumbusPickRay = new Ray();
|
|
745
770
|
|
|
746
771
|
/**
|
|
747
772
|
* Find an intersection between a ray and the globe surface that was rendered. The ray must be given in world coordinates.
|
|
@@ -774,6 +799,13 @@ Globe.prototype.pickWorldCoordinates = function (
|
|
|
774
799
|
const mode = scene.mode;
|
|
775
800
|
const projection = scene.mapProjection;
|
|
776
801
|
|
|
802
|
+
const repeatWorlds =
|
|
803
|
+
scene.columbusRepeatWorlds === true &&
|
|
804
|
+
(mode === SceneMode.SCENE2D || mode === SceneMode.COLUMBUS_VIEW);
|
|
805
|
+
const worldWidth = repeatWorlds
|
|
806
|
+
? getGlobeColumbusWorldWidth(projection)
|
|
807
|
+
: 0.0;
|
|
808
|
+
|
|
777
809
|
const sphereIntersections = scratchArray;
|
|
778
810
|
sphereIntersections.length = 0;
|
|
779
811
|
|
|
@@ -810,13 +842,48 @@ Globe.prototype.pickWorldCoordinates = function (
|
|
|
810
842
|
continue;
|
|
811
843
|
}
|
|
812
844
|
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
845
|
+
if (!repeatWorlds) {
|
|
846
|
+
const boundingSphereIntersection = IntersectionTests.raySphere(
|
|
847
|
+
ray,
|
|
848
|
+
boundingVolume,
|
|
849
|
+
scratchSphereIntersectionResult,
|
|
850
|
+
);
|
|
851
|
+
if (defined(boundingSphereIntersection)) {
|
|
852
|
+
sphereIntersections.push({
|
|
853
|
+
surfaceTile,
|
|
854
|
+
sphere: boundingVolume,
|
|
855
|
+
offset: 0.0,
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
continue;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
// Columbus repeat worlds: a translated copy of this tile may be hit even
|
|
862
|
+
// when the primary sphere is not. Test the copies around the ray's own
|
|
863
|
+
// world so points beyond the ±180° meridian pick correctly.
|
|
864
|
+
const rayWorld = Math.round(ray.origin.y / worldWidth);
|
|
865
|
+
for (
|
|
866
|
+
let w = rayWorld - GLOBE_COLUMBUS_MAX_EXTRA_WORLDS;
|
|
867
|
+
w <= rayWorld + GLOBE_COLUMBUS_MAX_EXTRA_WORLDS;
|
|
868
|
+
++w
|
|
869
|
+
) {
|
|
870
|
+
const offset = w * worldWidth;
|
|
871
|
+
const offsetSphere = scratchPickOffsetSphere;
|
|
872
|
+
Cartesian3.clone(boundingVolume.center, offsetSphere.center);
|
|
873
|
+
offsetSphere.center.y += offset;
|
|
874
|
+
offsetSphere.radius = boundingVolume.radius;
|
|
875
|
+
const boundingSphereIntersection = IntersectionTests.raySphere(
|
|
876
|
+
ray,
|
|
877
|
+
offsetSphere,
|
|
878
|
+
scratchSphereIntersectionResult,
|
|
879
|
+
);
|
|
880
|
+
if (defined(boundingSphereIntersection)) {
|
|
881
|
+
sphereIntersections.push({
|
|
882
|
+
surfaceTile,
|
|
883
|
+
sphere: BoundingSphere.clone(offsetSphere, new BoundingSphere()),
|
|
884
|
+
offset,
|
|
885
|
+
});
|
|
886
|
+
}
|
|
820
887
|
}
|
|
821
888
|
}
|
|
822
889
|
|
|
@@ -825,13 +892,34 @@ Globe.prototype.pickWorldCoordinates = function (
|
|
|
825
892
|
let intersection;
|
|
826
893
|
const length = sphereIntersections.length;
|
|
827
894
|
for (let i = 0; i < length; ++i) {
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
895
|
+
const candidate = sphereIntersections[i];
|
|
896
|
+
const offset = candidate.offset;
|
|
897
|
+
if (offset === 0.0) {
|
|
898
|
+
intersection = candidate.surfaceTile.pick(
|
|
899
|
+
ray,
|
|
900
|
+
scene.mode,
|
|
901
|
+
scene.mapProjection,
|
|
902
|
+
cullBackFaces,
|
|
903
|
+
result,
|
|
904
|
+
);
|
|
905
|
+
} else {
|
|
906
|
+
// Pick against the copy by shifting the ray into the primary world,
|
|
907
|
+
// then shifting the hit point back onto the copy.
|
|
908
|
+
const pickRay = scratchColumbusPickRay;
|
|
909
|
+
Cartesian3.clone(ray.origin, pickRay.origin);
|
|
910
|
+
pickRay.origin.y -= offset;
|
|
911
|
+
Cartesian3.clone(ray.direction, pickRay.direction);
|
|
912
|
+
intersection = candidate.surfaceTile.pick(
|
|
913
|
+
pickRay,
|
|
914
|
+
scene.mode,
|
|
915
|
+
scene.mapProjection,
|
|
916
|
+
cullBackFaces,
|
|
917
|
+
result,
|
|
918
|
+
);
|
|
919
|
+
if (defined(intersection)) {
|
|
920
|
+
intersection.y += offset;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
835
923
|
if (defined(intersection)) {
|
|
836
924
|
break;
|
|
837
925
|
}
|