@cesium/engine 11.0.0 → 12.0.0
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-HFPMX5L2.js → chunk-2B5H7KIN.js} +1 -1
- package/Build/Workers/{chunk-KKAEXHDY.js → chunk-2RHMHHJH.js} +2 -2
- package/Build/Workers/{chunk-AI3O7UN2.js → chunk-3OHDXGFC.js} +6 -6
- package/Build/Workers/{chunk-TTI2SUWJ.js → chunk-3OM5QZSI.js} +2 -2
- package/Build/Workers/{chunk-2EDC3QGH.js → chunk-3UJV3W4Y.js} +1 -1
- package/Build/Workers/{chunk-N3BIL6WA.js → chunk-3X2LXRHU.js} +13 -13
- package/Build/Workers/{chunk-FJT3ERV7.js → chunk-4ESQ3DN2.js} +9 -9
- package/Build/Workers/{chunk-HO2NTC7I.js → chunk-4IQPX22D.js} +6 -6
- package/Build/Workers/{chunk-L6FARMF6.js → chunk-4XPGN5Y7.js} +11 -11
- package/Build/Workers/{chunk-4NBRIKB3.js → chunk-56LALJCU.js} +2 -2
- package/Build/Workers/{chunk-HC7RYWPZ.js → chunk-5FSKL7US.js} +12 -12
- package/Build/Workers/{chunk-54VC7SCM.js → chunk-5YKJKOFE.js} +7 -7
- package/Build/Workers/{chunk-6ZREIBKS.js → chunk-62YGXNGC.js} +7 -7
- package/Build/Workers/{chunk-BH5ZEN4I.js → chunk-6DYMJ57Z.js} +10 -10
- package/Build/Workers/{chunk-AS7P4BHI.js → chunk-7DSVCRFD.js} +6 -6
- package/Build/Workers/{chunk-6FFGOENI.js → chunk-7OISMGQF.js} +46 -23
- package/Build/Workers/{chunk-BJ3WF5RW.js → chunk-AL7BHP36.js} +6 -6
- package/Build/Workers/{chunk-WQRXRDCZ.js → chunk-AOCENJVH.js} +11 -11
- package/Build/Workers/{chunk-2MKRG7L7.js → chunk-ARTM66DL.js} +5 -5
- package/Build/Workers/{chunk-VSFFJGTA.js → chunk-B4AZL6Q4.js} +5 -5
- package/Build/Workers/{chunk-5IY5BXCT.js → chunk-BQNTN4CC.js} +83 -79
- package/Build/Workers/{chunk-AUM45VEG.js → chunk-C4IAULHW.js} +15 -15
- package/Build/Workers/{chunk-6PJIHPQB.js → chunk-ES6Q5HWK.js} +13 -13
- package/Build/Workers/{chunk-DVAIU7A4.js → chunk-GKBICLGC.js} +19 -23
- package/Build/Workers/{chunk-IBG5FVXC.js → chunk-GMGUR5GM.js} +4 -4
- package/Build/Workers/{chunk-OOA6GXKD.js → chunk-GUW6BS72.js} +7 -7
- package/Build/Workers/{chunk-KFW4UNQH.js → chunk-GYHHNFW5.js} +15 -25
- package/Build/Workers/{chunk-GOHDOWU5.js → chunk-GZG526CC.js} +14 -14
- package/Build/Workers/{chunk-BZXF3GNX.js → chunk-HILBDZUP.js} +2 -2
- package/Build/Workers/{chunk-BBO6BGLC.js → chunk-HYUTWUXN.js} +13 -13
- package/Build/Workers/{chunk-HA6TZ3XT.js → chunk-IL6SMMDD.js} +4 -4
- package/Build/Workers/{chunk-T4MB73MC.js → chunk-IT6AWHFV.js} +2 -2
- package/Build/Workers/{chunk-SRZJCF7G.js → chunk-J64XIF5C.js} +10 -36
- package/Build/Workers/{chunk-BUOFSNFW.js → chunk-JGGZ3H4W.js} +1 -1
- package/Build/Workers/{chunk-SIZXFNJY.js → chunk-JRULXFCC.js} +5 -5
- package/Build/Workers/{chunk-QGT2GMOK.js → chunk-MSY2AAW2.js} +4 -4
- package/Build/Workers/{chunk-XLCZE6DD.js → chunk-QXBRZZQS.js} +10 -10
- package/Build/Workers/{chunk-JYUCC5NV.js → chunk-SXJ37VUC.js} +7 -7
- package/Build/Workers/{chunk-OC4MYPVW.js → chunk-T6FZFMTF.js} +2 -2
- package/Build/Workers/{chunk-OSCHEWSG.js → chunk-TQK4D4AR.js} +7 -7
- package/Build/Workers/{chunk-2RZYNSMR.js → chunk-US3L7FXC.js} +7 -9
- package/Build/Workers/{chunk-RFQYEYAL.js → chunk-VGT4ONMC.js} +18 -20
- package/Build/Workers/{chunk-VHJ5ESXF.js → chunk-VJVTWBXB.js} +1 -1
- package/Build/Workers/{chunk-RJF5ZP76.js → chunk-VQZNBD3T.js} +4 -4
- package/Build/Workers/{chunk-WXDGOYTT.js → chunk-VUCVRDLD.js} +7 -7
- package/Build/Workers/{chunk-DJXXI7UF.js → chunk-W2Q2F7JS.js} +5 -5
- package/Build/Workers/{chunk-HZPMWR4H.js → chunk-WQCX7U65.js} +7 -7
- package/Build/Workers/{chunk-HFMJM3SX.js → chunk-WW5RTJ72.js} +1 -1
- package/Build/Workers/{chunk-IXLNNST6.js → chunk-X67KKHI7.js} +4 -4
- package/Build/Workers/{chunk-4TK5YR6Q.js → chunk-X7VRF25X.js} +5 -5
- package/Build/Workers/{chunk-O5SSW3B3.js → chunk-YANQEHO5.js} +6 -6
- package/Build/Workers/{chunk-HBZSCVZC.js → chunk-ZZNBFQL5.js} +11 -11
- package/Build/Workers/combineGeometry.js +23 -25
- package/Build/Workers/createBoxGeometry.js +16 -16
- package/Build/Workers/createBoxOutlineGeometry.js +14 -14
- package/Build/Workers/createCircleGeometry.js +24 -24
- package/Build/Workers/createCircleOutlineGeometry.js +17 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +31 -31
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +29 -29
- package/Build/Workers/createCorridorGeometry.js +27 -27
- package/Build/Workers/createCorridorOutlineGeometry.js +26 -26
- package/Build/Workers/createCylinderGeometry.js +18 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +16 -16
- package/Build/Workers/createEllipseGeometry.js +24 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +17 -17
- package/Build/Workers/createEllipsoidGeometry.js +17 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +16 -16
- package/Build/Workers/createFrustumGeometry.js +16 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +16 -16
- package/Build/Workers/createGeometry.js +25 -26
- package/Build/Workers/createGroundPolylineGeometry.js +20 -20
- package/Build/Workers/createPlaneGeometry.js +14 -14
- package/Build/Workers/createPlaneOutlineGeometry.js +13 -13
- package/Build/Workers/createPolygonGeometry.js +36 -40
- package/Build/Workers/createPolygonOutlineGeometry.js +40 -48
- package/Build/Workers/createPolylineGeometry.js +23 -23
- package/Build/Workers/createPolylineVolumeGeometry.js +32 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +25 -25
- package/Build/Workers/createRectangleGeometry.js +28 -30
- package/Build/Workers/createRectangleOutlineGeometry.js +19 -19
- package/Build/Workers/createSimplePolylineGeometry.js +21 -21
- package/Build/Workers/createSphereGeometry.js +17 -17
- package/Build/Workers/createSphereOutlineGeometry.js +16 -16
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +13 -13
- package/Build/Workers/createVectorTileGeometries.js +22 -22
- package/Build/Workers/createVectorTilePoints.js +12 -12
- package/Build/Workers/createVectorTilePolygons.js +20 -20
- package/Build/Workers/createVectorTilePolylines.js +13 -13
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -26
- package/Build/Workers/createVerticesFromHeightmap.js +22 -26
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +42 -32
- package/Build/Workers/createWallGeometry.js +22 -22
- package/Build/Workers/createWallOutlineGeometry.js +21 -21
- package/Build/Workers/decodeDraco.js +11 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/transcodeKTX2.js +7 -7
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +20 -20
- package/Source/Core/ApproximateTerrainHeights.js +15 -15
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +33 -35
- package/Source/Core/AttributeCompression.js +12 -12
- package/Source/Core/AxisAlignedBoundingBox.js +2 -2
- package/Source/Core/BingMapsGeocoderService.js +1 -1
- package/Source/Core/BoundingRectangle.js +3 -3
- package/Source/Core/BoundingSphere.js +45 -45
- package/Source/Core/BoxGeometry.js +6 -6
- package/Source/Core/BoxOutlineGeometry.js +3 -3
- package/Source/Core/Cartesian2.js +7 -7
- package/Source/Core/Cartesian3.js +20 -20
- package/Source/Core/Cartesian4.js +8 -8
- package/Source/Core/Cartographic.js +6 -6
- package/Source/Core/CatmullRomSpline.js +6 -6
- package/Source/Core/CesiumTerrainProvider.js +66 -68
- package/Source/Core/Check.d.ts +3 -3
- package/Source/Core/Check.js +11 -11
- package/Source/Core/CircleGeometry.js +6 -6
- package/Source/Core/CircleOutlineGeometry.js +4 -4
- package/Source/Core/Clock.js +4 -4
- package/Source/Core/Color.js +12 -9
- package/Source/Core/ColorGeometryInstanceAttribute.js +1 -1
- package/Source/Core/ComponentDatatype.js +4 -4
- package/Source/Core/CompressedTextureBuffer.js +2 -2
- package/Source/Core/ConstantSpline.js +1 -1
- package/Source/Core/CoplanarPolygonGeometry.js +44 -41
- package/Source/Core/CoplanarPolygonGeometryLibrary.js +5 -5
- package/Source/Core/CoplanarPolygonOutlineGeometry.js +6 -6
- package/Source/Core/CorridorGeometry.js +77 -77
- package/Source/Core/CorridorGeometryLibrary.js +48 -48
- package/Source/Core/CorridorOutlineGeometry.js +16 -16
- package/Source/Core/CullingVolume.js +4 -4
- package/Source/Core/CustomHeightmapTerrainProvider.js +13 -13
- package/Source/Core/CylinderGeometry.js +8 -8
- package/Source/Core/CylinderGeometryLibrary.js +1 -1
- package/Source/Core/CylinderOutlineGeometry.js +4 -4
- package/Source/Core/DeveloperError.js +1 -1
- package/Source/Core/DistanceDisplayConditionGeometryInstanceAttribute.js +20 -21
- package/Source/Core/DoubleEndedPriorityQueue.js +2 -2
- package/Source/Core/EarthOrientationParameters.js +21 -25
- package/Source/Core/EarthOrientationParametersSample.js +1 -1
- package/Source/Core/EllipseGeometry.js +55 -56
- package/Source/Core/EllipseGeometryLibrary.js +12 -12
- package/Source/Core/EllipseOutlineGeometry.js +19 -19
- package/Source/Core/Ellipsoid.js +25 -33
- package/Source/Core/EllipsoidGeodesic.js +18 -17
- package/Source/Core/EllipsoidGeometry.js +9 -8
- package/Source/Core/EllipsoidOutlineGeometry.js +4 -4
- package/Source/Core/EllipsoidRhumbLine.js +33 -32
- package/Source/Core/EllipsoidTangentPlane.js +16 -16
- package/Source/Core/EllipsoidTerrainProvider.js +11 -10
- package/Source/Core/EllipsoidalOccluder.js +110 -130
- package/Source/Core/FeatureDetection.js +4 -4
- package/Source/Core/FrustumGeometry.js +15 -15
- package/Source/Core/FrustumOutlineGeometry.js +4 -4
- package/Source/Core/GeographicTilingScheme.js +6 -6
- package/Source/Core/Geometry.js +15 -17
- package/Source/Core/GeometryAttribute.js +4 -9
- package/Source/Core/GeometryAttributes.js +6 -6
- package/Source/Core/GeometryInstance.js +3 -4
- package/Source/Core/GeometryInstanceAttribute.js +1 -6
- package/Source/Core/GeometryPipeline.js +133 -137
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +19 -20
- package/Source/Core/GoogleEarthEnterpriseTerrainData.js +25 -24
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +17 -21
- package/Source/Core/GoogleEarthEnterpriseTileInformation.js +2 -2
- package/Source/Core/GoogleMaps.js +1 -1
- package/Source/Core/GregorianDate.js +4 -4
- package/Source/Core/GroundPolylineGeometry.js +104 -104
- package/Source/Core/HeadingPitchRoll.js +7 -7
- package/Source/Core/HeightmapTerrainData.js +58 -54
- package/Source/Core/HeightmapTessellator.js +22 -23
- package/Source/Core/HermitePolynomialApproximation.js +8 -8
- package/Source/Core/HermiteSpline.js +11 -11
- package/Source/Core/HilbertOrder.js +1 -1
- package/Source/Core/Iau2006XysData.js +6 -6
- package/Source/Core/IauOrientationAxes.js +2 -2
- package/Source/Core/IauOrientationParameters.js +1 -1
- package/Source/Core/IndexDatatype.js +5 -5
- package/Source/Core/IntersectionTests.js +36 -78
- package/Source/Core/Intersections2D.js +3 -3
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/IonGeocoderService.js +2 -2
- package/Source/Core/IonResource.js +5 -5
- package/Source/Core/Iso8601.js +3 -3
- package/Source/Core/JulianDate.js +23 -33
- package/Source/Core/KTX2Transcoder.js +2 -2
- package/Source/Core/LagrangePolynomialApproximation.js +1 -1
- package/Source/Core/LinearApproximation.js +4 -4
- package/Source/Core/LinearSpline.js +2 -2
- package/Source/Core/Math.js +6 -4
- package/Source/Core/Matrix2.js +3 -3
- package/Source/Core/Matrix3.js +16 -16
- package/Source/Core/Matrix4.js +31 -31
- package/Source/Core/MorphWeightSpline.js +2 -2
- package/Source/Core/NearFarScalar.js +1 -1
- package/Source/Core/Occluder.js +52 -56
- package/Source/Core/OpenCageGeocoderService.js +2 -2
- package/Source/Core/OrientedBoundingBox.js +52 -51
- package/Source/Core/OrthographicFrustum.js +11 -11
- package/Source/Core/OrthographicOffCenterFrustum.js +17 -17
- package/Source/Core/PeliasGeocoderService.js +1 -1
- package/Source/Core/PerspectiveFrustum.js +61 -55
- package/Source/Core/PerspectiveOffCenterFrustum.js +58 -59
- package/Source/Core/PinBuilder.js +1 -1
- package/Source/Core/PixelFormat.js +6 -6
- package/Source/Core/Plane.js +9 -9
- package/Source/Core/PlaneGeometry.js +1 -1
- package/Source/Core/PolygonGeometry.js +95 -94
- package/Source/Core/PolygonGeometryLibrary.js +49 -51
- package/Source/Core/PolygonOutlineGeometry.js +49 -51
- package/Source/Core/PolygonPipeline.js +31 -31
- package/Source/Core/PolylineGeometry.js +10 -10
- package/Source/Core/PolylinePipeline.js +25 -25
- package/Source/Core/PolylineVolumeGeometry.js +9 -9
- package/Source/Core/PolylineVolumeGeometryLibrary.js +53 -53
- package/Source/Core/PolylineVolumeOutlineGeometry.js +6 -6
- package/Source/Core/QuadraticRealPolynomial.js +1 -1
- package/Source/Core/QuantizedMeshTerrainData.js +28 -28
- package/Source/Core/QuarticRealPolynomial.js +1 -1
- package/Source/Core/Quaternion.js +19 -19
- package/Source/Core/QuaternionSpline.js +2 -2
- package/Source/Core/Rectangle.js +34 -13
- package/Source/Core/RectangleCollisionChecker.js +3 -3
- package/Source/Core/RectangleGeometry.js +55 -56
- package/Source/Core/RectangleGeometryLibrary.js +8 -8
- package/Source/Core/RectangleOutlineGeometry.js +20 -20
- package/Source/Core/RequestScheduler.js +6 -6
- package/Source/Core/Resource.js +24 -24
- package/Source/Core/S2Cell.js +16 -80
- package/Source/Core/ScreenSpaceEventHandler.js +54 -53
- package/Source/Core/Simon1994PlanetaryPositions.js +13 -13
- package/Source/Core/SimplePolylineGeometry.js +7 -7
- package/Source/Core/SphereGeometry.js +2 -2
- package/Source/Core/SphereOutlineGeometry.js +3 -3
- package/Source/Core/Spline.js +1 -1
- package/Source/Core/SteppedSpline.js +1 -1
- package/Source/Core/Stereographic.js +9 -9
- package/Source/Core/TaskProcessor.js +13 -13
- package/Source/Core/TerrainEncoding.js +33 -38
- package/Source/Core/TerrainMesh.js +1 -1
- package/Source/Core/TerrainProvider.js +12 -12
- package/Source/Core/TileAvailability.js +28 -28
- package/Source/Core/TileProviderError.js +5 -5
- package/Source/Core/TilingScheme.js +1 -1
- package/Source/Core/TimeInterval.js +4 -4
- package/Source/Core/TimeIntervalCollection.js +16 -15
- package/Source/Core/Tipsify.js +2 -2
- package/Source/Core/Transforms.js +52 -54
- package/Source/Core/TranslationRotationScale.js +1 -1
- package/Source/Core/TridiagonalSystemSolver.js +4 -4
- package/Source/Core/VRTheWorldTerrainProvider.js +28 -26
- package/Source/Core/VertexFormat.js +6 -6
- package/Source/Core/VerticalExaggeration.js +4 -4
- package/Source/Core/VideoSynchronizer.js +1 -1
- package/Source/Core/WallGeometry.js +18 -18
- package/Source/Core/WallGeometryLibrary.js +7 -7
- package/Source/Core/WallOutlineGeometry.js +8 -8
- package/Source/Core/WebMercatorProjection.js +5 -6
- package/Source/Core/WebMercatorTilingScheme.js +13 -13
- package/Source/Core/WireframeIndexGenerator.js +8 -8
- package/Source/Core/arrayRemoveDuplicates.js +1 -1
- package/Source/Core/buildModuleUrl.js +2 -2
- package/Source/Core/decodeGoogleEarthEnterpriseData.js +4 -4
- package/Source/Core/decodeVectorPolylinePositions.js +4 -4
- package/Source/Core/destroyObject.js +1 -1
- package/Source/Core/getJsonFromTypedArray.js +1 -1
- package/Source/Core/getMagic.js +1 -1
- package/Source/Core/loadImageFromTypedArray.js +2 -2
- package/Source/Core/loadKTX2.js +1 -1
- package/Source/Core/pointInsideTriangle.js +1 -1
- package/Source/Core/resizeImageToNextPowerOfTwo.js +1 -1
- package/Source/Core/sampleTerrain.js +7 -7
- package/Source/Core/sampleTerrainMostDetailed.js +7 -7
- package/Source/Core/scaleToGeodeticSurface.js +3 -3
- package/Source/Core/srgbToLinear.js +1 -1
- package/Source/Core/writeTextToCanvas.js +1 -1
- package/Source/DataSources/BillboardGraphics.js +13 -13
- package/Source/DataSources/BillboardVisualizer.js +24 -24
- package/Source/DataSources/BoxGeometryUpdater.js +33 -32
- package/Source/DataSources/BoxGraphics.js +3 -3
- package/Source/DataSources/CallbackPositionProperty.js +173 -0
- package/Source/DataSources/Cesium3DTilesetGraphics.js +1 -1
- package/Source/DataSources/Cesium3DTilesetVisualizer.js +6 -6
- package/Source/DataSources/CheckerboardMaterialProperty.js +2 -2
- package/Source/DataSources/ColorMaterialProperty.js +1 -1
- package/Source/DataSources/CompositeEntityCollection.js +14 -15
- package/Source/DataSources/CompositeMaterialProperty.js +5 -7
- package/Source/DataSources/CompositePositionProperty.js +4 -5
- package/Source/DataSources/CompositeProperty.js +2 -2
- package/Source/DataSources/ConstantPositionProperty.js +2 -2
- package/Source/DataSources/CorridorGeometryUpdater.js +61 -56
- package/Source/DataSources/CorridorGraphics.js +6 -6
- package/Source/DataSources/CylinderGeometryUpdater.js +42 -40
- package/Source/DataSources/CylinderGraphics.js +4 -4
- package/Source/DataSources/CzmlDataSource.js +365 -368
- package/Source/DataSources/DataSourceCollection.js +1 -1
- package/Source/DataSources/DataSourceDisplay.js +24 -24
- package/Source/DataSources/DynamicGeometryBatch.js +2 -2
- package/Source/DataSources/DynamicGeometryUpdater.js +14 -18
- package/Source/DataSources/EllipseGeometryUpdater.js +67 -63
- package/Source/DataSources/EllipseGraphics.js +7 -7
- package/Source/DataSources/EllipsoidGeometryUpdater.js +88 -86
- package/Source/DataSources/EllipsoidGraphics.js +5 -5
- package/Source/DataSources/Entity.js +13 -13
- package/Source/DataSources/EntityCluster.js +29 -27
- package/Source/DataSources/EntityCollection.js +7 -7
- package/Source/DataSources/EntityView.js +23 -23
- package/Source/DataSources/GeoJsonDataSource.js +25 -25
- package/Source/DataSources/GeometryUpdater.js +9 -10
- package/Source/DataSources/GeometryUpdaterSet.js +3 -3
- package/Source/DataSources/GeometryVisualizer.js +65 -71
- package/Source/DataSources/GpxDataSource.js +10 -10
- package/Source/DataSources/GridMaterialProperty.js +5 -5
- package/Source/DataSources/GroundGeometryUpdater.js +6 -6
- package/Source/DataSources/ImageMaterialProperty.js +2 -2
- package/Source/DataSources/KmlDataSource.js +212 -212
- package/Source/DataSources/LabelGraphics.js +14 -14
- package/Source/DataSources/LabelVisualizer.js +24 -24
- package/Source/DataSources/ModelGraphics.js +38 -17
- package/Source/DataSources/ModelVisualizer.js +41 -32
- package/Source/DataSources/NodeTransformationProperty.js +3 -3
- package/Source/DataSources/PathGraphics.js +2 -2
- package/Source/DataSources/PathVisualizer.js +99 -35
- package/Source/DataSources/PlaneGeometryUpdater.js +38 -37
- package/Source/DataSources/PlaneGraphics.js +2 -2
- package/Source/DataSources/PointGraphics.js +8 -8
- package/Source/DataSources/PointVisualizer.js +29 -29
- package/Source/DataSources/PolygonGeometryUpdater.js +68 -64
- package/Source/DataSources/PolygonGraphics.js +9 -9
- package/Source/DataSources/PolylineArrowMaterialProperty.js +1 -1
- package/Source/DataSources/PolylineDashMaterialProperty.js +4 -4
- package/Source/DataSources/PolylineGeometryUpdater.js +39 -44
- package/Source/DataSources/PolylineGlowMaterialProperty.js +3 -3
- package/Source/DataSources/PolylineGraphics.js +4 -4
- package/Source/DataSources/PolylineOutlineMaterialProperty.js +3 -3
- package/Source/DataSources/PolylineVisualizer.js +39 -43
- package/Source/DataSources/PolylineVolumeGeometryUpdater.js +70 -68
- package/Source/DataSources/PolylineVolumeGraphics.js +2 -2
- package/Source/DataSources/PositionProperty.js +4 -3
- package/Source/DataSources/PositionPropertyArray.js +3 -3
- package/Source/DataSources/Property.js +1 -1
- package/Source/DataSources/PropertyArray.js +1 -1
- package/Source/DataSources/PropertyBag.js +5 -5
- package/Source/DataSources/RectangleGeometryUpdater.js +68 -63
- package/Source/DataSources/RectangleGraphics.js +6 -6
- package/Source/DataSources/ReferenceProperty.js +6 -6
- package/Source/DataSources/Rotation.js +2 -2
- package/Source/DataSources/SampledPositionProperty.js +6 -6
- package/Source/DataSources/SampledProperty.js +16 -16
- package/Source/DataSources/ScaledPositionProperty.js +2 -2
- package/Source/DataSources/StaticGeometryColorBatch.js +41 -41
- package/Source/DataSources/StaticGeometryPerMaterialBatch.js +40 -40
- package/Source/DataSources/StaticGroundGeometryColorBatch.js +26 -27
- package/Source/DataSources/StaticGroundGeometryPerMaterialBatch.js +46 -44
- package/Source/DataSources/StaticGroundPolylinePerMaterialBatch.js +44 -43
- package/Source/DataSources/StaticOutlineGeometryBatch.js +28 -29
- package/Source/DataSources/StripeMaterialProperty.js +2 -2
- package/Source/DataSources/TerrainOffsetProperty.js +11 -11
- package/Source/DataSources/TimeIntervalCollectionPositionProperty.js +28 -30
- package/Source/DataSources/TimeIntervalCollectionProperty.js +1 -1
- package/Source/DataSources/VelocityOrientationProperty.js +3 -3
- package/Source/DataSources/VelocityVectorProperty.js +4 -4
- package/Source/DataSources/WallGeometryUpdater.js +25 -25
- package/Source/DataSources/WallGraphics.js +4 -4
- package/Source/DataSources/createPropertyDescriptor.js +3 -3
- package/Source/DataSources/exportKml.js +90 -86
- package/Source/DataSources/getElement.js +1 -1
- package/Source/DataSources/heightReferenceOnEntityPropertyChanged.js +4 -4
- package/Source/Renderer/AutomaticUniforms.js +14 -1
- package/Source/Renderer/Buffer.js +18 -18
- package/Source/Renderer/ClearCommand.js +1 -1
- package/Source/Renderer/ComputeEngine.js +1 -1
- package/Source/Renderer/Context.js +40 -40
- package/Source/Renderer/CubeMap.js +109 -32
- package/Source/Renderer/CubeMapFace.js +109 -32
- package/Source/Renderer/DrawCommand.js +50 -5
- package/Source/Renderer/Framebuffer.js +48 -49
- package/Source/Renderer/FramebufferManager.js +40 -34
- package/Source/Renderer/MultisampleFramebuffer.js +35 -14
- package/Source/Renderer/RenderState.js +36 -36
- package/Source/Renderer/Renderbuffer.js +3 -3
- package/Source/Renderer/Sampler.js +2 -2
- package/Source/Renderer/ShaderBuilder.js +8 -8
- package/Source/Renderer/ShaderCache.js +11 -15
- package/Source/Renderer/ShaderFunction.js +1 -1
- package/Source/Renderer/ShaderProgram.js +15 -15
- package/Source/Renderer/ShaderSource.js +40 -40
- package/Source/Renderer/Texture.js +74 -63
- package/Source/Renderer/UniformState.js +78 -58
- package/Source/Renderer/VertexArray.js +20 -20
- package/Source/Renderer/VertexArrayFacade.js +15 -16
- package/Source/Renderer/createUniform.js +1 -1
- package/Source/Renderer/createUniformArray.js +4 -4
- package/Source/Renderer/demodernizeShader.js +5 -5
- package/Source/Renderer/loadCubeMap.js +1 -1
- package/Source/Scene/ArcGisMapServerImageryProvider.js +39 -45
- package/Source/Scene/ArcGisMapService.js +4 -7
- package/Source/Scene/Atmosphere.js +22 -0
- package/Source/Scene/AutoExposure.js +4 -5
- package/Source/Scene/Axis.js +6 -6
- package/Source/Scene/B3dmParser.js +9 -9
- package/Source/Scene/BatchTable.js +7 -7
- package/Source/Scene/BatchTableHierarchy.js +62 -59
- package/Source/Scene/BatchTexture.js +2 -2
- package/Source/Scene/Billboard.js +45 -43
- package/Source/Scene/BillboardCollection.js +81 -83
- package/Source/Scene/BingMapsImageryProvider.js +13 -13
- package/Source/Scene/BoundingVolumeSemantics.js +10 -10
- package/Source/Scene/BoxEmitter.js +1 -1
- package/Source/Scene/BufferLoader.js +1 -1
- package/Source/Scene/Camera.js +161 -164
- package/Source/Scene/CameraEventAggregator.js +18 -18
- package/Source/Scene/CameraFlightPath.js +25 -25
- package/Source/Scene/Cesium3DTile.js +89 -95
- package/Source/Scene/Cesium3DTileBatchTable.js +61 -61
- package/Source/Scene/Cesium3DTileContentFactory.js +7 -7
- package/Source/Scene/Cesium3DTileFeature.js +1 -1
- package/Source/Scene/Cesium3DTileFeatureTable.js +8 -8
- package/Source/Scene/Cesium3DTileOptimizations.js +1 -1
- package/Source/Scene/Cesium3DTilePointFeature.js +11 -11
- package/Source/Scene/Cesium3DTileStyle.js +26 -24
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +14 -20
- package/Source/Scene/Cesium3DTileset.js +120 -83
- package/Source/Scene/Cesium3DTilesetBaseTraversal.js +8 -16
- package/Source/Scene/Cesium3DTilesetCache.js +2 -2
- package/Source/Scene/Cesium3DTilesetHeatmap.js +5 -5
- package/Source/Scene/Cesium3DTilesetMetadata.js +2 -2
- package/Source/Scene/Cesium3DTilesetMostDetailedTraversal.js +2 -2
- package/Source/Scene/Cesium3DTilesetSkipTraversal.js +8 -12
- package/Source/Scene/Cesium3DTilesetStatistics.js +1 -1
- package/Source/Scene/Cesium3DTilesetTraversal.js +8 -10
- package/Source/Scene/ClassificationPrimitive.js +70 -69
- package/Source/Scene/ClippingPlaneCollection.js +39 -41
- package/Source/Scene/ClippingPolygon.js +8 -8
- package/Source/Scene/ClippingPolygonCollection.js +62 -63
- package/Source/Scene/CloudCollection.js +3 -10
- package/Source/Scene/Composite3DTileContent.js +6 -6
- package/Source/Scene/ConditionsExpression.js +5 -5
- package/Source/Scene/ContentMetadata.js +4 -4
- package/Source/Scene/CreditDisplay.js +8 -8
- package/Source/Scene/CumulusCloud.js +4 -4
- package/Source/Scene/DebugAppearance.js +2 -2
- package/Source/Scene/DebugCameraPrimitive.js +2 -2
- package/Source/Scene/DebugInspector.js +3 -3
- package/Source/Scene/DebugModelMatrixPrimitive.js +4 -4
- package/Source/Scene/DepthPlane.js +7 -7
- package/Source/Scene/DerivedCommand.js +422 -238
- package/Source/Scene/DiscardMissingTileImagePolicy.js +1 -1
- package/Source/Scene/DracoLoader.js +3 -3
- package/Source/Scene/DynamicEnvironmentMapManager.js +852 -0
- package/Source/Scene/EllipsoidPrimitive.js +7 -7
- package/Source/Scene/EllipsoidSurfaceAppearance.js +3 -3
- package/Source/Scene/Empty3DTileContent.js +1 -1
- package/Source/Scene/Expression.js +91 -91
- package/Source/Scene/Fog.js +76 -116
- package/Source/Scene/FrameRateMonitor.js +22 -22
- package/Source/Scene/FrameState.js +36 -3
- package/Source/Scene/Geometry3DTileContent.js +20 -20
- package/Source/Scene/GetFeatureInfoFormat.js +15 -14
- package/Source/Scene/Globe.js +32 -27
- package/Source/Scene/GlobeDepth.js +95 -66
- package/Source/Scene/GlobeSurfaceShaderSet.js +12 -10
- package/Source/Scene/GlobeSurfaceTile.js +33 -33
- package/Source/Scene/GlobeSurfaceTileProvider.js +127 -124
- package/Source/Scene/GlobeTranslucency.js +4 -4
- package/Source/Scene/GlobeTranslucencyFramebuffer.js +9 -9
- package/Source/Scene/GlobeTranslucencyState.js +53 -55
- package/Source/Scene/GltfBufferViewLoader.js +2 -2
- package/Source/Scene/GltfIndexBufferLoader.js +5 -5
- package/Source/Scene/GltfJsonLoader.js +2 -2
- package/Source/Scene/GltfLoader.js +177 -100
- package/Source/Scene/GltfStructuralMetadataLoader.js +9 -8
- package/Source/Scene/GltfTextureLoader.js +5 -5
- package/Source/Scene/GltfVertexBufferLoader.js +12 -13
- package/Source/Scene/GoogleEarthEnterpriseImageryProvider.js +9 -9
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +9 -9
- package/Source/Scene/GridImageryProvider.js +2 -2
- package/Source/Scene/GroundPolylinePrimitive.js +38 -39
- package/Source/Scene/GroundPrimitive.js +47 -45
- package/Source/Scene/GroupMetadata.js +4 -4
- package/Source/Scene/I3SDataProvider.js +12 -12
- package/Source/Scene/I3SDecoder.js +7 -8
- package/Source/Scene/I3SField.js +8 -8
- package/Source/Scene/I3SGeometry.js +14 -14
- package/Source/Scene/I3SLayer.js +26 -20
- package/Source/Scene/I3SNode.js +17 -17
- package/Source/Scene/I3SSublayer.js +4 -4
- package/Source/Scene/I3SSymbology.js +8 -8
- package/Source/Scene/I3dmParser.js +9 -9
- package/Source/Scene/ImageBasedLighting.js +32 -87
- package/Source/Scene/Imagery.js +3 -3
- package/Source/Scene/ImageryLayer.js +64 -66
- package/Source/Scene/ImageryLayerCollection.js +13 -15
- package/Source/Scene/ImageryLayerFeatureInfo.js +19 -20
- package/Source/Scene/ImageryProvider.js +1 -1
- package/Source/Scene/Implicit3DTileContent.js +34 -37
- package/Source/Scene/ImplicitAvailabilityBitstream.js +2 -2
- package/Source/Scene/ImplicitMetadataView.js +2 -2
- package/Source/Scene/ImplicitSubtree.js +29 -30
- package/Source/Scene/ImplicitSubtreeCache.js +1 -1
- package/Source/Scene/ImplicitSubtreeMetadata.js +5 -5
- package/Source/Scene/ImplicitTileCoordinates.js +11 -11
- package/Source/Scene/ImplicitTileset.js +2 -2
- package/Source/Scene/InvertClassification.js +7 -7
- package/Source/Scene/IonImageryProvider.js +6 -6
- package/Source/Scene/JobScheduler.js +4 -4
- package/Source/Scene/Label.js +29 -29
- package/Source/Scene/LabelCollection.js +17 -15
- package/Source/Scene/MapboxImageryProvider.js +3 -3
- package/Source/Scene/MapboxStyleImageryProvider.js +4 -4
- package/Source/Scene/Material.js +26 -27
- package/Source/Scene/MaterialAppearance.js +4 -4
- package/Source/Scene/Megatexture.js +21 -24
- package/Source/Scene/MetadataClassProperty.js +11 -11
- package/Source/Scene/MetadataComponentType.js +1 -1
- package/Source/Scene/MetadataEntity.js +8 -8
- package/Source/Scene/MetadataEnum.js +1 -1
- package/Source/Scene/MetadataPicking.js +305 -0
- package/Source/Scene/MetadataSchemaLoader.js +1 -1
- package/Source/Scene/MetadataTable.js +2 -2
- package/Source/Scene/MetadataTableProperty.js +22 -22
- package/Source/Scene/Model/AlphaPipelineStage.js +2 -2
- package/Source/Scene/Model/AtmospherePipelineStage.js +13 -8
- package/Source/Scene/Model/B3dmLoader.js +8 -8
- package/Source/Scene/Model/BatchTexturePipelineStage.js +2 -2
- package/Source/Scene/Model/CPUStylingPipelineStage.js +4 -4
- package/Source/Scene/Model/ClassificationModelDrawCommand.js +8 -8
- package/Source/Scene/Model/ClassificationPipelineStage.js +5 -5
- package/Source/Scene/Model/CustomShader.js +9 -9
- package/Source/Scene/Model/CustomShaderPipelineStage.js +37 -38
- package/Source/Scene/Model/DequantizationPipelineStage.js +5 -5
- package/Source/Scene/Model/Extensions/Gpm/AnchorPointDirect.js +61 -0
- package/Source/Scene/Model/Extensions/Gpm/AnchorPointIndirect.js +77 -0
- package/Source/Scene/Model/Extensions/Gpm/CorrelationGroup.js +81 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLoader.js +248 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLocal.js +179 -0
- package/Source/Scene/Model/Extensions/Gpm/GltfMeshPrimitiveGpmLoader.js +548 -0
- package/Source/Scene/Model/Extensions/Gpm/MeshPrimitiveGpmLocal.js +28 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeMetadata.js +79 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeSource.js +75 -0
- package/Source/Scene/Model/Extensions/Gpm/PpeTexture.js +127 -0
- package/Source/Scene/Model/Extensions/Gpm/Spdcf.js +103 -0
- package/Source/Scene/Model/Extensions/Gpm/StorageType.js +30 -0
- package/Source/Scene/Model/FeatureIdPipelineStage.js +40 -40
- package/Source/Scene/Model/GeoJsonLoader.js +17 -17
- package/Source/Scene/Model/GeometryPipelineStage.js +23 -24
- package/Source/Scene/Model/I3dmLoader.js +36 -36
- package/Source/Scene/Model/ImageBasedLightingPipelineStage.js +56 -34
- package/Source/Scene/Model/InstancingPipelineStage.js +86 -86
- package/Source/Scene/Model/LightingPipelineStage.js +4 -4
- package/Source/Scene/Model/MaterialPipelineStage.js +78 -93
- package/Source/Scene/Model/MetadataPickingPipelineStage.js +96 -0
- package/Source/Scene/Model/MetadataPipelineStage.js +39 -47
- package/Source/Scene/Model/Model.js +228 -75
- package/Source/Scene/Model/Model3DTileContent.js +37 -13
- package/Source/Scene/Model/ModelAnimationChannel.js +2 -2
- package/Source/Scene/Model/ModelAnimationCollection.js +9 -9
- package/Source/Scene/Model/ModelArticulation.js +2 -2
- package/Source/Scene/Model/ModelArticulationStage.js +4 -4
- package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +11 -11
- package/Source/Scene/Model/ModelClippingPolygonsPipelineStage.js +6 -6
- package/Source/Scene/Model/ModelColorPipelineStage.js +12 -13
- package/Source/Scene/Model/ModelDrawCommand.js +5 -5
- package/Source/Scene/Model/{buildDrawCommand.js → ModelDrawCommands.js} +85 -28
- package/Source/Scene/Model/ModelFeatureTable.js +5 -5
- package/Source/Scene/Model/ModelMatrixUpdateStage.js +24 -12
- package/Source/Scene/Model/ModelRenderResources.js +1 -1
- package/Source/Scene/Model/ModelRuntimeNode.js +15 -15
- package/Source/Scene/Model/ModelRuntimePrimitive.js +8 -5
- package/Source/Scene/Model/ModelSceneGraph.js +43 -43
- package/Source/Scene/Model/ModelSilhouettePipelineStage.js +4 -4
- package/Source/Scene/Model/ModelSkin.js +4 -4
- package/Source/Scene/Model/ModelSplitterPipelineStage.js +8 -9
- package/Source/Scene/Model/ModelUtility.js +5 -5
- package/Source/Scene/Model/MorphTargetsPipelineStage.js +18 -18
- package/Source/Scene/Model/NodeRenderResources.js +1 -1
- package/Source/Scene/Model/NodeStatisticsPipelineStage.js +1 -1
- package/Source/Scene/Model/PickingPipelineStage.js +5 -5
- package/Source/Scene/Model/PntsLoader.js +7 -7
- package/Source/Scene/Model/PointCloudStylingPipelineStage.js +22 -23
- package/Source/Scene/Model/PrimitiveOutlineGenerator.js +6 -6
- package/Source/Scene/Model/PrimitiveOutlinePipelineStage.js +7 -7
- package/Source/Scene/Model/PrimitiveRenderResources.js +3 -3
- package/Source/Scene/Model/PrimitiveStatisticsPipelineStage.js +1 -1
- package/Source/Scene/Model/SceneMode2DPipelineStage.js +23 -23
- package/Source/Scene/Model/SelectedFeatureIdPipelineStage.js +10 -14
- package/Source/Scene/Model/SkinningPipelineStage.js +5 -5
- package/Source/Scene/Model/StyleCommandsNeeded.js +1 -1
- package/Source/Scene/Model/TextureManager.js +2 -2
- package/Source/Scene/Model/TextureUniform.js +3 -3
- package/Source/Scene/Model/TilesetPipelineStage.js +2 -2
- package/Source/Scene/Model/VerticalExaggerationPipelineStage.js +4 -4
- package/Source/Scene/Model/WireframePipelineStage.js +7 -7
- package/Source/Scene/Model/pickModel.js +26 -26
- package/Source/Scene/ModelComponents.js +13 -4
- package/Source/Scene/Moon.js +6 -5
- package/Source/Scene/Multiple3DTileContent.js +15 -14
- package/Source/Scene/OIT.js +48 -97
- package/Source/Scene/OpenStreetMapImageryProvider.js +8 -7
- package/Source/Scene/OrderedGroundPrimitiveCollection.js +2 -2
- package/Source/Scene/Particle.js +3 -3
- package/Source/Scene/ParticleEmitter.js +1 -1
- package/Source/Scene/ParticleSystem.js +32 -32
- package/Source/Scene/PerInstanceColorAppearance.js +1 -1
- package/Source/Scene/PickDepth.js +16 -4
- package/Source/Scene/PickDepthFramebuffer.js +1 -1
- package/Source/Scene/PickFramebuffer.js +24 -12
- package/Source/Scene/PickedMetadataInfo.js +39 -0
- package/Source/Scene/Picking.js +270 -120
- package/Source/Scene/PntsParser.js +28 -28
- package/Source/Scene/PointCloud.js +39 -38
- package/Source/Scene/PointCloudEyeDomeLighting.js +6 -6
- package/Source/Scene/PointCloudShading.js +3 -3
- package/Source/Scene/PointPrimitive.js +31 -28
- package/Source/Scene/PointPrimitiveCollection.js +34 -33
- package/Source/Scene/Polyline.js +9 -9
- package/Source/Scene/PolylineCollection.js +55 -57
- package/Source/Scene/PolylineColorAppearance.js +3 -3
- package/Source/Scene/PolylineMaterialAppearance.js +3 -3
- package/Source/Scene/PostProcessStage.js +95 -115
- package/Source/Scene/PostProcessStageCollection.js +35 -41
- package/Source/Scene/PostProcessStageComposite.js +2 -2
- package/Source/Scene/PostProcessStageLibrary.js +5 -5
- package/Source/Scene/PostProcessStageTextureCache.js +10 -10
- package/Source/Scene/Primitive.js +93 -93
- package/Source/Scene/PrimitiveCollection.js +1 -1
- package/Source/Scene/PrimitiveLoadPlan.js +1 -1
- package/Source/Scene/PrimitivePipeline.js +30 -30
- package/Source/Scene/PropertyTable.js +5 -5
- package/Source/Scene/PropertyTextureProperty.js +36 -7
- package/Source/Scene/QuadtreePrimitive.js +56 -58
- package/Source/Scene/QuadtreeTile.js +4 -4
- package/Source/Scene/QuadtreeTileProvider.js +1 -1
- package/Source/Scene/ResourceCache.js +7 -7
- package/Source/Scene/ResourceCacheKey.js +15 -15
- package/Source/Scene/Scene.js +879 -657
- package/Source/Scene/SceneFramebuffer.js +2 -2
- package/Source/Scene/SceneTransforms.js +30 -30
- package/Source/Scene/SceneTransitioner.js +47 -47
- package/Source/Scene/ScreenSpaceCameraController.js +180 -154
- package/Source/Scene/SensorVolumePortionToDisplay.js +1 -1
- package/Source/Scene/ShadowMap.js +71 -72
- package/Source/Scene/ShadowMapShader.js +9 -9
- package/Source/Scene/ShadowVolumeAppearance.js +39 -39
- package/Source/Scene/SingleTileImageryProvider.js +3 -3
- package/Source/Scene/SkyAtmosphere.js +8 -8
- package/Source/Scene/SkyBox.js +7 -8
- package/Source/Scene/SpatialNode.js +13 -13
- package/Source/Scene/SphereEmitter.js +1 -1
- package/Source/Scene/StructuralMetadata.js +1 -1
- package/Source/Scene/StyleExpression.js +1 -1
- package/Source/Scene/Sun.js +11 -7
- package/Source/Scene/SunPostProcess.js +6 -6
- package/Source/Scene/TerrainFillMesh.js +157 -156
- package/Source/Scene/TextureAtlas.js +11 -11
- package/Source/Scene/TileBoundingRegion.js +31 -31
- package/Source/Scene/TileBoundingS2Cell.js +37 -40
- package/Source/Scene/TileBoundingSphere.js +2 -2
- package/Source/Scene/TileCoordinatesImageryProvider.js +3 -3
- package/Source/Scene/TileImagery.js +7 -11
- package/Source/Scene/TileMapServiceImageryProvider.js +26 -25
- package/Source/Scene/TileMetadata.js +4 -4
- package/Source/Scene/TileOrientedBoundingBox.js +6 -6
- package/Source/Scene/Tileset3DTileContent.js +1 -1
- package/Source/Scene/TilesetMetadata.js +4 -4
- package/Source/Scene/TimeDynamicImagery.js +3 -3
- package/Source/Scene/TimeDynamicPointCloud.js +9 -9
- package/Source/Scene/TranslucentTileClassification.js +48 -58
- package/Source/Scene/TweenCollection.js +9 -9
- package/Source/Scene/UrlTemplateImageryProvider.js +23 -23
- package/Source/Scene/Vector3DTileClampedPolylines.js +21 -21
- package/Source/Scene/Vector3DTileContent.js +38 -39
- package/Source/Scene/Vector3DTileGeometry.js +11 -8
- package/Source/Scene/Vector3DTilePoints.js +18 -22
- package/Source/Scene/Vector3DTilePolygons.js +6 -6
- package/Source/Scene/Vector3DTilePolylines.js +8 -8
- package/Source/Scene/Vector3DTilePrimitive.js +30 -31
- package/Source/Scene/View.js +111 -80
- package/Source/Scene/VoxelBoxShape.js +34 -34
- package/Source/Scene/VoxelCell.js +7 -7
- package/Source/Scene/VoxelContent.js +1 -1
- package/Source/Scene/VoxelCylinderShape.js +48 -48
- package/Source/Scene/VoxelEllipsoidShape.js +83 -97
- package/Source/Scene/VoxelPrimitive.js +80 -80
- package/Source/Scene/VoxelRenderResources.js +13 -13
- package/Source/Scene/VoxelTraversal.js +41 -41
- package/Source/Scene/WebMapServiceImageryProvider.js +12 -12
- package/Source/Scene/WebMapTileServiceImageryProvider.js +8 -8
- package/Source/Scene/buildVoxelDrawCommands.js +10 -14
- package/Source/Scene/computeFlyToLocationForRectangle.js +7 -5
- package/Source/Scene/createBillboardPointCallback.js +2 -2
- package/Source/Scene/createElevationBandMaterial.js +8 -8
- package/Source/Scene/createGooglePhotorealistic3DTileset.js +1 -1
- package/Source/Scene/createOsmBuildingsAsync.js +1 -1
- package/Source/Scene/createTangentSpaceDebugPrimitive.js +7 -7
- package/Source/Scene/findContentMetadata.js +2 -2
- package/Source/Scene/findTileMetadata.js +2 -2
- package/Source/Scene/getBinaryAccessor.js +1 -1
- package/Source/Scene/getClipAndStyleCode.js +1 -1
- package/Source/Scene/getClippingFunction.js +1 -1
- package/Source/Scene/getMetadataClassProperty.js +43 -0
- package/Source/Scene/parseBatchTable.js +21 -24
- package/Source/Scene/parseFeatureMetadataLegacy.js +3 -3
- package/Source/Scene/parseStructuralMetadata.js +3 -3
- package/Source/Scene/processVoxelProperties.js +28 -33
- package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.glsl +44 -0
- package/Source/Shaders/Builtin/Functions/computeAtmosphereColor.js +44 -0
- package/Source/Shaders/Builtin/Functions/computeScattering.glsl +0 -1
- package/Source/Shaders/Builtin/Functions/computeScattering.js +0 -1
- package/Source/Shaders/Builtin/Functions/packDepth.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/packDepth.js +2 -2
- package/Source/Shaders/Builtin/Functions/sphericalHarmonics.glsl +3 -1
- package/Source/Shaders/Builtin/Functions/sphericalHarmonics.js +3 -1
- package/Source/Shaders/Builtin/Functions/unpackDepth.glsl +3 -3
- package/Source/Shaders/Builtin/Functions/unpackDepth.js +3 -3
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.glsl +1 -1
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +1 -1
- package/Source/Shaders/Builtin/Functions/writeLogDepth.glsl +2 -2
- package/Source/Shaders/Builtin/Functions/writeLogDepth.js +2 -2
- package/Source/Shaders/ComputeIrradianceFS.glsl +103 -0
- package/Source/Shaders/ComputeIrradianceFS.js +105 -0
- package/Source/Shaders/ComputeRadianceMapFS.glsl +107 -0
- package/Source/Shaders/ComputeRadianceMapFS.js +109 -0
- package/Source/Shaders/ConvolveSpecularMapFS.glsl +70 -0
- package/Source/Shaders/ConvolveSpecularMapFS.js +72 -0
- package/Source/Shaders/ConvolveSpecularMapVS.glsl +24 -0
- package/Source/Shaders/ConvolveSpecularMapVS.js +26 -0
- package/Source/Shaders/DepthPlaneVS.glsl +1 -1
- package/Source/Shaders/DepthPlaneVS.js +1 -1
- package/Source/Shaders/GlobeFS.glsl +1 -2
- package/Source/Shaders/GlobeFS.js +1 -2
- package/Source/Shaders/Model/AtmosphereStageFS.glsl +1 -4
- package/Source/Shaders/Model/AtmosphereStageFS.js +1 -4
- package/Source/Shaders/Model/ImageBasedLightingStageFS.glsl +2 -155
- package/Source/Shaders/Model/ImageBasedLightingStageFS.js +3 -156
- package/Source/Shaders/Model/LightingStageFS.glsl +3 -22
- package/Source/Shaders/Model/LightingStageFS.js +3 -22
- package/Source/Shaders/Model/ModelFS.glsl +26 -0
- package/Source/Shaders/Model/ModelFS.js +26 -0
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.glsl +59 -59
- package/Source/Shaders/PostProcessStages/AmbientOcclusionGenerate.js +60 -60
- package/Source/Shaders/SkyBoxVS.glsl +0 -1
- package/Source/Shaders/SkyBoxVS.js +0 -1
- package/Source/Widget/CesiumWidget.js +785 -9
- package/Source/Workers/combineGeometry.js +3 -4
- package/Source/Workers/createCircleGeometry.js +2 -2
- package/Source/Workers/createCircleOutlineGeometry.js +2 -2
- package/Source/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Source/Workers/createCorridorOutlineGeometry.js +2 -2
- package/Source/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/Source/Workers/createGeometry.js +4 -5
- package/Source/Workers/createGroundPolylineGeometry.js +1 -1
- package/Source/Workers/createPolylineVolumeGeometry.js +2 -2
- package/Source/Workers/createPolylineVolumeOutlineGeometry.js +4 -4
- package/Source/Workers/createRectangleOutlineGeometry.js +1 -1
- package/Source/Workers/createSimplePolylineGeometry.js +2 -2
- package/Source/Workers/createTaskProcessorWorker.js +1 -1
- package/Source/Workers/createVectorTileClampedPolylines.js +30 -30
- package/Source/Workers/createVectorTileGeometries.js +18 -18
- package/Source/Workers/createVectorTilePoints.js +3 -3
- package/Source/Workers/createVectorTilePolygons.js +11 -11
- package/Source/Workers/createVectorTilePolylines.js +7 -7
- package/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +29 -30
- package/Source/Workers/createVerticesFromQuantizedTerrainMesh.js +60 -60
- package/Source/Workers/decodeDraco.js +23 -23
- package/Source/Workers/decodeGoogleEarthEnterprisePacket.js +4 -4
- package/Source/Workers/decodeI3S.js +53 -53
- package/Source/Workers/transcodeKTX2.js +9 -9
- package/Source/Workers/transferTypedArrayTest.js +1 -1
- package/Source/Workers/upsampleQuantizedTerrainMesh.js +37 -36
- package/index.d.ts +769 -47
- package/index.js +73 -51
- package/package.json +3 -3
|
@@ -50,7 +50,7 @@ function TerrainFillMesh(tile) {
|
|
|
50
50
|
TerrainFillMesh.prototype.update = function (
|
|
51
51
|
tileProvider,
|
|
52
52
|
frameState,
|
|
53
|
-
vertexArraysToDestroy
|
|
53
|
+
vertexArraysToDestroy,
|
|
54
54
|
) {
|
|
55
55
|
if (this.changedThisFrame) {
|
|
56
56
|
createFillMesh(tileProvider, frameState, this.tile, vertexArraysToDestroy);
|
|
@@ -73,7 +73,7 @@ TerrainFillMesh.prototype.destroy = function (vertexArraysToDestroy) {
|
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
TerrainFillMesh.prototype._destroyVertexArray = function (
|
|
76
|
-
vertexArraysToDestroy
|
|
76
|
+
vertexArraysToDestroy,
|
|
77
77
|
) {
|
|
78
78
|
if (defined(this.vertexArray)) {
|
|
79
79
|
if (defined(vertexArraysToDestroy)) {
|
|
@@ -91,7 +91,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
91
91
|
tileProvider,
|
|
92
92
|
renderedTiles,
|
|
93
93
|
frameState,
|
|
94
|
-
vertexArraysToDestroy
|
|
94
|
+
vertexArraysToDestroy,
|
|
95
95
|
) {
|
|
96
96
|
// We want our fill tiles to look natural, which means they should align perfectly with
|
|
97
97
|
// adjacent loaded tiles, and their edges that are not adjacent to loaded tiles should have
|
|
@@ -136,7 +136,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
136
136
|
TileEdge.EAST,
|
|
137
137
|
false,
|
|
138
138
|
traversalQueue,
|
|
139
|
-
vertexArraysToDestroy
|
|
139
|
+
vertexArraysToDestroy,
|
|
140
140
|
);
|
|
141
141
|
visitRenderedTiles(
|
|
142
142
|
tileProvider,
|
|
@@ -147,7 +147,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
147
147
|
TileEdge.NORTH,
|
|
148
148
|
false,
|
|
149
149
|
traversalQueue,
|
|
150
|
-
vertexArraysToDestroy
|
|
150
|
+
vertexArraysToDestroy,
|
|
151
151
|
);
|
|
152
152
|
visitRenderedTiles(
|
|
153
153
|
tileProvider,
|
|
@@ -158,7 +158,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
158
158
|
TileEdge.WEST,
|
|
159
159
|
false,
|
|
160
160
|
traversalQueue,
|
|
161
|
-
vertexArraysToDestroy
|
|
161
|
+
vertexArraysToDestroy,
|
|
162
162
|
);
|
|
163
163
|
visitRenderedTiles(
|
|
164
164
|
tileProvider,
|
|
@@ -169,7 +169,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
169
169
|
TileEdge.SOUTH,
|
|
170
170
|
false,
|
|
171
171
|
traversalQueue,
|
|
172
|
-
vertexArraysToDestroy
|
|
172
|
+
vertexArraysToDestroy,
|
|
173
173
|
);
|
|
174
174
|
|
|
175
175
|
const tileToNorthwest = tileToWest.findTileToNorth(levelZeroTiles);
|
|
@@ -185,7 +185,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
185
185
|
TileEdge.SOUTHEAST,
|
|
186
186
|
false,
|
|
187
187
|
traversalQueue,
|
|
188
|
-
vertexArraysToDestroy
|
|
188
|
+
vertexArraysToDestroy,
|
|
189
189
|
);
|
|
190
190
|
visitRenderedTiles(
|
|
191
191
|
tileProvider,
|
|
@@ -196,7 +196,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
196
196
|
TileEdge.SOUTHWEST,
|
|
197
197
|
false,
|
|
198
198
|
traversalQueue,
|
|
199
|
-
vertexArraysToDestroy
|
|
199
|
+
vertexArraysToDestroy,
|
|
200
200
|
);
|
|
201
201
|
visitRenderedTiles(
|
|
202
202
|
tileProvider,
|
|
@@ -207,7 +207,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
207
207
|
TileEdge.NORTHEAST,
|
|
208
208
|
false,
|
|
209
209
|
traversalQueue,
|
|
210
|
-
vertexArraysToDestroy
|
|
210
|
+
vertexArraysToDestroy,
|
|
211
211
|
);
|
|
212
212
|
visitRenderedTiles(
|
|
213
213
|
tileProvider,
|
|
@@ -218,7 +218,7 @@ TerrainFillMesh.updateFillTiles = function (
|
|
|
218
218
|
TileEdge.NORTHWEST,
|
|
219
219
|
false,
|
|
220
220
|
traversalQueue,
|
|
221
|
-
vertexArraysToDestroy
|
|
221
|
+
vertexArraysToDestroy,
|
|
222
222
|
);
|
|
223
223
|
|
|
224
224
|
tile = traversalQueue.dequeue();
|
|
@@ -234,7 +234,7 @@ function visitRenderedTiles(
|
|
|
234
234
|
tileEdge,
|
|
235
235
|
downOnly,
|
|
236
236
|
traversalQueue,
|
|
237
|
-
vertexArraysToDestroy
|
|
237
|
+
vertexArraysToDestroy,
|
|
238
238
|
) {
|
|
239
239
|
if (startTile === undefined) {
|
|
240
240
|
// There are no tiles North or South of the poles.
|
|
@@ -295,7 +295,7 @@ function visitRenderedTiles(
|
|
|
295
295
|
tileEdge,
|
|
296
296
|
currentFrameNumber,
|
|
297
297
|
traversalQueue,
|
|
298
|
-
vertexArraysToDestroy
|
|
298
|
+
vertexArraysToDestroy,
|
|
299
299
|
);
|
|
300
300
|
return;
|
|
301
301
|
}
|
|
@@ -320,7 +320,7 @@ function visitRenderedTiles(
|
|
|
320
320
|
tileEdge,
|
|
321
321
|
true,
|
|
322
322
|
traversalQueue,
|
|
323
|
-
vertexArraysToDestroy
|
|
323
|
+
vertexArraysToDestroy,
|
|
324
324
|
);
|
|
325
325
|
visitRenderedTiles(
|
|
326
326
|
tileProvider,
|
|
@@ -331,7 +331,7 @@ function visitRenderedTiles(
|
|
|
331
331
|
tileEdge,
|
|
332
332
|
true,
|
|
333
333
|
traversalQueue,
|
|
334
|
-
vertexArraysToDestroy
|
|
334
|
+
vertexArraysToDestroy,
|
|
335
335
|
);
|
|
336
336
|
break;
|
|
337
337
|
case TileEdge.EAST:
|
|
@@ -344,7 +344,7 @@ function visitRenderedTiles(
|
|
|
344
344
|
tileEdge,
|
|
345
345
|
true,
|
|
346
346
|
traversalQueue,
|
|
347
|
-
vertexArraysToDestroy
|
|
347
|
+
vertexArraysToDestroy,
|
|
348
348
|
);
|
|
349
349
|
visitRenderedTiles(
|
|
350
350
|
tileProvider,
|
|
@@ -355,7 +355,7 @@ function visitRenderedTiles(
|
|
|
355
355
|
tileEdge,
|
|
356
356
|
true,
|
|
357
357
|
traversalQueue,
|
|
358
|
-
vertexArraysToDestroy
|
|
358
|
+
vertexArraysToDestroy,
|
|
359
359
|
);
|
|
360
360
|
break;
|
|
361
361
|
case TileEdge.SOUTH:
|
|
@@ -368,7 +368,7 @@ function visitRenderedTiles(
|
|
|
368
368
|
tileEdge,
|
|
369
369
|
true,
|
|
370
370
|
traversalQueue,
|
|
371
|
-
vertexArraysToDestroy
|
|
371
|
+
vertexArraysToDestroy,
|
|
372
372
|
);
|
|
373
373
|
visitRenderedTiles(
|
|
374
374
|
tileProvider,
|
|
@@ -379,7 +379,7 @@ function visitRenderedTiles(
|
|
|
379
379
|
tileEdge,
|
|
380
380
|
true,
|
|
381
381
|
traversalQueue,
|
|
382
|
-
vertexArraysToDestroy
|
|
382
|
+
vertexArraysToDestroy,
|
|
383
383
|
);
|
|
384
384
|
break;
|
|
385
385
|
case TileEdge.NORTH:
|
|
@@ -392,7 +392,7 @@ function visitRenderedTiles(
|
|
|
392
392
|
tileEdge,
|
|
393
393
|
true,
|
|
394
394
|
traversalQueue,
|
|
395
|
-
vertexArraysToDestroy
|
|
395
|
+
vertexArraysToDestroy,
|
|
396
396
|
);
|
|
397
397
|
visitRenderedTiles(
|
|
398
398
|
tileProvider,
|
|
@@ -403,7 +403,7 @@ function visitRenderedTiles(
|
|
|
403
403
|
tileEdge,
|
|
404
404
|
true,
|
|
405
405
|
traversalQueue,
|
|
406
|
-
vertexArraysToDestroy
|
|
406
|
+
vertexArraysToDestroy,
|
|
407
407
|
);
|
|
408
408
|
break;
|
|
409
409
|
case TileEdge.NORTHWEST:
|
|
@@ -416,7 +416,7 @@ function visitRenderedTiles(
|
|
|
416
416
|
tileEdge,
|
|
417
417
|
true,
|
|
418
418
|
traversalQueue,
|
|
419
|
-
vertexArraysToDestroy
|
|
419
|
+
vertexArraysToDestroy,
|
|
420
420
|
);
|
|
421
421
|
break;
|
|
422
422
|
case TileEdge.NORTHEAST:
|
|
@@ -429,7 +429,7 @@ function visitRenderedTiles(
|
|
|
429
429
|
tileEdge,
|
|
430
430
|
true,
|
|
431
431
|
traversalQueue,
|
|
432
|
-
vertexArraysToDestroy
|
|
432
|
+
vertexArraysToDestroy,
|
|
433
433
|
);
|
|
434
434
|
break;
|
|
435
435
|
case TileEdge.SOUTHWEST:
|
|
@@ -442,7 +442,7 @@ function visitRenderedTiles(
|
|
|
442
442
|
tileEdge,
|
|
443
443
|
true,
|
|
444
444
|
traversalQueue,
|
|
445
|
-
vertexArraysToDestroy
|
|
445
|
+
vertexArraysToDestroy,
|
|
446
446
|
);
|
|
447
447
|
break;
|
|
448
448
|
case TileEdge.SOUTHEAST:
|
|
@@ -455,7 +455,7 @@ function visitRenderedTiles(
|
|
|
455
455
|
tileEdge,
|
|
456
456
|
true,
|
|
457
457
|
traversalQueue,
|
|
458
|
-
vertexArraysToDestroy
|
|
458
|
+
vertexArraysToDestroy,
|
|
459
459
|
);
|
|
460
460
|
break;
|
|
461
461
|
default:
|
|
@@ -471,7 +471,7 @@ function visitTile(
|
|
|
471
471
|
tileEdge,
|
|
472
472
|
frameNumber,
|
|
473
473
|
traversalQueue,
|
|
474
|
-
vertexArraysToDestroy
|
|
474
|
+
vertexArraysToDestroy,
|
|
475
475
|
) {
|
|
476
476
|
const destinationSurfaceTile = destinationTile.data;
|
|
477
477
|
|
|
@@ -495,7 +495,7 @@ function visitTile(
|
|
|
495
495
|
sourceTile,
|
|
496
496
|
destinationTile,
|
|
497
497
|
tileEdge,
|
|
498
|
-
vertexArraysToDestroy
|
|
498
|
+
vertexArraysToDestroy,
|
|
499
499
|
);
|
|
500
500
|
}
|
|
501
501
|
|
|
@@ -505,7 +505,7 @@ function propagateEdge(
|
|
|
505
505
|
sourceTile,
|
|
506
506
|
destinationTile,
|
|
507
507
|
tileEdge,
|
|
508
|
-
vertexArraysToDestroy
|
|
508
|
+
vertexArraysToDestroy,
|
|
509
509
|
) {
|
|
510
510
|
const destinationFill = destinationTile.data.fill;
|
|
511
511
|
|
|
@@ -520,7 +520,7 @@ function propagateEdge(
|
|
|
520
520
|
tileProvider,
|
|
521
521
|
frameState,
|
|
522
522
|
sourceTile,
|
|
523
|
-
vertexArraysToDestroy
|
|
523
|
+
vertexArraysToDestroy,
|
|
524
524
|
);
|
|
525
525
|
sourceFill.changedThisFrame = false;
|
|
526
526
|
}
|
|
@@ -614,7 +614,7 @@ function propagateEdge(
|
|
|
614
614
|
CesiumMath.greaterThan(
|
|
615
615
|
sourceRectangle.north,
|
|
616
616
|
existingRectangle.south,
|
|
617
|
-
epsilon
|
|
617
|
+
epsilon,
|
|
618
618
|
)
|
|
619
619
|
) {
|
|
620
620
|
break;
|
|
@@ -627,7 +627,7 @@ function propagateEdge(
|
|
|
627
627
|
CesiumMath.greaterThanOrEquals(
|
|
628
628
|
sourceRectangle.south,
|
|
629
629
|
existingRectangle.north,
|
|
630
|
-
epsilon
|
|
630
|
+
epsilon,
|
|
631
631
|
)
|
|
632
632
|
) {
|
|
633
633
|
break;
|
|
@@ -646,7 +646,7 @@ function propagateEdge(
|
|
|
646
646
|
CesiumMath.lessThan(
|
|
647
647
|
sourceRectangle.west,
|
|
648
648
|
existingRectangle.east,
|
|
649
|
-
epsilon
|
|
649
|
+
epsilon,
|
|
650
650
|
)
|
|
651
651
|
) {
|
|
652
652
|
break;
|
|
@@ -659,7 +659,7 @@ function propagateEdge(
|
|
|
659
659
|
CesiumMath.lessThanOrEquals(
|
|
660
660
|
sourceRectangle.east,
|
|
661
661
|
existingRectangle.west,
|
|
662
|
-
epsilon
|
|
662
|
+
epsilon,
|
|
663
663
|
)
|
|
664
664
|
) {
|
|
665
665
|
break;
|
|
@@ -678,7 +678,7 @@ function propagateEdge(
|
|
|
678
678
|
CesiumMath.lessThan(
|
|
679
679
|
sourceRectangle.south,
|
|
680
680
|
existingRectangle.north,
|
|
681
|
-
epsilon
|
|
681
|
+
epsilon,
|
|
682
682
|
)
|
|
683
683
|
) {
|
|
684
684
|
break;
|
|
@@ -691,7 +691,7 @@ function propagateEdge(
|
|
|
691
691
|
CesiumMath.lessThanOrEquals(
|
|
692
692
|
sourceRectangle.north,
|
|
693
693
|
existingRectangle.south,
|
|
694
|
-
epsilon
|
|
694
|
+
epsilon,
|
|
695
695
|
)
|
|
696
696
|
) {
|
|
697
697
|
break;
|
|
@@ -710,7 +710,7 @@ function propagateEdge(
|
|
|
710
710
|
CesiumMath.greaterThan(
|
|
711
711
|
sourceRectangle.east,
|
|
712
712
|
existingRectangle.west,
|
|
713
|
-
epsilon
|
|
713
|
+
epsilon,
|
|
714
714
|
)
|
|
715
715
|
) {
|
|
716
716
|
break;
|
|
@@ -723,7 +723,7 @@ function propagateEdge(
|
|
|
723
723
|
CesiumMath.greaterThanOrEquals(
|
|
724
724
|
sourceRectangle.west,
|
|
725
725
|
existingRectangle.east,
|
|
726
|
-
epsilon
|
|
726
|
+
epsilon,
|
|
727
727
|
)
|
|
728
728
|
) {
|
|
729
729
|
break;
|
|
@@ -766,7 +766,7 @@ function fillMissingCorner(
|
|
|
766
766
|
adjacentCorner1,
|
|
767
767
|
adjacentCorner2,
|
|
768
768
|
oppositeCorner,
|
|
769
|
-
vertex
|
|
769
|
+
vertex,
|
|
770
770
|
) {
|
|
771
771
|
if (defined(corner)) {
|
|
772
772
|
return corner;
|
|
@@ -823,7 +823,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
823
823
|
GlobeSurfaceTile.initialize(
|
|
824
824
|
tile,
|
|
825
825
|
tileProvider.terrainProvider,
|
|
826
|
-
tileProvider._imageryLayers
|
|
826
|
+
tileProvider._imageryLayers,
|
|
827
827
|
);
|
|
828
828
|
|
|
829
829
|
const surfaceTile = tile.data;
|
|
@@ -848,7 +848,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
848
848
|
fill.northMeshes,
|
|
849
849
|
fill.westTiles,
|
|
850
850
|
fill.westMeshes,
|
|
851
|
-
nwVertexScratch
|
|
851
|
+
nwVertexScratch,
|
|
852
852
|
);
|
|
853
853
|
let swCorner = getCorner(
|
|
854
854
|
fill,
|
|
@@ -861,7 +861,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
861
861
|
fill.westMeshes,
|
|
862
862
|
fill.southTiles,
|
|
863
863
|
fill.southMeshes,
|
|
864
|
-
swVertexScratch
|
|
864
|
+
swVertexScratch,
|
|
865
865
|
);
|
|
866
866
|
let seCorner = getCorner(
|
|
867
867
|
fill,
|
|
@@ -874,7 +874,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
874
874
|
fill.southMeshes,
|
|
875
875
|
fill.eastTiles,
|
|
876
876
|
fill.eastMeshes,
|
|
877
|
-
seVertexScratch
|
|
877
|
+
seVertexScratch,
|
|
878
878
|
);
|
|
879
879
|
let neCorner = getCorner(
|
|
880
880
|
fill,
|
|
@@ -887,7 +887,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
887
887
|
fill.eastMeshes,
|
|
888
888
|
fill.northTiles,
|
|
889
889
|
fill.northMeshes,
|
|
890
|
-
neVertexScratch
|
|
890
|
+
neVertexScratch,
|
|
891
891
|
);
|
|
892
892
|
|
|
893
893
|
nwCorner = fillMissingCorner(
|
|
@@ -899,7 +899,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
899
899
|
swCorner,
|
|
900
900
|
neCorner,
|
|
901
901
|
seCorner,
|
|
902
|
-
nwVertexScratch
|
|
902
|
+
nwVertexScratch,
|
|
903
903
|
);
|
|
904
904
|
swCorner = fillMissingCorner(
|
|
905
905
|
fill,
|
|
@@ -910,7 +910,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
910
910
|
nwCorner,
|
|
911
911
|
seCorner,
|
|
912
912
|
neCorner,
|
|
913
|
-
swVertexScratch
|
|
913
|
+
swVertexScratch,
|
|
914
914
|
);
|
|
915
915
|
seCorner = fillMissingCorner(
|
|
916
916
|
fill,
|
|
@@ -921,7 +921,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
921
921
|
swCorner,
|
|
922
922
|
neCorner,
|
|
923
923
|
nwCorner,
|
|
924
|
-
seVertexScratch
|
|
924
|
+
seVertexScratch,
|
|
925
925
|
);
|
|
926
926
|
neCorner = fillMissingCorner(
|
|
927
927
|
fill,
|
|
@@ -932,7 +932,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
932
932
|
seCorner,
|
|
933
933
|
nwCorner,
|
|
934
934
|
swCorner,
|
|
935
|
-
neVertexScratch
|
|
935
|
+
neVertexScratch,
|
|
936
936
|
);
|
|
937
937
|
|
|
938
938
|
const southwestHeight = swCorner.height;
|
|
@@ -944,13 +944,13 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
944
944
|
southwestHeight,
|
|
945
945
|
southeastHeight,
|
|
946
946
|
northwestHeight,
|
|
947
|
-
northeastHeight
|
|
947
|
+
northeastHeight,
|
|
948
948
|
);
|
|
949
949
|
let maximumHeight = Math.max(
|
|
950
950
|
southwestHeight,
|
|
951
951
|
southeastHeight,
|
|
952
952
|
northwestHeight,
|
|
953
|
-
northeastHeight
|
|
953
|
+
northeastHeight,
|
|
954
954
|
);
|
|
955
955
|
|
|
956
956
|
const middleHeight = (minimumHeight + maximumHeight) * 0.5;
|
|
@@ -997,19 +997,20 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
997
997
|
createMeshSyncOptions.y = tile.y;
|
|
998
998
|
createMeshSyncOptions.level = tile.level;
|
|
999
999
|
createMeshSyncOptions.exaggeration = exaggeration;
|
|
1000
|
-
createMeshSyncOptions.exaggerationRelativeHeight =
|
|
1000
|
+
createMeshSyncOptions.exaggerationRelativeHeight =
|
|
1001
|
+
exaggerationRelativeHeight;
|
|
1001
1002
|
|
|
1002
1003
|
fill.mesh = terrainData._createMeshSync(createMeshSyncOptions);
|
|
1003
1004
|
} else {
|
|
1004
1005
|
const hasGeodeticSurfaceNormals = hasExaggeration;
|
|
1005
1006
|
const centerCartographic = Rectangle.center(
|
|
1006
1007
|
rectangle,
|
|
1007
|
-
centerCartographicScratch
|
|
1008
|
+
centerCartographicScratch,
|
|
1008
1009
|
);
|
|
1009
1010
|
centerCartographic.height = middleHeight;
|
|
1010
1011
|
const center = ellipsoid.cartographicToCartesian(
|
|
1011
1012
|
centerCartographic,
|
|
1012
|
-
scratchCenter
|
|
1013
|
+
scratchCenter,
|
|
1013
1014
|
);
|
|
1014
1015
|
const encoding = new TerrainEncoding(
|
|
1015
1016
|
center,
|
|
@@ -1021,7 +1022,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1021
1022
|
true,
|
|
1022
1023
|
hasGeodeticSurfaceNormals,
|
|
1023
1024
|
exaggeration,
|
|
1024
|
-
exaggerationRelativeHeight
|
|
1025
|
+
exaggerationRelativeHeight,
|
|
1025
1026
|
);
|
|
1026
1027
|
|
|
1027
1028
|
// At _most_, we have vertices for the 4 corners, plus 1 center, plus every adjacent edge vertex.
|
|
@@ -1071,7 +1072,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1071
1072
|
nwCorner.height,
|
|
1072
1073
|
nwCorner.encodedNormal,
|
|
1073
1074
|
1.0,
|
|
1074
|
-
heightRange
|
|
1075
|
+
heightRange,
|
|
1075
1076
|
);
|
|
1076
1077
|
nextIndex = addEdge(
|
|
1077
1078
|
fill,
|
|
@@ -1082,7 +1083,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1082
1083
|
fill.westTiles,
|
|
1083
1084
|
fill.westMeshes,
|
|
1084
1085
|
TileEdge.EAST,
|
|
1085
|
-
heightRange
|
|
1086
|
+
heightRange,
|
|
1086
1087
|
);
|
|
1087
1088
|
const southwestIndex = nextIndex;
|
|
1088
1089
|
nextIndex = addVertexWithComputedPosition(
|
|
@@ -1096,7 +1097,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1096
1097
|
swCorner.height,
|
|
1097
1098
|
swCorner.encodedNormal,
|
|
1098
1099
|
0.0,
|
|
1099
|
-
heightRange
|
|
1100
|
+
heightRange,
|
|
1100
1101
|
);
|
|
1101
1102
|
nextIndex = addEdge(
|
|
1102
1103
|
fill,
|
|
@@ -1107,7 +1108,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1107
1108
|
fill.southTiles,
|
|
1108
1109
|
fill.southMeshes,
|
|
1109
1110
|
TileEdge.NORTH,
|
|
1110
|
-
heightRange
|
|
1111
|
+
heightRange,
|
|
1111
1112
|
);
|
|
1112
1113
|
const southeastIndex = nextIndex;
|
|
1113
1114
|
nextIndex = addVertexWithComputedPosition(
|
|
@@ -1121,7 +1122,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1121
1122
|
seCorner.height,
|
|
1122
1123
|
seCorner.encodedNormal,
|
|
1123
1124
|
0.0,
|
|
1124
|
-
heightRange
|
|
1125
|
+
heightRange,
|
|
1125
1126
|
);
|
|
1126
1127
|
nextIndex = addEdge(
|
|
1127
1128
|
fill,
|
|
@@ -1132,7 +1133,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1132
1133
|
fill.eastTiles,
|
|
1133
1134
|
fill.eastMeshes,
|
|
1134
1135
|
TileEdge.WEST,
|
|
1135
|
-
heightRange
|
|
1136
|
+
heightRange,
|
|
1136
1137
|
);
|
|
1137
1138
|
const northeastIndex = nextIndex;
|
|
1138
1139
|
nextIndex = addVertexWithComputedPosition(
|
|
@@ -1146,7 +1147,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1146
1147
|
neCorner.height,
|
|
1147
1148
|
neCorner.encodedNormal,
|
|
1148
1149
|
1.0,
|
|
1149
|
-
heightRange
|
|
1150
|
+
heightRange,
|
|
1150
1151
|
);
|
|
1151
1152
|
nextIndex = addEdge(
|
|
1152
1153
|
fill,
|
|
@@ -1157,7 +1158,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1157
1158
|
fill.northTiles,
|
|
1158
1159
|
fill.northMeshes,
|
|
1159
1160
|
TileEdge.SOUTH,
|
|
1160
|
-
heightRange
|
|
1161
|
+
heightRange,
|
|
1161
1162
|
);
|
|
1162
1163
|
|
|
1163
1164
|
minimumHeight = heightRange.minimumHeight;
|
|
@@ -1167,31 +1168,30 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1167
1168
|
rectangle,
|
|
1168
1169
|
minimumHeight,
|
|
1169
1170
|
maximumHeight,
|
|
1170
|
-
tile.tilingScheme.ellipsoid
|
|
1171
|
+
tile.tilingScheme.ellipsoid,
|
|
1171
1172
|
);
|
|
1172
1173
|
|
|
1173
1174
|
// Add a single vertex at the center of the tile.
|
|
1174
|
-
const southMercatorY =
|
|
1175
|
-
rectangle.south
|
|
1176
|
-
);
|
|
1175
|
+
const southMercatorY =
|
|
1176
|
+
WebMercatorProjection.geodeticLatitudeToMercatorAngle(rectangle.south);
|
|
1177
1177
|
const oneOverMercatorHeight =
|
|
1178
1178
|
1.0 /
|
|
1179
1179
|
(WebMercatorProjection.geodeticLatitudeToMercatorAngle(rectangle.north) -
|
|
1180
1180
|
southMercatorY);
|
|
1181
1181
|
const centerWebMercatorT =
|
|
1182
1182
|
(WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
1183
|
-
centerCartographic.latitude
|
|
1183
|
+
centerCartographic.latitude,
|
|
1184
1184
|
) -
|
|
1185
1185
|
southMercatorY) *
|
|
1186
1186
|
oneOverMercatorHeight;
|
|
1187
1187
|
|
|
1188
1188
|
const geodeticSurfaceNormal = ellipsoid.geodeticSurfaceNormalCartographic(
|
|
1189
1189
|
cartographicScratch,
|
|
1190
|
-
normalScratch
|
|
1190
|
+
normalScratch,
|
|
1191
1191
|
);
|
|
1192
1192
|
const centerEncodedNormal = AttributeCompression.octEncode(
|
|
1193
1193
|
geodeticSurfaceNormal,
|
|
1194
|
-
octEncodedNormalScratch
|
|
1194
|
+
octEncodedNormalScratch,
|
|
1195
1195
|
);
|
|
1196
1196
|
|
|
1197
1197
|
const centerIndex = nextIndex;
|
|
@@ -1203,7 +1203,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1203
1203
|
middleHeight,
|
|
1204
1204
|
centerEncodedNormal,
|
|
1205
1205
|
centerWebMercatorT,
|
|
1206
|
-
geodeticSurfaceNormal
|
|
1206
|
+
geodeticSurfaceNormal,
|
|
1207
1207
|
);
|
|
1208
1208
|
++nextIndex;
|
|
1209
1209
|
|
|
@@ -1280,7 +1280,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1280
1280
|
obb.center,
|
|
1281
1281
|
rectangle,
|
|
1282
1282
|
minimumHeight,
|
|
1283
|
-
maximumHeight
|
|
1283
|
+
maximumHeight,
|
|
1284
1284
|
),
|
|
1285
1285
|
encoding.stride,
|
|
1286
1286
|
obb,
|
|
@@ -1288,7 +1288,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1288
1288
|
westIndicesSouthToNorth,
|
|
1289
1289
|
southIndicesEastToWest,
|
|
1290
1290
|
eastIndicesNorthToSouth,
|
|
1291
|
-
northIndicesWestToEast
|
|
1291
|
+
northIndicesWestToEast,
|
|
1292
1292
|
);
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
@@ -1298,13 +1298,13 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1298
1298
|
|
|
1299
1299
|
fill.vertexArray = GlobeSurfaceTile._createVertexArrayForMesh(
|
|
1300
1300
|
context,
|
|
1301
|
-
fill.mesh
|
|
1301
|
+
fill.mesh,
|
|
1302
1302
|
);
|
|
1303
1303
|
surfaceTile.processImagery(
|
|
1304
1304
|
tile,
|
|
1305
1305
|
tileProvider.terrainProvider,
|
|
1306
1306
|
frameState,
|
|
1307
|
-
true
|
|
1307
|
+
true,
|
|
1308
1308
|
);
|
|
1309
1309
|
|
|
1310
1310
|
const oldTexture = fill.waterMaskTexture;
|
|
@@ -1321,7 +1321,7 @@ function createFillMesh(tileProvider, frameState, tile, vertexArraysToDestroy) {
|
|
|
1321
1321
|
surfaceTile._computeWaterMaskTranslationAndScale(
|
|
1322
1322
|
tile,
|
|
1323
1323
|
waterSourceTile,
|
|
1324
|
-
fill.waterMaskTranslationAndScale
|
|
1324
|
+
fill.waterMaskTranslationAndScale,
|
|
1325
1325
|
);
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
@@ -1345,7 +1345,7 @@ function addVertexWithComputedPosition(
|
|
|
1345
1345
|
height,
|
|
1346
1346
|
encodedNormal,
|
|
1347
1347
|
webMercatorT,
|
|
1348
|
-
heightRange
|
|
1348
|
+
heightRange,
|
|
1349
1349
|
) {
|
|
1350
1350
|
const cartographic = cartographicScratch;
|
|
1351
1351
|
cartographic.longitude = CesiumMath.lerp(rectangle.west, rectangle.east, u);
|
|
@@ -1353,14 +1353,14 @@ function addVertexWithComputedPosition(
|
|
|
1353
1353
|
cartographic.height = height;
|
|
1354
1354
|
const position = ellipsoid.cartographicToCartesian(
|
|
1355
1355
|
cartographic,
|
|
1356
|
-
cartesianScratch
|
|
1356
|
+
cartesianScratch,
|
|
1357
1357
|
);
|
|
1358
1358
|
|
|
1359
1359
|
let geodeticSurfaceNormal;
|
|
1360
1360
|
if (encoding.hasGeodeticSurfaceNormals) {
|
|
1361
1361
|
geodeticSurfaceNormal = ellipsoid.geodeticSurfaceNormal(
|
|
1362
1362
|
position,
|
|
1363
|
-
normalScratch
|
|
1363
|
+
normalScratch,
|
|
1364
1364
|
);
|
|
1365
1365
|
}
|
|
1366
1366
|
|
|
@@ -1376,7 +1376,7 @@ function addVertexWithComputedPosition(
|
|
|
1376
1376
|
height,
|
|
1377
1377
|
encodedNormal,
|
|
1378
1378
|
webMercatorT,
|
|
1379
|
-
geodeticSurfaceNormal
|
|
1379
|
+
geodeticSurfaceNormal,
|
|
1380
1380
|
);
|
|
1381
1381
|
|
|
1382
1382
|
heightRange.minimumHeight = Math.min(heightRange.minimumHeight, height);
|
|
@@ -1391,7 +1391,7 @@ function transformTextureCoordinates(
|
|
|
1391
1391
|
sourceTile,
|
|
1392
1392
|
targetTile,
|
|
1393
1393
|
coordinates,
|
|
1394
|
-
result
|
|
1394
|
+
result,
|
|
1395
1395
|
) {
|
|
1396
1396
|
let sourceRectangle = sourceTile.rectangle;
|
|
1397
1397
|
const targetRectangle = targetTile.rectangle;
|
|
@@ -1405,7 +1405,7 @@ function transformTextureCoordinates(
|
|
|
1405
1405
|
) {
|
|
1406
1406
|
sourceRectangle = Rectangle.clone(
|
|
1407
1407
|
sourceTile.rectangle,
|
|
1408
|
-
sourceRectangleScratch
|
|
1408
|
+
sourceRectangleScratch,
|
|
1409
1409
|
);
|
|
1410
1410
|
sourceRectangle.west -= CesiumMath.TWO_PI;
|
|
1411
1411
|
sourceRectangle.east -= CesiumMath.TWO_PI;
|
|
@@ -1417,7 +1417,7 @@ function transformTextureCoordinates(
|
|
|
1417
1417
|
) {
|
|
1418
1418
|
sourceRectangle = Rectangle.clone(
|
|
1419
1419
|
sourceTile.rectangle,
|
|
1420
|
-
sourceRectangleScratch
|
|
1420
|
+
sourceRectangleScratch,
|
|
1421
1421
|
);
|
|
1422
1422
|
sourceRectangle.west += CesiumMath.TWO_PI;
|
|
1423
1423
|
sourceRectangle.east += CesiumMath.TWO_PI;
|
|
@@ -1464,7 +1464,7 @@ function getVertexFromTileAtCorner(sourceMesh, sourceIndex, u, v, vertex) {
|
|
|
1464
1464
|
sourceEncoding.getOctEncodedNormal(
|
|
1465
1465
|
sourceVertices,
|
|
1466
1466
|
sourceIndex,
|
|
1467
|
-
vertex.encodedNormal
|
|
1467
|
+
vertex.encodedNormal,
|
|
1468
1468
|
);
|
|
1469
1469
|
} else {
|
|
1470
1470
|
const normal = vertex.encodedNormal;
|
|
@@ -1486,7 +1486,7 @@ function getInterpolatedVertexAtCorner(
|
|
|
1486
1486
|
u,
|
|
1487
1487
|
v,
|
|
1488
1488
|
interpolateU,
|
|
1489
|
-
vertex
|
|
1489
|
+
vertex,
|
|
1490
1490
|
) {
|
|
1491
1491
|
const sourceEncoding = sourceMesh.encoding;
|
|
1492
1492
|
const sourceVertices = sourceMesh.vertices;
|
|
@@ -1497,9 +1497,9 @@ function getInterpolatedVertexAtCorner(
|
|
|
1497
1497
|
sourceEncoding.decodeTextureCoordinates(
|
|
1498
1498
|
sourceVertices,
|
|
1499
1499
|
previousIndex,
|
|
1500
|
-
uvScratch
|
|
1500
|
+
uvScratch,
|
|
1501
1501
|
),
|
|
1502
|
-
uvScratch
|
|
1502
|
+
uvScratch,
|
|
1503
1503
|
);
|
|
1504
1504
|
const nextUv = transformTextureCoordinates(
|
|
1505
1505
|
sourceTile,
|
|
@@ -1507,9 +1507,9 @@ function getInterpolatedVertexAtCorner(
|
|
|
1507
1507
|
sourceEncoding.decodeTextureCoordinates(
|
|
1508
1508
|
sourceVertices,
|
|
1509
1509
|
nextIndex,
|
|
1510
|
-
uvScratch2
|
|
1510
|
+
uvScratch2,
|
|
1511
1511
|
),
|
|
1512
|
-
uvScratch2
|
|
1512
|
+
uvScratch2,
|
|
1513
1513
|
);
|
|
1514
1514
|
|
|
1515
1515
|
let ratio;
|
|
@@ -1526,17 +1526,17 @@ function getInterpolatedVertexAtCorner(
|
|
|
1526
1526
|
cartographicScratch.longitude = CesiumMath.lerp(
|
|
1527
1527
|
targetRectangle.west,
|
|
1528
1528
|
targetRectangle.east,
|
|
1529
|
-
u
|
|
1529
|
+
u,
|
|
1530
1530
|
);
|
|
1531
1531
|
cartographicScratch.latitude = CesiumMath.lerp(
|
|
1532
1532
|
targetRectangle.south,
|
|
1533
1533
|
targetRectangle.north,
|
|
1534
|
-
v
|
|
1534
|
+
v,
|
|
1535
1535
|
);
|
|
1536
1536
|
vertex.height = cartographicScratch.height = CesiumMath.lerp(
|
|
1537
1537
|
height1,
|
|
1538
1538
|
height2,
|
|
1539
|
-
ratio
|
|
1539
|
+
ratio,
|
|
1540
1540
|
);
|
|
1541
1541
|
|
|
1542
1542
|
let normal;
|
|
@@ -1544,22 +1544,22 @@ function getInterpolatedVertexAtCorner(
|
|
|
1544
1544
|
const encodedNormal1 = sourceEncoding.getOctEncodedNormal(
|
|
1545
1545
|
sourceVertices,
|
|
1546
1546
|
previousIndex,
|
|
1547
|
-
encodedNormalScratch
|
|
1547
|
+
encodedNormalScratch,
|
|
1548
1548
|
);
|
|
1549
1549
|
const encodedNormal2 = sourceEncoding.getOctEncodedNormal(
|
|
1550
1550
|
sourceVertices,
|
|
1551
1551
|
nextIndex,
|
|
1552
|
-
encodedNormalScratch2
|
|
1552
|
+
encodedNormalScratch2,
|
|
1553
1553
|
);
|
|
1554
1554
|
const normal1 = AttributeCompression.octDecode(
|
|
1555
1555
|
encodedNormal1.x,
|
|
1556
1556
|
encodedNormal1.y,
|
|
1557
|
-
cartesianScratch
|
|
1557
|
+
cartesianScratch,
|
|
1558
1558
|
);
|
|
1559
1559
|
const normal2 = AttributeCompression.octDecode(
|
|
1560
1560
|
encodedNormal2.x,
|
|
1561
1561
|
encodedNormal2.y,
|
|
1562
|
-
cartesianScratch2
|
|
1562
|
+
cartesianScratch2,
|
|
1563
1563
|
);
|
|
1564
1564
|
normal = Cartesian3.lerp(normal1, normal2, ratio, cartesianScratch);
|
|
1565
1565
|
Cartesian3.normalize(normal, normal);
|
|
@@ -1567,7 +1567,7 @@ function getInterpolatedVertexAtCorner(
|
|
|
1567
1567
|
} else {
|
|
1568
1568
|
normal = ellipsoid.geodeticSurfaceNormalCartographic(
|
|
1569
1569
|
cartographicScratch,
|
|
1570
|
-
cartesianScratch
|
|
1570
|
+
cartesianScratch,
|
|
1571
1571
|
);
|
|
1572
1572
|
AttributeCompression.octEncode(normal, vertex.encodedNormal);
|
|
1573
1573
|
}
|
|
@@ -1579,12 +1579,12 @@ function getVertexWithHeightAtCorner(
|
|
|
1579
1579
|
u,
|
|
1580
1580
|
v,
|
|
1581
1581
|
height,
|
|
1582
|
-
vertex
|
|
1582
|
+
vertex,
|
|
1583
1583
|
) {
|
|
1584
1584
|
vertex.height = height;
|
|
1585
1585
|
const normal = ellipsoid.geodeticSurfaceNormalCartographic(
|
|
1586
1586
|
cartographicScratch,
|
|
1587
|
-
cartesianScratch
|
|
1587
|
+
cartesianScratch,
|
|
1588
1588
|
);
|
|
1589
1589
|
AttributeCompression.octEncode(normal, vertex.encodedNormal);
|
|
1590
1590
|
}
|
|
@@ -1600,7 +1600,7 @@ function getCorner(
|
|
|
1600
1600
|
previousEdgeMeshes,
|
|
1601
1601
|
nextEdgeTiles,
|
|
1602
1602
|
nextEdgeMeshes,
|
|
1603
|
-
vertex
|
|
1603
|
+
vertex,
|
|
1604
1604
|
) {
|
|
1605
1605
|
const gotCorner =
|
|
1606
1606
|
getCornerFromEdge(
|
|
@@ -1611,7 +1611,7 @@ function getCorner(
|
|
|
1611
1611
|
false,
|
|
1612
1612
|
u,
|
|
1613
1613
|
v,
|
|
1614
|
-
vertex
|
|
1614
|
+
vertex,
|
|
1615
1615
|
) ||
|
|
1616
1616
|
getCornerFromEdge(
|
|
1617
1617
|
terrainFillMesh,
|
|
@@ -1621,7 +1621,7 @@ function getCorner(
|
|
|
1621
1621
|
true,
|
|
1622
1622
|
u,
|
|
1623
1623
|
v,
|
|
1624
|
-
vertex
|
|
1624
|
+
vertex,
|
|
1625
1625
|
);
|
|
1626
1626
|
if (gotCorner) {
|
|
1627
1627
|
return vertex;
|
|
@@ -1667,7 +1667,7 @@ function getCorner(
|
|
|
1667
1667
|
terrainFillMesh.southTiles,
|
|
1668
1668
|
TileEdge.NORTH,
|
|
1669
1669
|
u,
|
|
1670
|
-
v
|
|
1670
|
+
v,
|
|
1671
1671
|
);
|
|
1672
1672
|
} else {
|
|
1673
1673
|
// northwest
|
|
@@ -1679,7 +1679,7 @@ function getCorner(
|
|
|
1679
1679
|
terrainFillMesh.westTiles,
|
|
1680
1680
|
TileEdge.EAST,
|
|
1681
1681
|
u,
|
|
1682
|
-
v
|
|
1682
|
+
v,
|
|
1683
1683
|
);
|
|
1684
1684
|
}
|
|
1685
1685
|
} else if (v === 0.0) {
|
|
@@ -1692,7 +1692,7 @@ function getCorner(
|
|
|
1692
1692
|
terrainFillMesh.eastTiles,
|
|
1693
1693
|
TileEdge.WEST,
|
|
1694
1694
|
u,
|
|
1695
|
-
v
|
|
1695
|
+
v,
|
|
1696
1696
|
);
|
|
1697
1697
|
} else {
|
|
1698
1698
|
// northeast
|
|
@@ -1704,7 +1704,7 @@ function getCorner(
|
|
|
1704
1704
|
terrainFillMesh.northTiles,
|
|
1705
1705
|
TileEdge.SOUTH,
|
|
1706
1706
|
u,
|
|
1707
|
-
v
|
|
1707
|
+
v,
|
|
1708
1708
|
);
|
|
1709
1709
|
}
|
|
1710
1710
|
|
|
@@ -1715,7 +1715,7 @@ function getCorner(
|
|
|
1715
1715
|
u,
|
|
1716
1716
|
v,
|
|
1717
1717
|
height,
|
|
1718
|
-
vertex
|
|
1718
|
+
vertex,
|
|
1719
1719
|
);
|
|
1720
1720
|
return vertex;
|
|
1721
1721
|
}
|
|
@@ -1732,7 +1732,7 @@ function getClosestHeightToCorner(
|
|
|
1732
1732
|
nextTiles,
|
|
1733
1733
|
nextEdge,
|
|
1734
1734
|
u,
|
|
1735
|
-
v
|
|
1735
|
+
v,
|
|
1736
1736
|
) {
|
|
1737
1737
|
const height1 = getNearestHeightOnEdge(
|
|
1738
1738
|
previousMeshes,
|
|
@@ -1740,7 +1740,7 @@ function getClosestHeightToCorner(
|
|
|
1740
1740
|
false,
|
|
1741
1741
|
previousEdge,
|
|
1742
1742
|
u,
|
|
1743
|
-
v
|
|
1743
|
+
v,
|
|
1744
1744
|
);
|
|
1745
1745
|
const height2 = getNearestHeightOnEdge(
|
|
1746
1746
|
nextMeshes,
|
|
@@ -1748,7 +1748,7 @@ function getClosestHeightToCorner(
|
|
|
1748
1748
|
true,
|
|
1749
1749
|
nextEdge,
|
|
1750
1750
|
u,
|
|
1751
|
-
v
|
|
1751
|
+
v,
|
|
1752
1752
|
);
|
|
1753
1753
|
if (defined(height1) && defined(height2)) {
|
|
1754
1754
|
// It would be slightly better to do a weighted average of the two heights
|
|
@@ -1769,7 +1769,7 @@ function addEdge(
|
|
|
1769
1769
|
edgeTiles,
|
|
1770
1770
|
edgeMeshes,
|
|
1771
1771
|
tileEdge,
|
|
1772
|
-
heightRange
|
|
1772
|
+
heightRange,
|
|
1773
1773
|
) {
|
|
1774
1774
|
for (let i = 0; i < edgeTiles.length; ++i) {
|
|
1775
1775
|
nextIndex = addEdgeMesh(
|
|
@@ -1781,7 +1781,7 @@ function addEdge(
|
|
|
1781
1781
|
edgeTiles[i],
|
|
1782
1782
|
edgeMeshes[i],
|
|
1783
1783
|
tileEdge,
|
|
1784
|
-
heightRange
|
|
1784
|
+
heightRange,
|
|
1785
1785
|
);
|
|
1786
1786
|
}
|
|
1787
1787
|
return nextIndex;
|
|
@@ -1796,21 +1796,21 @@ function addEdgeMesh(
|
|
|
1796
1796
|
edgeTile,
|
|
1797
1797
|
edgeMesh,
|
|
1798
1798
|
tileEdge,
|
|
1799
|
-
heightRange
|
|
1799
|
+
heightRange,
|
|
1800
1800
|
) {
|
|
1801
1801
|
// Handle copying edges across the anti-meridian.
|
|
1802
1802
|
let sourceRectangle = edgeTile.rectangle;
|
|
1803
1803
|
if (tileEdge === TileEdge.EAST && terrainFillMesh.tile.x === 0) {
|
|
1804
1804
|
sourceRectangle = Rectangle.clone(
|
|
1805
1805
|
edgeTile.rectangle,
|
|
1806
|
-
sourceRectangleScratch
|
|
1806
|
+
sourceRectangleScratch,
|
|
1807
1807
|
);
|
|
1808
1808
|
sourceRectangle.west -= CesiumMath.TWO_PI;
|
|
1809
1809
|
sourceRectangle.east -= CesiumMath.TWO_PI;
|
|
1810
1810
|
} else if (tileEdge === TileEdge.WEST && edgeTile.x === 0) {
|
|
1811
1811
|
sourceRectangle = Rectangle.clone(
|
|
1812
1812
|
edgeTile.rectangle,
|
|
1813
|
-
sourceRectangleScratch
|
|
1813
|
+
sourceRectangleScratch,
|
|
1814
1814
|
);
|
|
1815
1815
|
sourceRectangle.west += CesiumMath.TWO_PI;
|
|
1816
1816
|
sourceRectangle.east += CesiumMath.TWO_PI;
|
|
@@ -1859,12 +1859,12 @@ function addEdgeMesh(
|
|
|
1859
1859
|
let oneOverMercatorHeight;
|
|
1860
1860
|
if (sourceEncoding.hasWebMercatorT) {
|
|
1861
1861
|
southMercatorY = WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
1862
|
-
targetRectangle.south
|
|
1862
|
+
targetRectangle.south,
|
|
1863
1863
|
);
|
|
1864
1864
|
oneOverMercatorHeight =
|
|
1865
1865
|
1.0 /
|
|
1866
1866
|
(WebMercatorProjection.geodeticLatitudeToMercatorAngle(
|
|
1867
|
-
targetRectangle.north
|
|
1867
|
+
targetRectangle.north,
|
|
1868
1868
|
) -
|
|
1869
1869
|
southMercatorY);
|
|
1870
1870
|
}
|
|
@@ -1875,7 +1875,7 @@ function addEdgeMesh(
|
|
|
1875
1875
|
const uv = sourceEncoding.decodeTextureCoordinates(
|
|
1876
1876
|
sourceVertices,
|
|
1877
1877
|
index,
|
|
1878
|
-
uvScratch
|
|
1878
|
+
uvScratch,
|
|
1879
1879
|
);
|
|
1880
1880
|
transformTextureCoordinates(sourceTile, targetTile, uv, uv);
|
|
1881
1881
|
const u = uv.x;
|
|
@@ -1910,7 +1910,7 @@ function addEdgeMesh(
|
|
|
1910
1910
|
const position = sourceEncoding.decodePosition(
|
|
1911
1911
|
sourceVertices,
|
|
1912
1912
|
index,
|
|
1913
|
-
cartesianScratch
|
|
1913
|
+
cartesianScratch,
|
|
1914
1914
|
);
|
|
1915
1915
|
const height = sourceEncoding.decodeHeight(sourceVertices, index);
|
|
1916
1916
|
|
|
@@ -1919,7 +1919,7 @@ function addEdgeMesh(
|
|
|
1919
1919
|
normal = sourceEncoding.getOctEncodedNormal(
|
|
1920
1920
|
sourceVertices,
|
|
1921
1921
|
index,
|
|
1922
|
-
octEncodedNormalScratch
|
|
1922
|
+
octEncodedNormalScratch,
|
|
1923
1923
|
);
|
|
1924
1924
|
} else {
|
|
1925
1925
|
normal = octEncodedNormalScratch;
|
|
@@ -1932,7 +1932,7 @@ function addEdgeMesh(
|
|
|
1932
1932
|
const latitude = CesiumMath.lerp(
|
|
1933
1933
|
targetRectangle.south,
|
|
1934
1934
|
targetRectangle.north,
|
|
1935
|
-
v
|
|
1935
|
+
v,
|
|
1936
1936
|
);
|
|
1937
1937
|
webMercatorT =
|
|
1938
1938
|
(WebMercatorProjection.geodeticLatitudeToMercatorAngle(latitude) -
|
|
@@ -1944,7 +1944,7 @@ function addEdgeMesh(
|
|
|
1944
1944
|
if (encoding.hasGeodeticSurfaceNormals) {
|
|
1945
1945
|
geodeticSurfaceNormal = ellipsoid.geodeticSurfaceNormal(
|
|
1946
1946
|
position,
|
|
1947
|
-
normalScratch
|
|
1947
|
+
normalScratch,
|
|
1948
1948
|
);
|
|
1949
1949
|
}
|
|
1950
1950
|
|
|
@@ -1956,7 +1956,7 @@ function addEdgeMesh(
|
|
|
1956
1956
|
height,
|
|
1957
1957
|
normal,
|
|
1958
1958
|
webMercatorT,
|
|
1959
|
-
geodeticSurfaceNormal
|
|
1959
|
+
geodeticSurfaceNormal,
|
|
1960
1960
|
);
|
|
1961
1961
|
|
|
1962
1962
|
heightRange.minimumHeight = Math.min(heightRange.minimumHeight, height);
|
|
@@ -2034,7 +2034,7 @@ function getCornerFromEdge(
|
|
|
2034
2034
|
isNext,
|
|
2035
2035
|
u,
|
|
2036
2036
|
v,
|
|
2037
|
-
vertex
|
|
2037
|
+
vertex,
|
|
2038
2038
|
) {
|
|
2039
2039
|
let edgeVertices;
|
|
2040
2040
|
let compareU;
|
|
@@ -2085,13 +2085,13 @@ function getCornerFromEdge(
|
|
|
2085
2085
|
sourceMesh.encoding.decodeTextureCoordinates(
|
|
2086
2086
|
sourceMesh.vertices,
|
|
2087
2087
|
vertexIndex,
|
|
2088
|
-
uvScratch
|
|
2088
|
+
uvScratch,
|
|
2089
2089
|
);
|
|
2090
2090
|
const targetUv = transformTextureCoordinates(
|
|
2091
2091
|
sourceTile,
|
|
2092
2092
|
terrainFillMesh.tile,
|
|
2093
2093
|
uvScratch,
|
|
2094
|
-
uvScratch
|
|
2094
|
+
uvScratch,
|
|
2095
2095
|
);
|
|
2096
2096
|
if (targetUv.x === u && targetUv.y === v) {
|
|
2097
2097
|
// Vertex is good!
|
|
@@ -2100,31 +2100,32 @@ function getCornerFromEdge(
|
|
|
2100
2100
|
}
|
|
2101
2101
|
|
|
2102
2102
|
// The last vertex is not the one we need, try binary searching for the right one.
|
|
2103
|
-
vertexIndexIndex = binarySearch(
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2103
|
+
vertexIndexIndex = binarySearch(
|
|
2104
|
+
edgeVertices,
|
|
2105
|
+
compareU ? u : v,
|
|
2106
|
+
function (vertexIndex, textureCoordinate) {
|
|
2107
|
+
sourceMesh.encoding.decodeTextureCoordinates(
|
|
2108
|
+
sourceMesh.vertices,
|
|
2109
|
+
vertexIndex,
|
|
2110
|
+
uvScratch,
|
|
2111
|
+
);
|
|
2112
|
+
const targetUv = transformTextureCoordinates(
|
|
2113
|
+
sourceTile,
|
|
2114
|
+
terrainFillMesh.tile,
|
|
2115
|
+
uvScratch,
|
|
2116
|
+
uvScratch,
|
|
2117
|
+
);
|
|
2118
|
+
if (increasing) {
|
|
2119
|
+
if (compareU) {
|
|
2120
|
+
return targetUv.x - u;
|
|
2121
|
+
}
|
|
2122
|
+
return targetUv.y - v;
|
|
2123
|
+
} else if (compareU) {
|
|
2124
|
+
return u - targetUv.x;
|
|
2121
2125
|
}
|
|
2122
|
-
return targetUv.y
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
}
|
|
2126
|
-
return v - targetUv.y;
|
|
2127
|
-
});
|
|
2126
|
+
return v - targetUv.y;
|
|
2127
|
+
},
|
|
2128
|
+
);
|
|
2128
2129
|
|
|
2129
2130
|
if (vertexIndexIndex < 0) {
|
|
2130
2131
|
vertexIndexIndex = ~vertexIndexIndex;
|
|
@@ -2141,7 +2142,7 @@ function getCornerFromEdge(
|
|
|
2141
2142
|
u,
|
|
2142
2143
|
v,
|
|
2143
2144
|
compareU,
|
|
2144
|
-
vertex
|
|
2145
|
+
vertex,
|
|
2145
2146
|
);
|
|
2146
2147
|
return true;
|
|
2147
2148
|
}
|
|
@@ -2152,7 +2153,7 @@ function getCornerFromEdge(
|
|
|
2152
2153
|
edgeVertices[vertexIndexIndex],
|
|
2153
2154
|
u,
|
|
2154
2155
|
v,
|
|
2155
|
-
vertex
|
|
2156
|
+
vertex,
|
|
2156
2157
|
);
|
|
2157
2158
|
return true;
|
|
2158
2159
|
}
|
|
@@ -2175,7 +2176,7 @@ function computeOccludeePoint(
|
|
|
2175
2176
|
rectangle,
|
|
2176
2177
|
minimumHeight,
|
|
2177
2178
|
maximumHeight,
|
|
2178
|
-
result
|
|
2179
|
+
result,
|
|
2179
2180
|
) {
|
|
2180
2181
|
const ellipsoidalOccluder = tileProvider.quadtree._occluders.ellipsoid;
|
|
2181
2182
|
const ellipsoid = ellipsoidalOccluder.ellipsoid;
|
|
@@ -2186,35 +2187,35 @@ function computeOccludeePoint(
|
|
|
2186
2187
|
rectangle.south,
|
|
2187
2188
|
maximumHeight,
|
|
2188
2189
|
ellipsoid,
|
|
2189
|
-
cornerPositions[0]
|
|
2190
|
+
cornerPositions[0],
|
|
2190
2191
|
);
|
|
2191
2192
|
Cartesian3.fromRadians(
|
|
2192
2193
|
rectangle.east,
|
|
2193
2194
|
rectangle.south,
|
|
2194
2195
|
maximumHeight,
|
|
2195
2196
|
ellipsoid,
|
|
2196
|
-
cornerPositions[1]
|
|
2197
|
+
cornerPositions[1],
|
|
2197
2198
|
);
|
|
2198
2199
|
Cartesian3.fromRadians(
|
|
2199
2200
|
rectangle.west,
|
|
2200
2201
|
rectangle.north,
|
|
2201
2202
|
maximumHeight,
|
|
2202
2203
|
ellipsoid,
|
|
2203
|
-
cornerPositions[2]
|
|
2204
|
+
cornerPositions[2],
|
|
2204
2205
|
);
|
|
2205
2206
|
Cartesian3.fromRadians(
|
|
2206
2207
|
rectangle.east,
|
|
2207
2208
|
rectangle.north,
|
|
2208
2209
|
maximumHeight,
|
|
2209
2210
|
ellipsoid,
|
|
2210
|
-
cornerPositions[3]
|
|
2211
|
+
cornerPositions[3],
|
|
2211
2212
|
);
|
|
2212
2213
|
|
|
2213
2214
|
return ellipsoidalOccluder.computeHorizonCullingPointPossiblyUnderEllipsoid(
|
|
2214
2215
|
center,
|
|
2215
2216
|
cornerPositions,
|
|
2216
2217
|
minimumHeight,
|
|
2217
|
-
result
|
|
2218
|
+
result,
|
|
2218
2219
|
);
|
|
2219
2220
|
}
|
|
2220
2221
|
export default TerrainFillMesh;
|