@arcgis/core 6.0.0-next.57 → 6.0.0-next.59
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/Graphic.d.ts +1 -0
- package/WebLinkChart.d.ts +0 -12
- package/WebLinkChart.js +1 -1
- package/applications/Components/OrientedImageryViewer/imageMeasurementUtils.js +1 -1
- package/applications/SceneViewer/sceneViewerUtils.d.ts +74 -0
- package/applications/SceneViewer/sceneViewerUtils.js +1 -1
- package/applications/WebEditor/sketchUtils.js +1 -1
- package/arcade/arcadeCompiler.js +5 -5
- package/arcade/containerUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/sources/FeatureLayerDynamic.js +1 -1
- package/arcade/featureset/sources/FeatureLayerMemory.js +1 -1
- package/arcade/featureset/support/shared.js +1 -1
- package/arcade/featureset/support/sqlUtils.js +1 -1
- package/arcgisGlobal.d.ts +2 -0
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/075e6c60e741482e673f.js +1 -0
- package/assets/esri/core/workers/chunks/076c2098570ee885d117.js +1 -0
- package/assets/esri/core/workers/chunks/091ce6b3de590e1d9ff6.js +1 -0
- package/assets/esri/core/workers/chunks/099dec4103f6e7556eb0.js +1 -0
- package/assets/esri/core/workers/chunks/{77267e0807cbbc00496d.js → 0be55d9bab7c3510a7f2.js} +1 -1
- package/assets/esri/core/workers/chunks/{da69e8cd52aa77aa4c2c.js → 0fc1facd26c9ef96e081.js} +1 -1
- package/assets/esri/core/workers/chunks/{f97dc99afe3375fc8e16.js → 1179a3574c580f7ce390.js} +1 -1
- package/assets/esri/core/workers/chunks/129140104be2620c0382.js +1 -0
- package/assets/esri/core/workers/chunks/1295fcf866e7347b2d53.js +1 -0
- package/assets/esri/core/workers/chunks/16219f0c56d6f6213c24.js +1 -0
- package/assets/esri/core/workers/chunks/185b317eec95f3370970.js +1 -0
- package/assets/esri/core/workers/chunks/1bdef2e142e78341fec0.js +1 -0
- package/assets/esri/core/workers/chunks/1ce0bf4ff14af8a68a5c.js +1 -0
- package/assets/esri/core/workers/chunks/1f1515313baeecc095a2.js +1 -0
- package/assets/esri/core/workers/chunks/1f710c91a82f6fd3d0f6.js +1 -0
- package/assets/esri/core/workers/chunks/{1894c39dabc78e7a5af8.js → 1fad7a7211bb8c9b58e3.js} +1 -1
- package/assets/esri/core/workers/chunks/24374aaa6fb3e12960d1.js +1 -0
- package/assets/esri/core/workers/chunks/24aa7b81814b4e519b01.js +1 -0
- package/assets/esri/core/workers/chunks/{c8c79d21dfce5695a089.js → 2b69fdf51b6f0b2abb75.js} +1 -1
- package/assets/esri/core/workers/chunks/2ba9b3b4d49eb2740a42.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3297014f063fb4bc9.js +1 -0
- package/assets/esri/core/workers/chunks/2eb3cec44ce7587980a4.js +1 -0
- package/assets/esri/core/workers/chunks/2ee3cd6b2e5274932d31.js +1 -0
- package/assets/esri/core/workers/chunks/31df02c6f5b04a143ae6.js +1 -0
- package/assets/esri/core/workers/chunks/3a1510650ce8de7edec8.js +1 -0
- package/assets/esri/core/workers/chunks/3b0933cea2a902a26bb7.js +1 -0
- package/assets/esri/core/workers/chunks/3d96676b94e8ecb6a4d1.js +1 -0
- package/assets/esri/core/workers/chunks/3edfd8ecf000b00a4a92.js +1 -0
- package/assets/esri/core/workers/chunks/{f053cbfe671bd14c7d5b.js → 419d8116d8e7faccfed5.js} +1 -1
- package/assets/esri/core/workers/chunks/41d57b45cc2361305af3.js +1 -0
- package/assets/esri/core/workers/chunks/42ee1f8732e644371ea9.js +1 -0
- package/assets/esri/core/workers/chunks/4309f3e72c6332e01d75.js +1 -0
- package/assets/esri/core/workers/chunks/44ca7a56fb28227fdcbf.js +1 -0
- package/assets/esri/core/workers/chunks/4537f0866e903d2e9bb9.js +1 -0
- package/assets/esri/core/workers/chunks/49f61832e0d3b24e1608.js +1 -0
- package/assets/esri/core/workers/chunks/4a45505fb9a40b503672.js +29 -0
- package/assets/esri/core/workers/chunks/4b456c1f26d70392f7d4.js +1 -0
- package/assets/esri/core/workers/chunks/{28fae7da8cc4ae7a83e4.js → 4c510b1caffeec80dc6b.js} +1 -1
- package/assets/esri/core/workers/chunks/4ce5c9b658ba79a0b668.js +1 -0
- package/assets/esri/core/workers/chunks/{41694ee8990e799da225.js → 4d8f23b2e6721fb5b289.js} +1 -1
- package/assets/esri/core/workers/chunks/4fb8708666a614df583d.js +1 -0
- package/assets/esri/core/workers/chunks/4feec96a312dcc137911.js +1 -0
- package/assets/esri/core/workers/chunks/52ad9306fd40d488376d.js +1 -0
- package/assets/esri/core/workers/chunks/5375bdf46b602b19fa86.js +1 -0
- package/assets/esri/core/workers/chunks/549a8e7313f75ea3f85b.js +1 -0
- package/assets/esri/core/workers/chunks/55f97942c58455f47975.js +1 -0
- package/assets/esri/core/workers/chunks/566d72534d694c318e30.js +1 -0
- package/assets/esri/core/workers/chunks/5ce00674305e5716d27b.js +1 -0
- package/assets/esri/core/workers/chunks/5e032d209df500fad321.js +1 -0
- package/assets/esri/core/workers/chunks/5ea8cdc28a81744913cd.js +1 -0
- package/assets/esri/core/workers/chunks/61565d4674cf77cbf1dd.js +1 -0
- package/assets/esri/core/workers/chunks/{d296c9561f6a6aeff973.js → 68b8dff748f1ef588653.js} +1 -1
- package/assets/esri/core/workers/chunks/{6d99e7e1aa007a6f1039.js → 69316db52d7bed746879.js} +1 -1
- package/assets/esri/core/workers/chunks/69384a9703abee1903c5.js +1 -0
- package/assets/esri/core/workers/chunks/6992a7728451c5a7b673.js +1 -0
- package/assets/esri/core/workers/chunks/69e5efe1acbdaddee90d.js +1 -0
- package/assets/esri/core/workers/chunks/6b2e09e43f449020d5ad.js +1 -0
- package/assets/esri/core/workers/chunks/6b5f8bf8b3480910666d.js +1 -0
- package/assets/esri/core/workers/chunks/70fe8b90f174ec64db2e.js +1 -0
- package/assets/esri/core/workers/chunks/720356fc6d5e18008471.js +1 -0
- package/assets/esri/core/workers/chunks/{3869ea1be105eaad4a38.js → 7328aca34c95fd0fc752.js} +1 -1
- package/assets/esri/core/workers/chunks/{be0133fa63c5d6545a7f.js → 75667b1427a7f02f2cda.js} +33 -32
- package/assets/esri/core/workers/chunks/{b4018b21a03c0c909d23.js → 75a48b122254deb3ad59.js} +1 -1
- package/assets/esri/core/workers/chunks/789567124c4a15235952.js +1 -0
- package/assets/esri/core/workers/chunks/{a24dc5350af001db417a.js → 7affab0d0692bdb76036.js} +1 -1
- package/assets/esri/core/workers/chunks/{b6e628b5d2643af4c19b.js → 7b4063f45b45ad8a7289.js} +1 -1
- package/assets/esri/core/workers/chunks/7c22d3669087f38c92b9.js +1 -0
- package/assets/esri/core/workers/chunks/7cb7bdc30f970eb9ff7f.js +1 -0
- package/assets/esri/core/workers/chunks/7d71cf65bbc1b3308856.js +1 -0
- package/assets/esri/core/workers/chunks/81cdb9705f7eee9e792f.js +1 -0
- package/assets/esri/core/workers/chunks/821003fe1be30d5d29aa.js +1 -0
- package/assets/esri/core/workers/chunks/822b9c1e172c835b9624.js +1 -0
- package/assets/esri/core/workers/chunks/{a7dfca326883384d2751.js → 823228f1fa6ba4e8bff2.js} +1 -1
- package/assets/esri/core/workers/chunks/84021d57822f374217ef.js +1 -0
- package/assets/esri/core/workers/chunks/847ec6b337cfb2e4a15b.js +1 -0
- package/assets/esri/core/workers/chunks/84f41ddd7366bfbf5b25.js +1 -0
- package/assets/esri/core/workers/chunks/{c6e7c95391a54978402b.js → 893363ee500fc1288781.js} +1 -1
- package/assets/esri/core/workers/chunks/8b0cdbbf5c81283eae13.js +1 -0
- package/assets/esri/core/workers/chunks/{7850e306d7cd12653b23.js → 90de2f93b0ba1eb337fd.js} +1 -1
- package/assets/esri/core/workers/chunks/91b0035e3eae9e452fbc.js +1 -0
- package/assets/esri/core/workers/chunks/93262d3616ac0cc4b532.js +1 -0
- package/assets/esri/core/workers/chunks/956810d6f553c2198aae.js +1 -0
- package/assets/esri/core/workers/chunks/9748a0db6451336d51ef.js +1 -0
- package/assets/esri/core/workers/chunks/{69a09c6acb5ae03c67f6.js → 985ce51da8ae4984a4db.js} +1 -1
- package/assets/esri/core/workers/chunks/9bbff9230298b1bac46a.js +1 -0
- package/assets/esri/core/workers/chunks/9cae59db5b9cb37baea9.js +1 -0
- package/assets/esri/core/workers/chunks/{ed2626a895ca1d4a7216.js → 9dbb9e74754392b066a8.js} +1 -1
- package/assets/esri/core/workers/chunks/9dd3863b9d7c1a5ea20a.js +1 -0
- package/assets/esri/core/workers/chunks/9e62cfcb4e0188d51294.js +1 -0
- package/assets/esri/core/workers/chunks/a27c2edd7e043643cdd1.js +1 -0
- package/assets/esri/core/workers/chunks/a2a3edec2ee31273d609.js +1 -0
- package/assets/esri/core/workers/chunks/{d0e8d0f8b4e4cc13e837.js → a301aa62a03d3618eba9.js} +1 -1
- package/assets/esri/core/workers/chunks/a39d595fc11afedc1875.js +1 -0
- package/assets/esri/core/workers/chunks/a57b506c538e2186909d.js +1 -0
- package/assets/esri/core/workers/chunks/a722114f01e66a608cec.js +1 -0
- package/assets/esri/core/workers/chunks/{5bda285f6ecf725676b3.js → a7b4821fd3080cf2756f.js} +1 -1
- package/assets/esri/core/workers/chunks/a8d91c2654c5012400b4.js +1 -0
- package/assets/esri/core/workers/chunks/aa70d98e6bcbd06a8461.js +1 -0
- package/assets/esri/core/workers/chunks/add538f52c7bcfd154da.js +1 -0
- package/assets/esri/core/workers/chunks/ae0b0a562f0ab57e1883.js +1 -0
- package/assets/esri/core/workers/chunks/b2c3652c8ce9597dcf89.js +1 -0
- package/assets/esri/core/workers/chunks/b725d944ecd5da02fd9e.js +1 -0
- package/assets/esri/core/workers/chunks/b7fbbbeabaa5bfcdeabc.js +1 -0
- package/assets/esri/core/workers/chunks/{70ead4c231cba4084cf4.js → b856ef3a949ca06a4af5.js} +1 -1
- package/assets/esri/core/workers/chunks/{ae2cd50c2b938b39417b.js → b8b4f68305a4f654fa75.js} +1 -1
- package/assets/esri/core/workers/chunks/{97107e64407fa6825620.js → ba324fd300b6e6a584ae.js} +1 -1
- package/assets/esri/core/workers/chunks/bc40b96080346b91e507.js +1 -0
- package/assets/esri/core/workers/chunks/bd8ee0205f0a01d6d4d7.js +1 -0
- package/assets/esri/core/workers/chunks/c5ca8245113576b35acc.js +1 -0
- package/assets/esri/core/workers/chunks/{c7a0c4ca37ebd1d98cf1.js → c629a676b707138e7a1c.js} +1 -1
- package/assets/esri/core/workers/chunks/c8a1aa90ec6d455ff82d.js +1 -0
- package/assets/esri/core/workers/chunks/c8dd8b67100177109619.js +1 -0
- package/assets/esri/core/workers/chunks/c8eb8744f1ed9d1897dc.js +1 -0
- package/assets/esri/core/workers/chunks/ccc89208aad7206aabd9.js +1 -0
- package/assets/esri/core/workers/chunks/cebd6732fe573f79849c.js +1 -0
- package/assets/esri/core/workers/chunks/{c5ddf8b347c31fe772a3.js → d45769f8a02abe5d2917.js} +1 -1
- package/assets/esri/core/workers/chunks/d4b62e78bb27272a5f83.js +1 -0
- package/assets/esri/core/workers/chunks/d52b2a591e5e6abaa133.js +1 -0
- package/assets/esri/core/workers/chunks/{0978e12dd6a1cbc50b80.js → d572b125bed40a4d02b1.js} +1 -1
- package/assets/esri/core/workers/chunks/d65206fea850b1fc0712.js +1 -0
- package/assets/esri/core/workers/chunks/d6a42c936ead00ab7ad4.js +1 -0
- package/assets/esri/core/workers/chunks/d77887edc10d5be39ac9.js +1 -0
- package/assets/esri/core/workers/chunks/d7b9c16fe73f50a41099.js +1 -0
- package/assets/esri/core/workers/chunks/{423c7a981b9a06b76cbd.js → d833fc1fe63c9917ae3e.js} +1 -1
- package/assets/esri/core/workers/chunks/{7b6fd287e7043ad50f4e.js → d9bf0be2323e9df55834.js} +1 -1
- package/assets/esri/core/workers/chunks/dab98890d77a6b0b2741.js +1 -0
- package/assets/esri/core/workers/chunks/dca6abf260c0bfb7c9c0.js +1 -0
- package/assets/esri/core/workers/chunks/e2ac387e154d68fd10ca.js +1 -0
- package/assets/esri/core/workers/chunks/{fc8cb947a677aa12348d.js → e38ffdb19132529beda7.js} +1 -1
- package/assets/esri/core/workers/chunks/e39259ff441fb67cd3e4.js +1 -0
- package/assets/esri/core/workers/chunks/e3c152eeaa1c95f0f2d2.js +1 -0
- package/assets/esri/core/workers/chunks/e4ae0fad312467f218df.js +1 -0
- package/assets/esri/core/workers/chunks/e50cc686db878d0a9399.js +1 -0
- package/assets/esri/core/workers/chunks/e7cd5eeb15d3783f803d.js +1 -0
- package/assets/esri/core/workers/chunks/e8042584e422044ca1d1.js +1 -0
- package/assets/esri/core/workers/chunks/e89640667b71c1bb4ee3.js +1 -0
- package/assets/esri/core/workers/chunks/e9649aa2d0fdd28d91ac.js +1 -0
- package/assets/esri/core/workers/chunks/ee31801144602ce816d3.js +1 -0
- package/assets/esri/core/workers/chunks/eff8a1a880e0eb1a6814.js +1 -0
- package/assets/esri/core/workers/chunks/f2b7c61462f530d812c4.js +1 -0
- package/assets/esri/core/workers/chunks/f56404d401dfbce29473.js +1 -0
- package/assets/esri/core/workers/chunks/f87416f2aa791cd1bebe.js +1 -0
- package/assets/esri/core/workers/chunks/{f3744b12a5d0d8ca8621.js → fa65aafac2b99478c32a.js} +1 -1
- package/assets/esri/core/workers/chunks/fb14a0c8d2edf868838c.js +1 -0
- package/assets/esri/core/workers/chunks/fb8a24aa04bd2fa43241.js +1 -0
- package/assets/esri/core/workers/chunks/fbb27d2cef962f725180.js +1 -0
- package/assets/esri/core/workers/chunks/{3c6e7dcb79d13e8aecc5.js → fc965ace82bef4c6111b.js} +1 -1
- package/assets/esri/core/workers/chunks/{5954f02c3901b28d8e73.js → fd9382e5207b6da74b91.js} +1 -1
- package/assets/esri/core/workers/chunks/fdb370546be4ad552959.js +1 -0
- package/assets/esri/core/workers/chunks/fefac70ebe29dff54b4c.js +1 -0
- package/chunks/BlurEmission.glsl.js +7 -20
- package/chunks/Bufferer-CclWhXVb.js +1 -1
- package/chunks/ColorMaterial.glsl.js +1 -1
- package/chunks/Component.glsl.js +1 -1
- package/chunks/EmissionComposite.glsl.js +2 -2
- package/chunks/Envelope.js +1 -1
- package/chunks/Envelope2D.js +1 -1
- package/chunks/Fog.glsl.js +5 -5
- package/chunks/GeodeticDistanceCalculator-zRp89-dW.js +1 -1
- package/chunks/ImageMaterial.glsl.js +1 -1
- package/chunks/LineMarker.glsl.js +2 -2
- package/chunks/MultiPathImpl.js +1 -1
- package/chunks/OperatorGeodesicBuffer.js +1 -1
- package/chunks/OperatorGeodeticArea.js +1 -1
- package/chunks/OperatorShapePreservingProject.js +1 -1
- package/chunks/Point2D.js +1 -1
- package/chunks/RealisticAtmosphere.glsl.js +7 -9
- package/chunks/RealisticAtmosphereCompositing.glsl.js +6 -10
- package/chunks/RibbonLine.glsl.js +154 -108
- package/chunks/Terrain.glsl.js +27 -27
- package/chunks/UPCPointRenderer.glsl.js +100 -0
- package/chunks/UnitFactory.js +1 -1
- package/chunks/Water.glsl.js +24 -24
- package/chunks/arcade.js +1 -1
- package/chunks/arcgis-knowledge-client-core-simd.js +4 -4
- package/chunks/arcgis-knowledge-client-core.js +4 -4
- package/chunks/array.js +1 -1
- package/chunks/basis_encoder.js +3 -3
- package/chunks/basis_transcoder.js +2 -2
- package/chunks/draco_mesh_decoder.js +2 -2
- package/chunks/dxt_encoder.js +3 -3
- package/chunks/i3s.js +2 -2
- package/chunks/languageUtils.js +1 -1
- package/chunks/lclayout.js +3 -3
- package/chunks/lerc-wasm.js +1 -1
- package/chunks/lyr3DWorker.js +2 -2
- package/chunks/pe.js +1 -1
- package/chunks/projector.js +1 -1
- package/chunks/qb3-wasm.js +1 -1
- package/chunks/vxlLayer.js +2 -2
- package/colorUtils.js +1 -1
- package/config.js +1 -1
- package/core/AsyncUpdate.js +1 -1
- package/core/Clonable.js +1 -1
- package/core/Identifiable.js +1 -1
- package/core/Loadable.js +1 -1
- package/core/MultiOriginJSONSupport.js +1 -1
- package/core/NumericIdentifiable.js +1 -1
- package/core/Promise.js +1 -1
- package/core/ReadOnlyMultiOriginJSONSupport.js +1 -1
- package/core/accessorSupport/metadata.js +1 -1
- package/core/accessorSupport/trackingUtils.js +1 -1
- package/core/asyncUtils.js +1 -1
- package/core/handleUtils.js +1 -1
- package/core/mapCollectionUtils.js +1 -1
- package/core/reactiveUtils.js +1 -1
- package/core/sql/SqlTimestampOffset.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/writeUtils.js +1 -1
- package/core/sql.js +1 -1
- package/core/urlUtils.js +1 -1
- package/core/workers/workers.js +1 -1
- package/geohash/GeohashCell.js +1 -1
- package/geohash/GeohashTree.js +1 -1
- package/geometry/coordinateConversion/CoordinateConversionModel.d.ts +11 -56
- package/geometry/coordinateConversion/support/Conversion.d.ts +5 -17
- package/geometry/coordinateConversion/support/Format.d.ts +6 -30
- package/geometry/coordinateConversion/types.d.ts +15 -15
- package/geometry/operators/reshapeOperator.js +1 -1
- package/geometry/support/MeshMaterial.js +1 -1
- package/geometry/support/MeshMaterialMetallicRoughness.js +1 -1
- package/geometry/support/meshUtils/elevationSampler.js +1 -1
- package/graphic/AggregateGraphicOrigin.js +1 -1
- package/graphic/AnnotationFeatureGraphicOrigin.js +1 -1
- package/graphic/BuildingGraphicOrigin.js +1 -1
- package/graphic/CSVGraphicOrigin.js +1 -1
- package/graphic/CatalogGraphicOrigin.js +1 -1
- package/graphic/DimensionFeatureGraphicOrigin.js +1 -1
- package/graphic/FeatureGraphicOrigin.js +1 -1
- package/graphic/GeoJSONGraphicOrigin.js +1 -1
- package/graphic/GeoRSSGraphicOrigin.js +1 -1
- package/graphic/ImageryGraphicOrigin.js +1 -1
- package/graphic/ImageryTileGraphicOrigin.js +1 -1
- package/graphic/KMLGraphicOrigin.js +1 -1
- package/graphic/KnowledgeGraphGraphicOrigin.js +1 -1
- package/graphic/LinkChartGraphicOrigin.js +1 -1
- package/graphic/MapImageGraphicOrigin.js +1 -1
- package/graphic/MapNotesGraphicOrigin.js +1 -1
- package/graphic/OGCFeatureGraphicOrigin.js +1 -1
- package/graphic/OrientedImageryGraphicOrigin.js +1 -1
- package/graphic/ParquetGraphicOrigin.js +1 -1
- package/graphic/PointCloudGraphicOrigin.js +1 -1
- package/graphic/SceneGraphicOrigin.js +1 -1
- package/graphic/SketchGraphicOrigin.js +1 -1
- package/graphic/StreamGraphicOrigin.js +1 -1
- package/graphic/SubtypeGroupGraphicOrigin.js +1 -1
- package/graphic/TileGraphicOrigin.js +1 -1
- package/graphic/TrackGraphicOrigin.js +1 -1
- package/graphic/VectorTileGraphicOrigin.js +1 -1
- package/graphic/VoxelGraphicOrigin.js +1 -1
- package/graphic/WCSGraphicOrigin.js +1 -1
- package/graphic/WFSGraphicOrigin.js +1 -1
- package/graphic/getLayerViewLayer.js +2 -0
- package/identity/IdentityManagerBase.js +1 -1
- package/interfaces.d.ts +8 -0
- package/kernel.js +1 -1
- package/layers/ElevationLayer.js +1 -1
- package/layers/LinkChartLayer.d.ts +1 -1
- package/layers/LinkChartLayer.js +1 -1
- package/layers/Lyr3DWasmPerSceneView.js +1 -1
- package/layers/PointCloudLayer.js +3 -3
- package/layers/VectorTileLayer.d.ts +17 -10
- package/layers/VoxelWasmPerSceneView.js +1 -1
- package/layers/WMTSLayer.js +1 -1
- package/layers/graphics/sources/CSVSource.js +1 -1
- package/layers/graphics/sources/GeoJSONSource.js +1 -1
- package/layers/knowledgeGraph/KnowledgeGraphSublayerBase.js +1 -1
- package/layers/mixins/APIKeyMixin.js +1 -1
- package/layers/mixins/ArcGISCachedService.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/mixins/ArcGISService.js +1 -1
- package/layers/mixins/BlendLayer.js +1 -1
- package/layers/mixins/CustomParametersMixin.js +1 -1
- package/layers/mixins/DataElementMixin.js +1 -1
- package/layers/mixins/DataSeriesLayer.js +1 -1
- package/layers/mixins/DisplayFilteredLayer.js +1 -1
- package/layers/mixins/EditBusLayer.js +1 -1
- package/layers/mixins/FeatureEffectLayer.js +1 -1
- package/layers/mixins/FeatureLayerBase.js +1 -1
- package/layers/mixins/FeatureReductionLayer.js +1 -1
- package/layers/mixins/HeightModelInfoMixin.js +1 -1
- package/layers/mixins/OperationalLayer.js +1 -1
- package/layers/mixins/OrderedLayer.js +1 -1
- package/layers/mixins/PortalLayer.js +1 -1
- package/layers/mixins/PublishableLayer.js +1 -1
- package/layers/mixins/RasterJobHandlerMixin.js +1 -1
- package/layers/mixins/RasterPresetRendererMixin.js +1 -1
- package/layers/mixins/RefreshableLayer.js +1 -1
- package/layers/mixins/ReloadableLayer.js +1 -1
- package/layers/mixins/ScaleRangeLayer.js +1 -1
- package/layers/mixins/SceneService.js +1 -1
- package/layers/mixins/SublayersOwner.js +1 -1
- package/layers/mixins/TemporalLayer.js +1 -1
- package/layers/mixins/TrackableLayer.js +1 -1
- package/layers/orientedImagery/transformations/utils.js +1 -1
- package/layers/raster/datasets/TIFFRaster.js +1 -1
- package/layers/raster/datasets/pixelReader.js +1 -1
- package/layers/raster/datasets/xmlUtilities.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/Qb3.js +1 -1
- package/layers/raster/formats/TiffDecoder.js +1 -1
- package/layers/raster/formats/blosc.js +1 -1
- package/layers/raster/formats/tiffParser.js +1 -1
- package/layers/raster/formats/tiffSpatialReferenceUtils.js +2 -0
- package/layers/raster/formats/tiffTag.js +1 -1
- package/layers/raster/functions/colormaps.js +1 -1
- package/layers/support/TitleCreator.js +1 -1
- package/layers/support/WMTSSublayer.js +1 -1
- package/layers/support/geospatialPDFUtils.js +1 -1
- package/layers/support/imageUtils.js +1 -1
- package/layers/support/labelUtils.js +1 -1
- package/layers/support/tiles3DUtils.js +1 -1
- package/layers/video/VideoController.js +14 -14
- package/legend/ActiveLayerInfo.js +1 -1
- package/legend/support/sizeRampUtils.js +1 -1
- package/libs/basisu/BasisUEncoder.js +1 -1
- package/libs/basisu/BasisUTranscoder.js +1 -1
- package/libs/dracoMeshDecoder/dracoMeshDecoder.js +1 -1
- package/libs/dxtEncoder/DXTEncoder.js +1 -1
- package/libs/i3s/I3SModule.js +1 -1
- package/libs/librust-parquet/loadParquetModule.js +1 -1
- package/libs/librust-text/loadTextModule.js +1 -1
- package/libs/linkchartlayout/LinkChartLayout.js +1 -1
- package/libs/maquette-advanced-projector/projector.js +1 -1
- package/package.json +2 -2
- package/popup/FeatureModel.js +1 -1
- package/popup/FeaturesModel.d.ts +6 -0
- package/popup/FeaturesModel.js +1 -1
- package/portal/PortalUser.js +1 -1
- package/renderers/mixins/VisualVariablesMixin.js +1 -1
- package/renderers/visualVariables/VisualVariableFactory.js +1 -1
- package/rest/identify.js +1 -1
- package/rest/knowledgeGraph/wasmInterface/knowledgeWasmAccess.js +1 -1
- package/rest/layerSources/utils.js +1 -1
- package/rest/networks/validateNetworkTopology.js +1 -1
- package/rest/support/AttributeBinsQuery.d.ts +41 -1
- package/rest/support/AttributeBinsQuery.js +1 -1
- package/rest/support/CameraInfoMixin.js +1 -1
- package/rest/support/NormalizationBinParametersMixin.js +1 -1
- package/rest/support/Query.d.ts +1 -2
- package/rest/support/generateRendererUtils.js +1 -1
- package/rest/versionManagement/gdbVersion/post.js +1 -1
- package/rest/versionManagement/gdbVersion/reconcile.js +1 -1
- package/rest/versionManagement/gdbVersion/serverVersionUtils.js +1 -1
- package/rest/versionManagement/gdbVersion/support/PostResult.d.ts +1 -1
- package/rest/versionManagement/gdbVersion/support/ReconcileResult.d.ts +1 -1
- package/smartMapping/raster/renderers/vectorField.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/statistics/histogram.js +1 -1
- package/smartMapping/statistics/types.d.ts +18 -0
- package/smartMapping/support/adapters/FeatureLayerAdapter.js +1 -1
- package/smartMapping/support/adapters/FeatureLayerBinningAdapter.js +1 -1
- package/smartMapping/support/adapters/support/histogramUtils.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/support/Theme.js +1 -1
- package/support/BasemapStyle.js +1 -1
- package/support/LayersMixin.js +1 -1
- package/support/TablesMixin.js +1 -1
- package/support/actions/ActionBase.d.ts +14 -2
- package/support/actions/ActionBase.js +1 -1
- package/support/actions/ActionButton.js +1 -1
- package/support/actions/ActionToggle.js +1 -1
- package/support/loadArcade.js +1 -1
- package/symbols/LineSymbol3DLayer.js +1 -1
- package/tables/support/templateUtils.js +1 -1
- package/versionManagement/VersionManagementService.d.ts +47 -1
- package/versionManagement/VersionManagementService.js +1 -1
- package/versionManagement/support/PostJobInfo.d.ts +61 -0
- package/versionManagement/support/PostJobInfo.js +2 -0
- package/versionManagement/support/ReconcileJobInfo.d.ts +61 -0
- package/versionManagement/support/ReconcileJobInfo.js +2 -0
- package/views/2d/engine/flow/styles/Imagery.js +1 -1
- package/views/2d/engine/flow/utils.js +1 -1
- package/views/2d/engine/vectorTiles/TextShaping.js +1 -1
- package/views/2d/engine/vectorTiles/TileHandler3D.js +1 -1
- package/views/2d/engine/vectorTiles/buckets/SymbolBucket.js +1 -1
- package/views/2d/engine/vectorTiles/shaders/VTLMaterial.js +1 -1
- package/views/2d/engine/webgl/GlyphWorker.js +1 -1
- package/views/2d/engine/webgl/cpuMapped/CpuMeshData.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/AFeatureShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/bitmapUtils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/raster/surface.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/shaders/utils.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/layerViewModuleImportUtils.js +1 -1
- package/views/2d/layers/BitmapTileLayerView2D.js +1 -1
- package/views/2d/layers/ImageryLayerView2D.js +1 -1
- package/views/2d/layers/LayerView2D.js +1 -1
- package/views/2d/layers/MapImageLayerView2D.js +1 -1
- package/views/2d/layers/TileLayerView2D.js +1 -1
- package/views/2d/layers/features/FeatureContainer.js +1 -1
- package/views/2d/layers/features/layerAdapters/AnnotationLayerAdapter.js +1 -1
- package/views/2d/layers/features/support/AttributeStore.js +1 -1
- package/views/2d/layers/features/support/DisplayIdGenerator.js +1 -1
- package/views/2d/layers/features/support/FeatureSetReader.js +1 -1
- package/views/2d/layers/support/visualVariableSimpleUtils.js +1 -1
- package/views/3d/analysis/ShadowCastAnalysisView3D.js +1 -1
- package/views/3d/layerViewModuleImportUtils.js +1 -1
- package/views/3d/layers/BuildingSublayerView3D.js +1 -1
- package/views/3d/layers/DynamicLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerView3D.js +1 -1
- package/views/3d/layers/FeatureLikeLayerViewBase3D.js +1 -1
- package/views/3d/layers/GaussianSplatLayerView3D.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/IntegratedMesh3DTilesLayerView3D.js +1 -1
- package/views/3d/layers/LayerView3D.js +1 -1
- package/views/3d/layers/Lyr3DWorker.js +1 -1
- package/views/3d/layers/PointCloudIntersector.js +2 -0
- package/views/3d/layers/PointCloudLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/TiledLayerView3D.js +1 -1
- package/views/3d/layers/UPCPointRenderer.js +2 -0
- package/views/3d/layers/UPCPointRendererNode.js +2 -0
- package/views/3d/layers/UpdatablePointCloudLayerView3D.js +2 -0
- package/views/3d/layers/graphics/Graphics3DExtrudeSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DLineSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/Graphics3DPolygonFillSymbolLayer.js +1 -1
- package/views/3d/layers/i3s/PointCloudHighlights.js +1 -1
- package/views/3d/layers/i3s/PointCloudNodeHighlights.js +2 -0
- package/views/3d/layers/i3s/PointCloudRenderer.js +1 -1
- package/views/3d/layers/i3s/PointCloudRendererNode.js +1 -1
- package/views/3d/layers/support/DefinitionExpressionSceneLayerView.js +1 -1
- package/views/3d/layers/support/GraphicsProcessorLayerView3D.js +1 -1
- package/views/3d/layers/support/PopupSceneLayerView.js +1 -1
- package/views/3d/layers/support/TemporalSceneLayerView.js +1 -1
- package/views/3d/layers/support/Tiles3DLayerViewRegistration.js +1 -1
- package/views/3d/state/utils/groundNavigationUtils.js +1 -1
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/QualitySettings.js +1 -1
- package/views/3d/support/cameraUtils.js +1 -1
- package/views/3d/support/engineContent/sdfPrimitives.js +1 -1
- package/views/3d/support/flow/FlowSubViewTiles3D.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/terrain/OverlayRenderer.js +1 -1
- package/views/3d/terrain/PatchGeometry.js +1 -1
- package/views/3d/terrain/PatchGeometryFactory.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl/RenderNode.js +1 -1
- package/views/3d/webgl-engine/collections/Component/DepthRange.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentData.glsl.js +9 -9
- package/views/3d/webgl-engine/collections/Component/RenderSubmitSystem.js +1 -1
- package/views/3d/webgl-engine/core/renderPasses/RenderPassManager.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/RibbonVertexPosition.glsl.js +19 -19
- package/views/3d/webgl-engine/core/shaderLibrary/outputEmission.glsl.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/{util/CloudsParallaxShading.glsl.js → renderClouds.glsl.js} +5 -4
- package/views/3d/webgl-engine/core/shaderLibrary/shading/LineStipple.glsl.js +21 -12
- package/views/3d/webgl-engine/core/shaderLibrary/shading/evaluateSceneLightingFragment.glsl.js +2 -2
- package/views/3d/webgl-engine/core/shaderLibrary/shading/forwardLocalUp.glsl.js +1 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/readShadow.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/Overlay.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/terrain/blendLayers.glsl.js +9 -9
- package/views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/glsl.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/ShaderTechniqueRepository.js +1 -1
- package/views/3d/webgl-engine/effects/RenderNodes.js +1 -1
- package/views/3d/webgl-engine/effects/RenderPluginManager.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphere.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereCompositing.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/atmosphere/RealisticAtmosphereConfiguration.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/fog/Fog.js +1 -1
- package/views/3d/webgl-engine/effects/glow/BlurEmission.glsl.js +1 -1
- package/views/3d/webgl-engine/effects/glow/applyEmissiveGlow.glsl.js +41 -59
- package/views/3d/webgl-engine/lib/EmissionComposite.glsl.js +1 -1
- package/views/3d/webgl-engine/lib/EmissionComposite.js +1 -1
- package/views/3d/webgl-engine/lib/GaussianSplatShadows.js +1 -1
- package/views/3d/webgl-engine/lib/PathGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/RenderGeometry.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/TriangleRangeBVH.js +1 -1
- package/views/3d/webgl-engine/lib/depthRangeUtils.js +1 -1
- package/views/3d/webgl-engine/lib/lodRendering/LodRenderer.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/LineCalloutMaterialBaseInstance.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/Water.glsl.js +1 -1
- package/views/3d/webgl-engine/materials/getWaterColor.glsl.js +15 -15
- package/views/3d/webgl-engine/materials/renderers/BufferCache.js +1 -1
- package/views/3d/webgl-engine/shaders/OutputColorHighlightOLID.glsl.js +12 -14
- package/views/3d/webgl-engine/shaders/RibbonLine.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/RibbonLineTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/Terrain.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/UPCPointRenderer.glsl.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechnique.js +2 -0
- package/views/3d/webgl-engine/shaders/UPCPointRendererTechniqueConfiguration.js +2 -0
- package/views/Attribution.js +2 -2
- package/views/BreakpointsOwner.js +1 -1
- package/views/DOMContainer.d.ts +3 -2
- package/views/DOMContainer.js +1 -1
- package/views/PopupView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/View.d.ts +29 -3
- package/views/View.js +1 -1
- package/views/Viewport2DBaseMixin.js +1 -1
- package/views/Viewport2DMixin.js +1 -1
- package/views/animation/pointToPoint/Animation.js +1 -1
- package/views/interactive/Tooltip.d.ts +1 -1
- package/views/interactive/Tooltip.js +1 -1
- package/views/interactive/tooltip/components/TooltipEditableField.js +1 -1
- package/views/interactive/tooltip/content/TooltipContent.js +1 -1
- package/views/interactive/tooltip/infos/DynamicTooltipInfo.js +1 -1
- package/views/interactive/tooltip/infos/TooltipInfoWithCoordinates.js +1 -1
- package/views/layers/MapImageLayerView.js +1 -1
- package/views/layers/PointCloudLayerView.js +1 -1
- package/views/layers/RefreshableLayerView.js +1 -1
- package/views/layers/WMSLayerView.js +1 -1
- package/views/overlay/ViewOverlay.js +1 -1
- package/views/support/flow/utils.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/views/types.d.ts +15 -0
- package/views/webgl/AllocationTracer.js +1 -1
- package/views/webgl/InstanceCounter.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/ShaderBuilder.js +23 -23
- package/views/webgl/ShaderTranspiler.js +1 -1
- package/views/webgl/capabilities/DisjointTimerQuery.js +1 -1
- package/views/webgl/capabilities.js +1 -1
- package/widgets/CoordinateConversion/CoordinateConversionViewModel.d.ts +1 -1
- package/widgets/CoordinateConversion/support/Conversion.d.ts +1 -0
- package/widgets/CoordinateConversion/support/Format.d.ts +1 -0
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Feature/support/FeatureContentMixin.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/widgets/FeatureTable/support/EditableColumnTemplateMixin.js +1 -1
- package/widgets/Legend/support/ActiveLayerInfo.js +1 -1
- package/widgets/Legend/support/sizeRampUtils.js +1 -1
- package/widgets/OrientedImageryViewer/adapters/sketch/DataCaptureAdapter.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/DrawHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/ImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/SketchHandlerMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedImageMeasurementMixin.js +1 -1
- package/widgets/OrientedImageryViewer/mixins/TriangulatedSketchHandlerMixin.js +1 -1
- package/widgets/ShadowCast/ShadowCastViewModel.js +1 -1
- package/widgets/Sketch/support/ResponsiveToolbar/ToolbarGroupBase.js +1 -1
- package/widgets/smartMapping/support/utils.js +1 -1
- package/widgets/support/AnalysisViewModelMixin.js +1 -1
- package/widgets/support/AnchorElementViewModel.js +1 -1
- package/widgets/support/GoTo.js +1 -1
- package/widgets/support/InteractiveToolViewModelMixin.js +1 -1
- package/assets/esri/core/workers/chunks/0329fa3aa3403f1c243b.js +0 -1
- package/assets/esri/core/workers/chunks/04f09e1afda92cbe09f5.js +0 -1
- package/assets/esri/core/workers/chunks/0a97b1974367382cfdf5.js +0 -1
- package/assets/esri/core/workers/chunks/0b74d353f80974ff6fea.js +0 -1
- package/assets/esri/core/workers/chunks/0e100855bb3832a68e4b.js +0 -1
- package/assets/esri/core/workers/chunks/0ede8ba757fd0976d485.js +0 -1
- package/assets/esri/core/workers/chunks/0f39576806866cff777d.js +0 -1
- package/assets/esri/core/workers/chunks/0fea695721a818955abf.js +0 -1
- package/assets/esri/core/workers/chunks/10499abb7678e95d9f05.js +0 -1
- package/assets/esri/core/workers/chunks/110f78d5e78732750097.js +0 -1
- package/assets/esri/core/workers/chunks/1507297550c3cd1268e2.js +0 -1
- package/assets/esri/core/workers/chunks/21aa29039a95debd7f44.js +0 -1
- package/assets/esri/core/workers/chunks/29b74a3ff03d3c8b65dc.js +0 -1
- package/assets/esri/core/workers/chunks/2a84c9a81ec2bed3d4e5.js +0 -1
- package/assets/esri/core/workers/chunks/2ad6db80a508285a3e5d.js +0 -1
- package/assets/esri/core/workers/chunks/2b87d5b8931305b11ff6.js +0 -1
- package/assets/esri/core/workers/chunks/2f07dc632e51fddb2d48.js +0 -1
- package/assets/esri/core/workers/chunks/2f9adf0b809ce8797ebf.js +0 -1
- package/assets/esri/core/workers/chunks/3169d639ab54bf508e2c.js +0 -1
- package/assets/esri/core/workers/chunks/3354f1fa90f8ce4c8fde.js +0 -1
- package/assets/esri/core/workers/chunks/3809a8b3f31bb811d964.js +0 -1
- package/assets/esri/core/workers/chunks/38bba952c38af5a150e7.js +0 -1
- package/assets/esri/core/workers/chunks/3982409149571a827390.js +0 -1
- package/assets/esri/core/workers/chunks/3aea09191b737dc1de70.js +0 -1
- package/assets/esri/core/workers/chunks/3b11e4d2e69b7aea1d65.js +0 -1
- package/assets/esri/core/workers/chunks/3c1651e9e8d2e83d22df.js +0 -1
- package/assets/esri/core/workers/chunks/3df6631895d0a7109e00.js +0 -1
- package/assets/esri/core/workers/chunks/3e8d70039800f2395d66.js +0 -1
- package/assets/esri/core/workers/chunks/3f8d66d8447036f122ae.js +0 -1
- package/assets/esri/core/workers/chunks/420c6a14107a77ddad36.js +0 -1
- package/assets/esri/core/workers/chunks/421b8244d01736d82e7a.js +0 -1
- package/assets/esri/core/workers/chunks/457bd1bd37c67b61efe8.js +0 -1
- package/assets/esri/core/workers/chunks/48b60ff59afbae865de1.js +0 -1
- package/assets/esri/core/workers/chunks/4953314fd9afd52b6eec.js +0 -1
- package/assets/esri/core/workers/chunks/4cf8bddc3e0619e34424.js +0 -1
- package/assets/esri/core/workers/chunks/4d0bb5e4a1d789cc0d75.js +0 -1
- package/assets/esri/core/workers/chunks/4d8539674fc2e4fea03c.js +0 -1
- package/assets/esri/core/workers/chunks/5060be52a380fc4920f8.js +0 -1
- package/assets/esri/core/workers/chunks/5082cdc3e91e1c6d1070.js +0 -1
- package/assets/esri/core/workers/chunks/52ded087d19a93e29d93.js +0 -1
- package/assets/esri/core/workers/chunks/53bbb9aa6e4e4a0a8121.js +0 -1
- package/assets/esri/core/workers/chunks/54d3cb7d95d948998591.js +0 -1
- package/assets/esri/core/workers/chunks/560ebf5524ade7d1f85b.js +0 -1
- package/assets/esri/core/workers/chunks/5d75fcaded78f76efd3e.js +0 -1
- package/assets/esri/core/workers/chunks/5f7505ada0991cfbdd84.js +0 -1
- package/assets/esri/core/workers/chunks/601d668e70c5d72fe58c.js +0 -1
- package/assets/esri/core/workers/chunks/6737b2a4a70bbdafaf67.js +0 -1
- package/assets/esri/core/workers/chunks/6a202ef9ba9b89e09153.js +0 -1
- package/assets/esri/core/workers/chunks/6a339a47e765b9937dd7.js +0 -1
- package/assets/esri/core/workers/chunks/6c21964eb7c25c8b1e9a.js +0 -1
- package/assets/esri/core/workers/chunks/6fd10891506925560443.js +0 -29
- package/assets/esri/core/workers/chunks/71a05edd6f7f3197e621.js +0 -1
- package/assets/esri/core/workers/chunks/72b7e7b518c88b7569dd.js +0 -1
- package/assets/esri/core/workers/chunks/73918ca7fdf41272d941.js +0 -1
- package/assets/esri/core/workers/chunks/75274ac3ddf7c45f47d7.js +0 -1
- package/assets/esri/core/workers/chunks/7673217a688d739141e2.js +0 -1
- package/assets/esri/core/workers/chunks/76869c14dd7ffaae7eff.js +0 -1
- package/assets/esri/core/workers/chunks/7b156905d168bf973518.js +0 -1
- package/assets/esri/core/workers/chunks/7baa49055bc31618b56e.js +0 -1
- package/assets/esri/core/workers/chunks/7bd5a074d9f4ba137649.js +0 -1
- package/assets/esri/core/workers/chunks/7c13d7754fc914a87817.js +0 -1
- package/assets/esri/core/workers/chunks/7dc2e714234b2cee8701.js +0 -1
- package/assets/esri/core/workers/chunks/80d1267606383ae537f2.js +0 -1
- package/assets/esri/core/workers/chunks/835e0315661003caa71f.js +0 -1
- package/assets/esri/core/workers/chunks/8570e3df90fb76a8741a.js +0 -1
- package/assets/esri/core/workers/chunks/86578c191d76062157ec.js +0 -1
- package/assets/esri/core/workers/chunks/87d6e99d83db9a8cda7c.js +0 -1
- package/assets/esri/core/workers/chunks/8c9934d30655dd2c48da.js +0 -1
- package/assets/esri/core/workers/chunks/9117c9b720c9ba6e7a6e.js +0 -1
- package/assets/esri/core/workers/chunks/939fb9a8c301ace07186.js +0 -1
- package/assets/esri/core/workers/chunks/94a38c9b3d086b37242f.js +0 -1
- package/assets/esri/core/workers/chunks/98e1751f888975532afc.js +0 -1
- package/assets/esri/core/workers/chunks/9d61f10f2bef15b5811d.js +0 -1
- package/assets/esri/core/workers/chunks/9dcf5be203f8b1e47d9d.js +0 -1
- package/assets/esri/core/workers/chunks/9e372af03d62fa5ad10e.js +0 -1
- package/assets/esri/core/workers/chunks/9eb00bb8dab995c2dcb3.js +0 -1
- package/assets/esri/core/workers/chunks/9ed81757937fe08363ed.js +0 -1
- package/assets/esri/core/workers/chunks/9fe07947cf4ec44014e8.js +0 -1
- package/assets/esri/core/workers/chunks/a1d265614d038eb603f7.js +0 -1
- package/assets/esri/core/workers/chunks/a3d02885d6962b49eee4.js +0 -1
- package/assets/esri/core/workers/chunks/a66d6298236d59a615db.js +0 -1
- package/assets/esri/core/workers/chunks/a710c7a0584d9e45a469.js +0 -1
- package/assets/esri/core/workers/chunks/ab784764ddf9d7f693a1.js +0 -1
- package/assets/esri/core/workers/chunks/ace210d313ce53f3ae10.js +0 -1
- package/assets/esri/core/workers/chunks/b7426e5f290573cb9689.js +0 -1
- package/assets/esri/core/workers/chunks/b88e1084097a93a89f61.js +0 -1
- package/assets/esri/core/workers/chunks/baa5aa0670b23db86b50.js +0 -1
- package/assets/esri/core/workers/chunks/c0867890a84b4c98e0ba.js +0 -1
- package/assets/esri/core/workers/chunks/c1a551c4aa77f123d091.js +0 -1
- package/assets/esri/core/workers/chunks/c58f859dec9d6675dbd6.js +0 -1
- package/assets/esri/core/workers/chunks/c7425fb5e804f0f9d4dd.js +0 -1
- package/assets/esri/core/workers/chunks/c85184baccb4004bf42b.js +0 -1
- package/assets/esri/core/workers/chunks/ccf4b5fdcdace533bcb7.js +0 -1
- package/assets/esri/core/workers/chunks/d5bb6f479c0cdfc21d8a.js +0 -1
- package/assets/esri/core/workers/chunks/d689e7c685dd9a444d19.js +0 -1
- package/assets/esri/core/workers/chunks/d8b84d21144a58b6b911.js +0 -1
- package/assets/esri/core/workers/chunks/d8ffb1502def5c85740b.js +0 -1
- package/assets/esri/core/workers/chunks/db96d1d9f6d1a4d7fd2a.js +0 -1
- package/assets/esri/core/workers/chunks/de35baceeb815e6befd5.js +0 -1
- package/assets/esri/core/workers/chunks/e0341def2d81e679a200.js +0 -1
- package/assets/esri/core/workers/chunks/e164198dbb87ee202ba1.js +0 -1
- package/assets/esri/core/workers/chunks/e4eb6fdf5115bed48856.js +0 -1
- package/assets/esri/core/workers/chunks/e566102c7ed7a8ebf89e.js +0 -1
- package/assets/esri/core/workers/chunks/e59271f8b142a7602b7a.js +0 -1
- package/assets/esri/core/workers/chunks/eef3fa804e456beac4c1.js +0 -1
- package/assets/esri/core/workers/chunks/f319b59228b64e7f9008.js +0 -1
- package/assets/esri/core/workers/chunks/f42adcea81390fb21c66.js +0 -1
- package/assets/esri/core/workers/chunks/f4fcf87da4495584223d.js +0 -1
- package/assets/esri/core/workers/chunks/f52d081bbde5c95265cf.js +0 -1
- package/assets/esri/core/workers/chunks/f7ab4bf14ec8e986ef7c.js +0 -1
- package/assets/esri/core/workers/chunks/f92c92c0fd1b5b33ca21.js +0 -1
- package/assets/esri/core/workers/chunks/f989588dfdbb69056491.js +0 -1
- package/assets/esri/core/workers/chunks/fbd5f3b81cd9f061824d.js +0 -1
- package/assets/esri/core/workers/chunks/fc5b920f9756e11c2f88.js +0 -1
- package/assets/esri/core/workers/chunks/fdcc5fe4630a4ccf58de.js +0 -1
- package/assets/esri/core/workers/chunks/ff0a0819bba5e8264c47.js +0 -1
- package/assets/esri/core/workers/chunks/ff225735eba7f9130e19.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import has from"../../../../../core/has.js";import{copy as n,set as r}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{set as i,length as a}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as o}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{lerp as s}from"../../../../../core/mathUtils.js";import{disposeMaybe as c}from"../../../../../core/maybe.js";import{watch as l,syncAndInitial as u,initial as d}from"../../../../../core/reactiveUtils.js";import{earth as f}from"../../../../../geometry/support/Ellipsoid.js";import p from"../../../../../webscene/background/ColorBackground.js";import{DepthStencilAttachment as m,ColorAttachment0 as h,PrimitiveType as g}from"../../../../webgl/enums.js";import{createQuadVAO as _}from"../../lib/glUtil3D.js";import{applyTextureResizeModulo as v}from"../../lib/textureUtils.js";import{OpaqueEnvironment as y}from"../OpaqueEnvironment.js";import{computeInnerAltitudeFade as b,innerAtmosphereDepth as x}from"./atmosphereUtils.js";import{R as S}from"../../../../../chunks/RealisticAtmosphereCompositing.glsl.js";import{RealisticAtmosphereCompositingTechnique as C}from"./RealisticAtmosphereCompositingTechnique.js";import{RealisticAtmosphereConfiguration as w}from"./RealisticAtmosphereConfiguration.js";import{RealisticAtmospherePassParameters as T,RealisticAtmosphereTechnique as E}from"./RealisticAtmosphereTechnique.js";let D=class extends y{constructor(){super(...arguments),this._emissionDisabled=!!has(`disable-feature:emissive-sun`),this._passParameters=new T,this._compositingPassParameters=new S,this._configuration=new w}initialize(){this.addHandles([l(()=>this.view.environment.background,e=>{let t=e instanceof p?e.color.toUnitRGBA():o;i(this._passParameters.backgroundColor,t[0]*t[3],t[1]*t[3],t[2]*t[3])},u),l(()=>this.view.stage?.renderer?.highResolutionAtmosphere,e=>this._passParameters.reduced=!e,u),l(()=>this.view.map.ground.undergroundColor,e=>{this._passParameters.undergroundColor=e?.toUnitRGBA()??o,this.requestRender(1)},d),l(()=>this.view.environment.atmosphereEnabled,e=>e?this._enable():this._disable(),u)])}destroy(){this._vao=c(this._vao)}precompile(){this._configuration.hasClouds=!!this.bindParameters.clouds.data?.cubeMap?.colorTexture,this._configuration.
|
|
2
|
+
import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import has from"../../../../../core/has.js";import{copy as n,set as r}from"../../../../../core/libs/gl-matrix-2/math/vec2.js";import{set as i,length as a}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{ZEROS as o}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{lerp as s}from"../../../../../core/mathUtils.js";import{disposeMaybe as c}from"../../../../../core/maybe.js";import{watch as l,syncAndInitial as u,initial as d}from"../../../../../core/reactiveUtils.js";import{earth as f}from"../../../../../geometry/support/Ellipsoid.js";import p from"../../../../../webscene/background/ColorBackground.js";import{DepthStencilAttachment as m,ColorAttachment0 as h,PrimitiveType as g}from"../../../../webgl/enums.js";import{createQuadVAO as _}from"../../lib/glUtil3D.js";import{applyTextureResizeModulo as v}from"../../lib/textureUtils.js";import{OpaqueEnvironment as y}from"../OpaqueEnvironment.js";import{computeInnerAltitudeFade as b,innerAtmosphereDepth as x}from"./atmosphereUtils.js";import{R as S}from"../../../../../chunks/RealisticAtmosphereCompositing.glsl.js";import{RealisticAtmosphereCompositingTechnique as C}from"./RealisticAtmosphereCompositingTechnique.js";import{RealisticAtmosphereConfiguration as w}from"./RealisticAtmosphereConfiguration.js";import{RealisticAtmospherePassParameters as T,RealisticAtmosphereTechnique as E}from"./RealisticAtmosphereTechnique.js";let D=class extends y{constructor(){super(...arguments),this._emissionDisabled=!!has(`disable-feature:emissive-sun`),this._passParameters=new T,this._compositingPassParameters=new S,this._configuration=new w}initialize(){this.addHandles([l(()=>this.view.environment.background,e=>{let t=e instanceof p?e.color.toUnitRGBA():o;i(this._passParameters.backgroundColor,t[0]*t[3],t[1]*t[3],t[2]*t[3])},u),l(()=>this.view.stage?.renderer?.highResolutionAtmosphere,e=>this._passParameters.reduced=!e,u),l(()=>this.view.map.ground.undergroundColor,e=>{this._passParameters.undergroundColor=e?.toUnitRGBA()??o,this.requestRender(1)},d),l(()=>this.view.environment.atmosphereEnabled,e=>e?this._enable():this._disable(),u)])}destroy(){this._vao=c(this._vao)}precompile(){this._configuration.hasClouds=!!this.bindParameters.clouds.data?.cubeMap?.colorTexture,this._configuration.hasEmission=this._hasEmission&&!this._passParameters.reduced,this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value,this.techniques.precompile(E,this._configuration),this._passParameters.reduced&&(this._configuration.hasEmission=this._hasEmission,this.techniques.precompile(C,this._configuration))}render(){let e=this.input;if(!this.bindParameters.mainDepth)return e;let t=this.renderingContext,r=e.getAttachment(m);this._update(),this._vao??=_(t,1),this.bindParameters.clouds?.isFading&&this.requestRender(2),this._configuration.hasEmission=this._hasEmission&&!this._passParameters.reduced;let i=this.techniques.get(E,this._configuration);if(!this._passParameters.reduced)return e.detachDepth(),t.bindFramebuffer(e.fbo),t.bindTechnique(i,this.bindParameters,this._passParameters),t.bindVAO(this._vao),this._emissionDisabled&&t.setDrawBuffers([h]),t.drawArrays(g.TRIANGLE_STRIP,0,4),e.attachDepth(r),e;let o=t.getViewport(),c=this.bindParameters.camera,l=a(c.eye)-f.radius,u,d=f.atmosphereHeight;if(l<d){let e=Math.min(1,Math.max(0,l/d));u=s(.2,.3,e)}else{let e=Math.min(1,Math.max(0,(l-d)/(15*d)));u=s(.3,.6,e)}let p=this.renderingContext.parameters.maxTextureSize,y=v(Math.round(u*c.fullViewport[2]),p),b=v(Math.round(u*c.fullViewport[3]),p);t.setViewport(0,0,y,b);let x=this.fboCache.acquire(y,b,`chapman`);t.bindFramebuffer(x.fbo),t.clearFramebuffer([0,0,0,1],!0,!0),t.bindTechnique(i,this.bindParameters,this._passParameters),t.bindVAO(this._vao),t.drawArrays(g.TRIANGLE_STRIP,0,4),t.setViewport(o.x,o.y,o.width,o.height),this._configuration.hasEmission=this.bindParameters.emissions!==0;let S=this.techniques.get(C,this._configuration);return n(this._compositingPassParameters.radii,this._passParameters.radii),this._compositingPassParameters.color=x.getTexture(),e.detachDepth(),t.bindFramebuffer(e.fbo),t.bindTechnique(S,this.bindParameters,this._compositingPassParameters),this._emissionDisabled&&t.setDrawBuffers([h]),t.screen.draw(),e.attachDepth(r),x.release(),e}_update(){let e=this.view.basemapTerrain?.getLowerBoundRadius()??0;r(this._passParameters.radii,e,e+f.atmosphereHeight);let t=a(this.bindParameters.camera.eye);this._passParameters.altitudeFade=b(t-e),this._passParameters.innerFadeDistance=2*Math.sqrt((2*e-x)*x)}get _hasEmission(){return this.bindParameters.emissions!==0&&!this._emissionDisabled}};D=e([t(`esri.views.3d.webgl-engine.effects.atmosphere.RealisticAtmosphere`)],D);export{D as RealisticAtmosphere};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/
|
|
2
|
+
import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/outputEmission.glsl.js";import"../../core/shaderLibrary/renderClouds.glsl.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/shading/lightingUniforms.js";import"../../core/shaderLibrary/util/cameraUniforms.js";import"../../core/shaderLibrary/util/ColorConversion.glsl.js";import"../../core/shaderModules/FloatBindUniform.js";import"../../core/shaderModules/glsl.js";import"../../core/shaderModules/Texture2DPassUniform.js";import"../../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../../shaders/ToneMapping.glsl.js";import"./ChapmanApproximation.glsl.js";export{R as RealisticAtmosphereCompositingPassParameters,b as build}from"../../../../../chunks/RealisticAtmosphereCompositing.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{
|
|
2
|
+
import{__decorate as e}from"tslib";import{ShaderOutputConfiguration as t}from"../../core/shaderLibrary/ShaderOutputConfiguration.js";import{parameter as n}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";class r extends t{constructor(){super(...arguments),this.hasClouds=!1}}e([n()],r.prototype,`hasClouds`,void 0);export{r as RealisticAtmosphereConfiguration};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/output/ReadDepth.glsl.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/util/ColorConversion.glsl.js";import"../../core/shaderModules/Float3PassUniform.js";import"../../core/shaderModules/FloatPassUniform.js";import"../../core/shaderModules/glsl.js";import"../../core/shaderModules/Texture2DPassUniform.js";import"../../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../../shaders/ToneMapping.glsl.js";import"../glow/applyEmissiveGlow.glsl.js";import"../raymarching/DistanceFalloff.glsl.js";export{F as FogPassParameters,b as build}from"../../../../../chunks/Fog.glsl.js";
|
|
2
|
+
import"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/output/ReadDepth.glsl.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderLibrary/util/ColorConversion.glsl.js";import"../../core/shaderModules/Float3PassUniform.js";import"../../core/shaderModules/FloatPassUniform.js";import"../../core/shaderModules/glsl.js";import"../../core/shaderModules/Texture2DPassUniform.js";import"../../../../../chunks/EmissionComposite.glsl.js";import"../../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../../shaders/ToneMapping.glsl.js";import"../glow/applyEmissiveGlow.glsl.js";import"../raymarching/DistanceFalloff.glsl.js";export{F as FogPassParameters,b as build}from"../../../../../chunks/Fog.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import{property as n}from"../../../../../core/accessorSupport/decorators/property.js";import{add as r,normalize as i,length as a,dot as o,scale as s,lerp as c}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as l,fromValues as u}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{ZEROS as d}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{smoothstep as f,lerp as p}from"../../../../../core/mathUtils.js";import{releaseMaybe as m}from"../../../../../core/maybe.js";import{watch as h,syncAndInitial as g}from"../../../../../core/reactiveUtils.js";import{signal as _}from"../../../../../core/signal.js";import{ColorAttachment1 as v,SizedPixelFormat as y,ColorAttachment0 as b,DepthStencilAttachment as x}from"../../../../webgl/enums.js";import{heightLimit as S}from"../../../environment/weather.js";import{EmissiveTechniqueConfiguration as C}from"../../shaders/EmissiveTechniqueConfiguration.js";import{floatBlendReductionFactor as w}from"../../shaders/floatBlendScale.glsl.js";import{betaRayleigh as T,betaCombined as E}from"../atmosphere/atmosphereUtils.js";import{BlurEmission as D}from"../glow/BlurEmission.js";import{F as O}from"../../../../../chunks/Fog.glsl.js";import{FogTechnique as k}from"./FogTechnique.js";const A=.9*S,j=1.1*S;let M=class extends D{constructor(){super(...arguments),this._configuration=new C,this._newParameters=new N,this._oldParameters=new N,this._fadedParameters=new N,this._parameters=this._newParameters,this._passParameters=new O}initialize(){this._configuration.
|
|
2
|
+
import{__decorate as e}from"tslib";import{subclass as t}from"../../../../../core/accessorSupport/decorators.js";import{property as n}from"../../../../../core/accessorSupport/decorators/property.js";import{add as r,normalize as i,length as a,dot as o,scale as s,lerp as c}from"../../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as l,fromValues as u}from"../../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{ZEROS as d}from"../../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{smoothstep as f,lerp as p}from"../../../../../core/mathUtils.js";import{releaseMaybe as m}from"../../../../../core/maybe.js";import{watch as h,syncAndInitial as g}from"../../../../../core/reactiveUtils.js";import{signal as _}from"../../../../../core/signal.js";import{ColorAttachment1 as v,SizedPixelFormat as y,ColorAttachment0 as b,DepthStencilAttachment as x}from"../../../../webgl/enums.js";import{heightLimit as S}from"../../../environment/weather.js";import{EmissiveTechniqueConfiguration as C}from"../../shaders/EmissiveTechniqueConfiguration.js";import{floatBlendReductionFactor as w}from"../../shaders/floatBlendScale.glsl.js";import{betaRayleigh as T,betaCombined as E}from"../atmosphere/atmosphereUtils.js";import{BlurEmission as D}from"../glow/BlurEmission.js";import{F as O}from"../../../../../chunks/Fog.glsl.js";import{FogTechnique as k}from"./FogTechnique.js";const A=.9*S,j=1.1*S;let M=class extends D{constructor(){super(...arguments),this._configuration=new C,this._newParameters=new N,this._oldParameters=new N,this._fadedParameters=new N,this._parameters=this._newParameters,this._passParameters=new O}initialize(){this._configuration.hasFog=!0,this.addHandles([h(()=>this.view.environmentView.weather!=null,e=>e?this._enable():this._disable(),g),h(()=>this._fogParameters,e=>this._updateFogParameters(e),g),h(()=>this._fadeFactor,e=>this._fade(e),g)])}get _fadeFactor(){return this.view.stage?.renderer.renderContext.bind.clouds.fadeFactor??1}_fade(e){let{_newParameters:t,_oldParameters:n}=this;e>=1?(this._parameters=t,this._oldParameters.copy(this._newParameters)):e<=0?this._parameters=n:(this._fadedParameters.lerp(n,t,e),this._parameters=this._fadedParameters)}get _fogParameters(){let e=new N,{weather:t}=this.view.environmentView,n=t?.type===`foggy`||t?.type===`snowy`||t?.type===`rainy`;switch(e.strength.value=t?.scattering??0,e.amount.value=+!!n,e.fogBrightness=this._newParameters.fogBrightness,t?.type){case`foggy`:case`snowy`:e.fogBrightness=B;break;case`rainy`:e.fogBrightness=z}let r=this._get(`_fogParameters`);return e.equals(r)?r:e}_updateFogParameters(e){this._newParameters.copy(e),this._fadeFactor>=1&&this._oldParameters.copy(this._newParameters),this.requestRender(2)}get strength(){return this._parameters.strength.value*this._heightFade}get amount(){return this._parameters.amount.value*this._heightFade}get _heightFade(){let e=a(this.bindParameters.camera.eye);return 1-f(A,j,Math.abs(e-this._ellipsoid.radius))}precompile(){this._update(),this._passParameters.amount>0&&(super.precompile(),this.techniques.precompile(k,this._configuration))}get _needsEmissionBlur(){return this._configuration.hasEmissive}render(){let e=this.input,t=this._getTechnique();if(!t)return e;this._passParameters.emission=e.obtainAttachment(v),this._passParameters.inputScale=this._passParameters.emission?.attachment.descriptor.internalFormat===y.RGBA8?w:1;let n=this.renderingContext;this._passParameters.emission&&(this._renderEmissionMipMap(),this._configuration.useFloatBlend?(e.acquireColor(v,8,`emissive`),n.clearBuffer(1,d)):(this._passParameters.color=e.obtainAttachment(b),e.acquireColor(b,5),e.acquireColor(v,8,`emissive`)));let r=e.getAttachment(x);return e.attachDepth(null),n.bindFramebuffer(e.fbo),n.bindTechnique(t,this.bindParameters,this._passParameters),n.screen.draw(),this._passParameters.color=m(this._passParameters.color),this._passParameters.emission=m(this._passParameters.emission),this._passParameters.mipmapTexture=m(this._passParameters.mipmapTexture),e.attachDepth(r),this.fboCache.debugCallback?.(`fog-color`,e.fbo),e}_getTechnique(){return this.renders?this.techniques.get(k,this._configuration):null}get renders(){return this._update(),this._passParameters.amount>0}_update(){let e=this.bindParameters.camera;i(P,e.eye);let t=Math.max(0,o(P,this.bindParameters.lighting.mainLight.direction)),n=this._parameters.fogBrightness;s(this._passParameters.fogColor,L,n),s(F,L,n*.1),c(this._passParameters.fogColor,F,this._passParameters.fogColor,t);let r=a(e.eye);this._passParameters.atmosphereC=r**2-this._atmosphereRadius**2,this._passParameters.amount=this.amount,this._passParameters.strength=this._passParameters.scattering=this.strength,this._configuration.hasEmissive=this.bindParameters.hasEmission,this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value}get test(){return{parameters:this._passParameters}}};e([n()],M.prototype,`_fogParameters`,null),M=e([t(`esri.views.3d.webgl-engine.effects.fog.Fog`)],M);class N{constructor(){this.fogBrightness=0,this.strength=_(0),this.amount=_(0)}equals(e){return e!=null&&this.fogBrightness===e.fogBrightness&&this.strength.value===e.strength.value&&this.amount.value===e.amount.value}copy(e){this.fogBrightness=e.fogBrightness,this.strength.value=e.strength.value,this.amount.value=e.amount.value}lerp(e,t,n){this.fogBrightness=p(e.fogBrightness,t.fogBrightness,n),this.strength.value=p(e.strength.value,t.strength.value,n),this.amount.value=p(e.amount.value,t.amount.value,n)}}const P=l(),F=l(),I=u(3e-4,3e-4,3e-4),L=l();r(L,E,T),r(L,L,I),i(L,L);const R=L.reduce((e,t)=>e+t,0)/3,z=.5/R,B=1.5/R;export{M as Fog,N as FogParameters};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"../../../../../core/arrayUtils.js";import"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import"../../../../../core/mathUtils.js";import"../../../../webgl/NoParameters.js";import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/output/ReadDepth.glsl.js";import"../../core/shaderLibrary/ScreenSpacePass.glsl.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/
|
|
2
|
+
import"../../../../../core/arrayUtils.js";import"../../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import"../../../../../core/mathUtils.js";import"../../../../webgl/NoParameters.js";import"../../../../webgl/ShaderBuilder.js";import"../../core/shaderLibrary/bindUniforms.js";import"../../core/shaderLibrary/output/ReadDepth.glsl.js";import"../../core/shaderLibrary/ScreenSpacePass.glsl.js";import"../../core/shaderLibrary/shading/Gamma.glsl.js";import"../../core/shaderModules/BooleanDrawUniform.js";import"../../core/shaderModules/Float2DrawUniform.js";import"../../core/shaderModules/FloatDrawUniform.js";import"../../core/shaderModules/glsl.js";import"../../core/shaderModules/Texture2DDrawUniform.js";export{B as BlurEmissionDrawParameters,b as build}from"../../../../../chunks/BlurEmission.glsl.js";
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import t from"../../../environment/FoggyWeather.js";import{mainDepth as n}from"../../core/shaderLibrary/bindUniforms.js";import{ReadDepth as r}from"../../core/shaderLibrary/output/ReadDepth.glsl.js";import{
|
|
3
|
-
|
|
4
|
-
vec3 transmittedEmission;
|
|
5
|
-
vec3 scatteredIllumination;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
vec4 readEmission(float level, float depth) {
|
|
2
|
+
import{__decorate as e}from"tslib";import t from"../../../environment/FoggyWeather.js";import{mainDepth as n}from"../../core/shaderLibrary/bindUniforms.js";import{ReadDepth as r}from"../../core/shaderLibrary/output/ReadDepth.glsl.js";import{FloatBindUniform as i}from"../../core/shaderModules/FloatBindUniform.js";import{FloatPassUniform as a}from"../../core/shaderModules/FloatPassUniform.js";import{If as o,glsl as s}from"../../core/shaderModules/glsl.js";import{Texture2DPassUniform as c}from"../../core/shaderModules/Texture2DPassUniform.js";import{parameter as l}from"../../core/shaderTechnique/ShaderTechniqueConfiguration.js";import{FloatBlendScaleConfiguration as u,floatBlendScale as d}from"../../shaders/floatBlendScale.glsl.js";import{ToneMapping as f}from"../../shaders/ToneMapping.glsl.js";import{DistanceFalloffPassParameters as p,getDistanceFalloff as m}from"../raymarching/DistanceFalloff.glsl.js";class h extends p{constructor(){super(...arguments),this.mipmapLevels=1,this.boost=1,this.scattering=1e-4}}class g extends u{constructor(){super(...arguments),this.hasFog=!1}}e([l()],g.prototype,`hasFog`,void 0);function _(e,l){e.include(d,l),e.include(m),e.include(r),e.include(f),e.uniforms.add(new c(`emissionTexture`,({emission:e})=>e?.attachment),new i(`emissionFade`,e=>e.emissionFade),n,new a(`scattering`,({scattering:e})=>e),new a(`boost`,({boost:e})=>1+e*.5),new a(`levels`,({mipmapLevels:e},{camera:t})=>e+1+Math.log2(t.pixelScale)),new i(`pixelRatioCorrection`,({camera:e})=>Math.log2(e.pixelScale)),new c(`mipmapTexture`,({mipmapTexture:e})=>e?.getTexture())).constants.add(`maxScattering`,`float`,t.maxScattering).constants.add(`weightEpsilon`,`float`,.01).code.add(s`
|
|
3
|
+
vec4 readEmission(float level, float reciprocalDepth) {
|
|
9
4
|
level *= levels;
|
|
10
5
|
level = max(0.0, level - pixelRatioCorrection);
|
|
11
6
|
if (level < 1.0) {
|
|
12
7
|
vec3 emission = texture(emissionTexture, uv).rgb * floatBlendInputScale;
|
|
13
|
-
vec4 unblurred = vec4(emission,
|
|
8
|
+
vec4 unblurred = vec4(emission, reciprocalDepth * dot(emission, vec3(1.0 / 3.0)));
|
|
14
9
|
return unblurred * (1.0 - level) + textureLod(mipmapTexture, uv, 0.0) * level * 0.5;
|
|
15
10
|
}
|
|
16
11
|
return textureLod(mipmapTexture, uv, level - 1.0) / pow(2.0, level);
|
|
@@ -20,69 +15,56 @@ import{__decorate as e}from"tslib";import t from"../../../environment/FoggyWeath
|
|
|
20
15
|
float expon = -(pow(x, 2.0) / (2.0 * sigmaSq));
|
|
21
16
|
return exp(expon) / sqrt(6.283185307179586 * sigmaSq);
|
|
22
17
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
float
|
|
27
|
-
float fullPoint = (minPoint + mainPoint) * 0.5;
|
|
28
|
-
return gauss(point - mainPoint, sigmaSq) * smoothstep(minPoint, fullPoint, point);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
EmissiveGlowResult applyEmissiveGlow(float extinctionAmount, float maxDispersion) {
|
|
32
|
-
float normalizedDepth = 1.0;
|
|
18
|
+
vec3 applyEmissiveGlow(float extinctionAmount, float maxDispersion) {
|
|
19
|
+
float depth = -1.0;
|
|
20
|
+
float surfaceDepth = -1.0;
|
|
21
|
+
float reciprocalDepth = 0.0;
|
|
33
22
|
float depthSample = depthFromTexture(mainDepth, uv);
|
|
34
23
|
if(depthSample < 1.0 && depthSample > 0.0){
|
|
35
|
-
|
|
24
|
+
surfaceDepth = -linearizeDepth(depthSample);
|
|
25
|
+
reciprocalDepth = 1.0 / (1.0 + surfaceDepth);
|
|
26
|
+
vec3 cameraSpaceRay = normalize(eyeDir);
|
|
27
|
+
cameraSpaceRay /= cameraSpaceRay.z;
|
|
28
|
+
cameraSpaceRay *= -surfaceDepth;
|
|
29
|
+
depth = max(0.0, length(cameraSpaceRay));
|
|
36
30
|
}
|
|
37
31
|
vec3 rayDir = normalize(worldRay);
|
|
38
|
-
float
|
|
32
|
+
float dispersionPerPixel = getDistanceFalloff(depth, rayDir, scattering * 0.5);
|
|
39
33
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
float backgroundDistance = depthSample > 0.0 && depthSample < 1.0 ? normalizedDepth * depthToDistance : -1.0;
|
|
45
|
-
float backgroundDispersion = getDistanceFalloff(backgroundDistance, rayDir, scattering * 0.5);
|
|
46
|
-
float illuminationMainPoint = pow(backgroundDispersion, 4.0) * maxDispersion;
|
|
47
|
-
`)}
|
|
34
|
+
// main level: This causes objects in the fog to become blurry, darker, and more spread out
|
|
35
|
+
float mainPoint = pow(dispersionPerPixel, 4.0) * maxDispersion;
|
|
36
|
+
|
|
37
|
+
vec3 emission = vec3(0.0); // accumulated emission
|
|
48
38
|
float weights = 0.0; // accumulated weights for renormalization
|
|
49
39
|
float baseSigmaSq = 0.003 + 0.03 * (boost - 1.0); // boost spreads out glow
|
|
50
40
|
float sigmaSq = baseSigmaSq + 0.1 * scattering / maxScattering;
|
|
51
41
|
|
|
42
|
+
// Keep scattering from widening the kernel back into sharp levels. Fade in weight towards main sample point.
|
|
43
|
+
// Issue #27433
|
|
44
|
+
float minPoint = mainPoint - 0.5;
|
|
45
|
+
float fullPoint = (minPoint + mainPoint) * 0.5;
|
|
46
|
+
|
|
52
47
|
for(float level = 0.0; level < levels; ++level) {
|
|
53
48
|
float point = level / levels;
|
|
54
|
-
|
|
55
|
-
float
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
`)}
|
|
71
|
-
if(weight > 0.0) {
|
|
72
|
-
if (extinctionAmount > 0.0) {
|
|
73
|
-
float pathDistance = min(normalizedDepth, averageDepth) * depthToDistance;
|
|
74
|
-
float extinction = extinctionAmount * getDistanceFalloff(pathDistance, rayDir, scattering);
|
|
75
|
-
float damping = extinction < 1.0 ? min(-log(1.0 - extinction) * 0.1, 16.0) : 16.0;
|
|
76
|
-
transmittedEmission += max(emissionSample.rgb * boost * emissionFade - damping, 0.0) * weight;
|
|
77
|
-
} else {
|
|
78
|
-
transmittedEmission += emissionSample.rgb * weight;
|
|
79
|
-
}
|
|
49
|
+
float dist = point - mainPoint;
|
|
50
|
+
float weight = gauss(dist, sigmaSq) * smoothstep(minPoint, fullPoint, point);
|
|
51
|
+
if(weight > weightEpsilon) {
|
|
52
|
+
vec4 emissionSample = readEmission(point, reciprocalDepth);
|
|
53
|
+
${o(l.hasFog,s`
|
|
54
|
+
if (surfaceDepth >= 0.0) {
|
|
55
|
+
float intensity = dot(emissionSample.rgb, vec3(1.0 / 3.0));
|
|
56
|
+
float depthNumerator = intensity - emissionSample.a;
|
|
57
|
+
if (depthNumerator > 0.0) {
|
|
58
|
+
// Decoded depth is intensity / alpha - 1. Form surfaceDepth / decodedDepth without
|
|
59
|
+
// dividing by alpha: sky emission (alpha = 0) is rejected without producing infinity or NaN.
|
|
60
|
+
emissionSample.rgb *= mix(1.0, min(1.0, surfaceDepth * emissionSample.a / depthNumerator), extinctionAmount);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
`)}
|
|
64
|
+
emission += emissionSample.rgb * weight;
|
|
80
65
|
weights += weight;
|
|
81
66
|
}
|
|
82
67
|
}
|
|
83
|
-
|
|
84
|
-
transmittedEmission / weights : transmittedEmission * boost / weights * emissionFade;
|
|
85
|
-
${s(u.computeScatteredIllumination,`scatteredIllumination = scatteredIllumination * boost / illuminationWeights * emissionFade;`)}
|
|
86
|
-
return EmissiveGlowResult(transmittedEmission, scatteredIllumination);
|
|
68
|
+
return emission * boost / weights * emissionFade;
|
|
87
69
|
}
|
|
88
|
-
`)}export{
|
|
70
|
+
`)}export{g as EmissiveGlowConfiguration,h as EmissiveGlowPassParameters,_ as applyEmissiveGlow};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import"tslib";import"../../../webgl/ShaderBuilder.js";import"../core/shaderLibrary/shading/Gamma.glsl.js";import"../core/shaderModules/FloatBindUniform.js";import"../core/shaderModules/
|
|
2
|
+
import"tslib";import"../../../webgl/ShaderBuilder.js";import"../core/shaderLibrary/shading/Gamma.glsl.js";import"../core/shaderModules/FloatBindUniform.js";import"../core/shaderModules/glsl.js";import"../core/shaderModules/Texture2DPassUniform.js";import"../core/shaderTechnique/ShaderTechniqueConfiguration.js";import"../effects/glow/applyEmissiveGlow.glsl.js";import"../shaders/floatBlendScale.glsl.js";import"../shaders/ScreenSpacePassAtmosphere.glsl.js";import"../shaders/ToneMapping.glsl.js";export{a as EmissionCompositePassParameters,E as EmissionCompositeTechniqueConfiguration,c as build,h as hazeDispersion}from"../../../../chunks/EmissionComposite.glsl.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as t}from"../../../../core/accessorSupport/decorators/property.js";import{subclass as n}from"../../../../core/accessorSupport/decorators/subclass.js";import{length as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{releaseMaybe as i}from"../../../../core/maybe.js";import{watch as a,syncAndInitial as o}from"../../../../core/reactiveUtils.js";import{ColorAttachment1 as s,ColorAttachment0 as c}from"../../../webgl/enums.js";import{RenderNodeOutput as l}from"../../webgl.js";import{BlurEmission as u}from"../effects/glow/BlurEmission.js";import{E as d,a as f}from"../../../../chunks/EmissionComposite.glsl.js";import{EmissionCompositeTechnique as p}from"./EmissionCompositeTechnique.js";let m=class extends u{constructor(){super(...arguments),this.produces=l.COMPOSITE,this.consumes={required:[l.COMPOSITE]},this._configuration=new d,this._passParameters=new f}initialize(){this.addHandles([a(()=>this.bindParameters.emissions!==0,e=>this.produces=e?l.COMPOSITE:`disabled`,o)])}precompile(){this.bindParameters.emissions!==0&&(this._configuration.
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t}from"../../../../core/accessorSupport/decorators/property.js";import{subclass as n}from"../../../../core/accessorSupport/decorators/subclass.js";import{length as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{releaseMaybe as i}from"../../../../core/maybe.js";import{watch as a,syncAndInitial as o}from"../../../../core/reactiveUtils.js";import{ColorAttachment1 as s,ColorAttachment0 as c}from"../../../webgl/enums.js";import{RenderNodeOutput as l}from"../../webgl.js";import{BlurEmission as u}from"../effects/glow/BlurEmission.js";import{E as d,a as f}from"../../../../chunks/EmissionComposite.glsl.js";import{EmissionCompositeTechnique as p}from"./EmissionCompositeTechnique.js";let m=class extends u{constructor(){super(...arguments),this.produces=l.COMPOSITE,this.consumes={required:[l.COMPOSITE]},this._configuration=new d,this._passParameters=new f}initialize(){this.addHandles([a(()=>this.bindParameters.emissions!==0,e=>this.produces=e?l.COMPOSITE:`disabled`,o)])}precompile(){this.bindParameters.emissions!==0&&(this._configuration.hasFog=!!this.view.stage.renderView.fog?.renders,this._configuration.applyBlur=!this._configuration.hasFog&&this._hasBlur,super.precompile(),this._configuration.useFloatBlend=this.bindParameters.useFloatBlend.value,this.techniques.precompile(p,this._configuration))}get _needsEmissionBlur(){return this._configuration.applyBlur}render(){let e=this.input,t=e.getAttachment(s);if(!t?.attachment)return e;let n=r(this.bindParameters.camera.eye);this._passParameters.atmosphereC=n**2-this._atmosphereRadius**2,this._passParameters.color=e.getAttachment(c)?.attachment,this._passParameters.emission=t,this._passParameters.scattering=this._configuration.applyBlur&&this.view.environmentView.weather?this.view.stage.renderView.fog?.strength??this.view.environment.weather.scattering:0,this._configuration.applyBlur&&this._renderEmissionMipMap();let a=this.renderingContext,o=this.techniques.get(p,this._configuration),l=this.acquireOutputFramebuffer();return a.clear(16384),a.bindTechnique(o,this.bindParameters,this._passParameters),a.screen.draw(),this._passParameters.mipmapTexture=i(this._passParameters.mipmapTexture),l.moveAttachments(e),l}};e([t()],m.prototype,`produces`,void 0),e([t()],m.prototype,`consumes`,void 0),m=e([n(`esri.views.3d.webgl-engine.lib.EmissionComposite`)],m);export{m as EmissionComposite};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../../core/accessorSupport/decorators.js";import{invert as r}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{set as i}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as a}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{PrimitiveType as o}from"../../../webgl/enums.js";import{InternalRenderCategory as s}from"../../webgl.js";import c from"../../webgl/RenderNode.js";import{G as l}from"../../../../chunks/GaussianSplatShadow.glsl.js";import{GaussianSplatShadowTechnique as u}from"../shaders/GaussianSplatShadowTechnique.js";import{GaussianSplatTechniqueConfiguration as d}from"../shaders/GaussianSplatTechniqueConfiguration.js";import{canRenderGaussianSplats as f,prepareGaussianSplatRenderParameters as p}from"./GaussianSplatRenderUtils.js";let m=class extends c{constructor(e){super(e),this.consumes={required:[s.SHADOWMAP]},this.produces=s.SHADOWMAP,this.layerView=null,this._passParameters=new l,this._cameraPosition=a(),this._configuration=new d(e.view.state.isGlobal)}precompile(){this._canRender&&(this._updateConfiguration(),this.techniques.precompile(u,this._configuration))}render(){let e=this.bindRenderTarget();return this._canRender&&this._render(),e}
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../../core/accessorSupport/decorators.js";import{invert as r}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{set as i}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as a}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{PrimitiveType as o}from"../../../webgl/enums.js";import{InternalRenderCategory as s}from"../../webgl.js";import c from"../../webgl/RenderNode.js";import{G as l}from"../../../../chunks/GaussianSplatShadow.glsl.js";import{GaussianSplatShadowTechnique as u}from"../shaders/GaussianSplatShadowTechnique.js";import{GaussianSplatTechniqueConfiguration as d}from"../shaders/GaussianSplatTechniqueConfiguration.js";import{canRenderGaussianSplats as f,prepareGaussianSplatRenderParameters as p}from"./GaussianSplatRenderUtils.js";let m=class extends c{constructor(e){super(e),this.consumes={required:[s.SHADOWMAP]},this.produces=s.SHADOWMAP,this.layerView=null,this._passParameters=new l,this._cameraPosition=a(),this._configuration=new d(e.view.state.isGlobal)}precompile(){this._canRender&&(this._updateConfiguration(),this.techniques.precompile(u,this._configuration))}render(){let e=this.bindRenderTarget();return this._canRender&&this._render(),e}unionDepthRange(e,t){this.layerView.suspended||this._data.unionVisibleTileDepthRange(e,this.layerView.clippingBox,t)}get _data(){return this.layerView.data}get _clippingEnabled(){return this.layerView.clippingBox!=null}get _canRender(){return!this.layerView.suspended&&f(this._data)}_render(){this._updateConfiguration();let e=this.techniques.get(u,this._configuration);this._prepareShadowParameters(this.bindParameters.camera),this.renderingContext.bindTechnique(e,this.bindParameters,this._passParameters),this.renderingContext.drawArraysInstanced(o.TRIANGLE_STRIP,0,4,this._data.visibleGaussians)}_updateConfiguration(){this._configuration.preciseDepth=this.bindParameters.output===8,this._configuration.clippingEnabled=this._clippingEnabled,this._configuration.hasSlicePlane=this.layerView.slicePlaneEnabled&&this.bindParameters.slicePlane!=null,this._configuration.output=this.bindParameters.output===8?8:5}_prepareShadowParameters(e){r(this._passParameters.inverseProjectionMatrix,e.projectionMatrix),this._updateShadowCameraPosition(e),p(this._passParameters,this.layerView,e,this._cameraPosition)}_updateShadowCameraPosition(e){let t=e.viewInverseTransposeMatrix;i(this._cameraPosition,t[3],t[7],t[11])}};e([t()],m.prototype,`consumes`,void 0),e([t()],m.prototype,`produces`,void 0),e([t({constructOnly:!0})],m.prototype,`layerView`,void 0),m=e([n(`esri.views.3d.webgl-engine.lib.GaussianSplatShadows`)],m);export{m as GaussianSplatShadows};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{set as e,copy as t,exactEquals as n}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r,clone as i}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{clamp as a}from"../../../../core/mathUtils.js";import{baseObjectMemory as o,integerArrayElementBytes as s,estimateArrayMemory as c}from"../../../../core/memoryEstimations.js";import{newFloatArray as l}from"../../../../geometry/support/FloatArray.js";import{getContinuousIndexArray as u,getZeroIndexArray as d}from"../../../../geometry/support/Indices.js";import{addOlidAttribute as f}from"../../layers/graphics/olidUtils.js";import{Attribute as p}from"./Attribute.js";import{Geometry as m}from"./Geometry.js";import{pathVertexInfoPacking as h}from"./PathVertexInfo.js";import{createPositionReader as g}from"./PositionReader.js";class _ extends m{constructor(e,t,n,i){let{vertexIndices:a,framePositionIndices:s,numExtrusionFrames:c}=t,l=u(c),m=d(c),h=[[`position`,new p(t.positions,s,3,!0)],[`profileRight`,new p(t.profileRightAxes,l,2,!0)],[`profileUp`,new p(t.profileUpAxes,l,2,!0)],[`profileRotation`,new p(t.profileRotations,l,1,!0)],[`pathMaxStretchDistance`,new p(t.pathMaxStretchDistances,l,1,!0)],[`pathVertexInfo`,new p(t.pathVertexInfos,a,1,!0)]];t.profileRotationFrameUpAxes&&h.push([`pathRotationUp`,new p(t.profileRotationFrameUpAxes,l,2,!0)]),n.sizeAttributeValue!=null&&h.push([`sizeFeatureAttribute`,new p([n.sizeAttributeValue],m,1,!0)]),n.size!=null&&h.push([`size`,new p([...n.size],m,2,!0)]),n.colorAttributeValue!=null&&h.push([`colorFeatureAttribute`,new p([n.colorAttributeValue],m,1,!0)]),n.color!=null&&h.push([`color`,new p([...n.color],m,4,!0)]),n.opacityAttributeValue!=null&&h.push([`opacityFeatureAttribute`,new p([n.opacityAttributeValue],m,1,!0)]),n.opacity!=null&&h.push([`opacity`,new p([n.opacity],m,1,!0)]),i!=null&&f(h,i,m),super(e,h,null,0),this.builder=t,this.visualVariablesState=n,this._positionCacheMemory=0,this._lastSize=r(),this._usedMemory=3*o}computeBufferMemory(e){let t=super.computeBufferMemory(e),{builder:n}=this;t+=e.arrayMemory(n.framePositionIndices,s,!0),t+=e.arrayMemory(n.vertexIndices,s,!0);let{path:r}=n;t+=e.arrayMemory(r.positions)+e.arrayMemory(r.positionsES)+e.arrayMemory(r.origin),t+=e.arrayMemory(r.directions)+e.arrayMemory(r.frames)+e.arrayMemory(r.minSiblingLengths);let i=r.getVertex(0);return t+=e.arrayMemory(i.vLeft)+e.arrayMemory(i.vRight),t+=e.arrayMemory(i.frame.up)+e.arrayMemory(i.frame.right)
|
|
2
|
+
import{set as e,copy as t,exactEquals as n}from"../../../../core/libs/gl-matrix-2/math/vec2.js";import{create as r,clone as i}from"../../../../core/libs/gl-matrix-2/factories/vec2f64.js";import{clamp as a}from"../../../../core/mathUtils.js";import{baseObjectMemory as o,integerArrayElementBytes as s,estimateArrayMemory as c}from"../../../../core/memoryEstimations.js";import{newFloatArray as l}from"../../../../geometry/support/FloatArray.js";import{getContinuousIndexArray as u,getZeroIndexArray as d}from"../../../../geometry/support/Indices.js";import{addOlidAttribute as f}from"../../layers/graphics/olidUtils.js";import{Attribute as p}from"./Attribute.js";import{Geometry as m}from"./Geometry.js";import{pathVertexInfoPacking as h}from"./PathVertexInfo.js";import{createPositionReader as g}from"./PositionReader.js";class _ extends m{constructor(e,t,n,i){let{vertexIndices:a,framePositionIndices:s,numExtrusionFrames:c}=t,l=u(c),m=d(c),h=[[`position`,new p(t.positions,s,3,!0)],[`profileRight`,new p(t.profileRightAxes,l,2,!0)],[`profileUp`,new p(t.profileUpAxes,l,2,!0)],[`profileRotation`,new p(t.profileRotations,l,1,!0)],[`pathMaxStretchDistance`,new p(t.pathMaxStretchDistances,l,1,!0)],[`pathVertexInfo`,new p(t.pathVertexInfos,a,1,!0)]];t.profileRotationFrameUpAxes&&h.push([`pathRotationUp`,new p(t.profileRotationFrameUpAxes,l,2,!0)]),n.sizeAttributeValue!=null&&h.push([`sizeFeatureAttribute`,new p([n.sizeAttributeValue],m,1,!0)]),n.size!=null&&h.push([`size`,new p([...n.size],m,2,!0)]),n.colorAttributeValue!=null&&h.push([`colorFeatureAttribute`,new p([n.colorAttributeValue],m,1,!0)]),n.color!=null&&h.push([`color`,new p([...n.color],m,4,!0)]),n.opacityAttributeValue!=null&&h.push([`opacityFeatureAttribute`,new p([n.opacityAttributeValue],m,1,!0)]),n.opacity!=null&&h.push([`opacity`,new p([n.opacity],m,1,!0)]),i!=null&&f(h,i,m),super(e,h,null,0),this.builder=t,this.visualVariablesState=n,this._positionCacheMemory=0,this._lastSize=r(),this._usedMemory=3*o}computeBufferMemory(e){let t=super.computeBufferMemory(e),{builder:n}=this;t+=e.arrayMemory(n.framePositionIndices,s,!0),t+=e.arrayMemory(n.vertexIndices,s,!0);let{path:r}=n;t+=e.arrayMemory(r.positions)+e.arrayMemory(r.positionsES)+e.arrayMemory(r.origin),t+=e.arrayMemory(r.directions)+e.arrayMemory(r.frames)+e.arrayMemory(r.minSiblingLengths);let i=r.getVertex(0);return t+=e.arrayMemory(i.vLeft)+e.arrayMemory(i.vRight),t+=e.arrayMemory(i.frame.up)+e.arrayMemory(i.frame.right)}get indexCount(){return this.attributes.get(`pathVertexInfo`)?.indices.length??0}get readPrimitivePosition(){if(this._invalidateOnSizeChange(),this._readPrimitivePosition==null){let{builder:e,size:t}=this,{vertexIndices:n,numVerticesTotal:r,evaluator:i}=e,a=l(r*3);i.evaluateVertexPositions(a,t),this._readPrimitivePosition=g(a,n,3),this._positionCacheMemory=c(a,8),this._usedMemory+=this._positionCacheMemory,this.notifyMemoryChange?.(this._positionCacheMemory)}return this._readPrimitivePosition}_invalidateReadPrimitivePosition(){super._invalidateReadPrimitivePosition();let e=this._positionCacheMemory;this._positionCacheMemory=0,this._usedMemory-=e,e&&this.notifyMemoryChange?.(-e)}onPathChanged(){this.builder.onPathChanged(),this.invalidateBoundingInfo(),e(this._lastSize,-1,-1),this._invalidateReadPrimitivePosition()}get size(){let{parameters:e}=this.material,n=i(e.size);if(e.vvSize){let{offset:t,factor:r,minSize:i,maxSize:o,fallback:s}=e.vvSize,c=this.visualVariablesState.sizeAttributeValue??NaN;Number.isNaN(c)?(n[0]*=s[0],n[1]*=s[2]):(n[0]*=a(t[0]+c*r[0],i[0],o[0]),n[1]*=a(t[2]+c*r[2],i[2],o[2]))}else e.hasPathSize&&this.visualVariablesState.size&&t(n,this.visualVariablesState.size);return n}_computePrimitivePositionIndices(){let e=this.attributes.get(`pathVertexInfo`),t=this.attributes.get(`position`);if(e&&t){let n=t.indices,r=e.indices,i=e.data,a=h.getField(0);return r.map(t=>n[a.get(i[e.stride*t])])}return t?.indices??null}get boundingInfo(){return this._invalidateOnSizeChange(),super.boundingInfo}_invalidateOnSizeChange(){let{size:e}=this;n(e,this._lastSize)||(t(this._lastSize,e),this.invalidateBoundingInfo(),this._invalidateReadPrimitivePosition())}}function v(e){return e instanceof _}export{_ as PathGeometry,v as isPathGeometry};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{copy as e,multiply as t}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as n}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{transformMat4 as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{generateUID as i}from"../../../../core/uid.js";import{NullSphere as a,Sphere as o}from"../../../../geometry/support/sphere.js";import{maxScale as s}from"../../support/mathUtils.js";class c{get type(){return 0}constructor(e,t={}){this.geometry=e,this._transformation=n(),this._shaderTransformation=null,this.
|
|
2
|
+
import{copy as e,multiply as t}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{create as n}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{transformMat4 as r}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{generateUID as i}from"../../../../core/uid.js";import{NullSphere as a,Sphere as o}from"../../../../geometry/support/sphere.js";import{maxScale as s}from"../../support/mathUtils.js";class c{get type(){return 0}constructor(e,t={}){this.geometry=e,this._transformation=n(),this._shaderTransformation=null,this._modelSpaceBoundingSphere=null,this._worldSpaceBoundingSphere=null,this.id=i(),this.layerViewUid=t.layerViewUid,this.graphicUid=t.graphicUid,this.castShadows=t.castShadows??!1,t.objectShaderTransformation&&this.objectShaderTransformationChanged(t.objectShaderTransformation)}get indexCount(){return this.geometry.indexCount}get faceCount(){return this.geometry.faceCount}get transformation(){return this._transformation}set transformation(t){e(this._transformation,t),this._worldSpaceBoundingSphere=null}get boundingInfo(){return this.geometry.boundingInfo}objectShaderTransformationChanged(e){e==null?this._shaderTransformation=null:(this._shaderTransformation??=n(),t(this._shaderTransformation,e,this.geometry.transformation)),this._worldSpaceBoundingSphere=null}get boundingSphere(){let e=this.boundingInfo?.sphere;if(!e)return a;if(this._worldSpaceBoundingSphere==null||this._modelSpaceBoundingSphere!==e){let t=new o;r(t.center,e.center,this.shaderTransformation),t.radius=e.radius*s(this.shaderTransformation),this._worldSpaceBoundingSphere=t,this._modelSpaceBoundingSphere=e}return this._worldSpaceBoundingSphere}get material(){return this.geometry.material}get shaderTransformation(){return this._shaderTransformation??this.transformation}get attributes(){return this.geometry.attributes}forEachHighlightOption(e){this.geometry.forEachHighlightOption(e)}get hasHighlights(){return this.geometry.hasHighlights}get occludees(){return this.geometry.occludees}get visible(){return this.geometry.visible}set visible(e){this.geometry.visible=e}get readPrimitivePosition(){return this.geometry.readPrimitivePosition}}class l extends c{}export{c as RenderGeometry,l as ValidatedRenderGeometry};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../../core/accessorSupport/decorators.js";import{update as r}from"../../../../core/arrayUtils.js";import{createTask as i}from"../../../../core/asyncUtils.js";import has from"../../../../core/has.js";import{IDENTITY as a,create as o}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{equals as s,invert as c,multiply as l,copy as u}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{set as d}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as f,ZEROS as p}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{removeMaybe as m,abortMaybe as h,destroyMaybe as g,releaseMaybe as _,releaseReferencedMaybe as v}from"../../../../core/maybe.js";import{throwIfAborted as y}from"../../../../core/promiseUtils.js";import{watch as b,syncAndInitial as x,initial as S,sync as C}from"../../../../core/reactiveUtils.js";import{signal as w}from"../../../../core/signal.js";import{pruneIndexArrays as ee}from"../../../../geometry/support/Indices.js";import{PixelType as te,ColorAttachment0 as T,ColorAttachment1 as E,ColorAttachment2 as D,DrawBufferNone as ne}from"../../../webgl/enums.js";import{minNearDistanceInMeters as re}from"../../state/NearFarHeuristic.js";import{debugFlags as ie}from"../../support/debugFlags.js";import{InternalRenderCategory as O,RenderNodeOutput as k,AllRenderNodeOutputs as A,AllInternalRenderNodeOutputs as j}from"../../webgl.js";import{FBOCache as ae}from"../core/FBOCache.js";import{RenderPassManager as oe}from"../core/renderPasses/RenderPassManager.js";import{isColor as se}from"../core/shaderLibrary/ShaderOutput.js";import{innerAtmosphereFadeStart as ce}from"../effects/atmosphere/atmosphereUtils.js";import{Blit as le}from"../effects/blit/Blit.js";import{maxHighlightsPerChannel as ue,renderHighlightBuffer as de}from"../effects/highlight/Highlight.js";import{RenderNodes as fe}from"../effects/RenderNodes.js";import{RenderPluginContext as pe}from"../effects/RenderPluginContext.js";import{RenderPluginManager as me}from"../effects/RenderPluginManager.js";import{OITBlend as he}from"../effects/transparency/OITBlend.js";import{WeatherFader as ge}from"../effects/WeatherFader.js";import{MergedRenderer as _e}from"../materials/renderers/MergedRenderer.js";import{RenderSceneResult as M}from"../parts/renderUtils.js";import{RendererPerformanceInfo as ve,PerformanceCategory as N}from"../statistics/RendererPerformanceInfo.js";import{AnimationTimer as ye}from"./AnimationTimer.js";import{AnimationTimeStep as P}from"./AnimationTimeStep.js";import{BoundingInfo as be}from"./BoundingInfo.js";import{Compositor as xe}from"./Compositor.js";import{DepthRange as F}from"./DepthRange.js";import{depthRangeFromScene as I}from"./depthRangeUtils.js";import{EmissionFader as Se}from"./EmissionFader.js";import{MainFramebuffer as Ce}from"./MainFramebuffer.js";import{NavigationDepthCache as we}from"./NavigationDepthCache.js";import{blendingColorAlphaClear as L}from"./OrderIndependentTransparency.js";import{RenderContext as R,defaultRenderOccludedMask as z}from"./RenderContext.js";import{RendererBase as Te}from"./RendererBase.js";import{setupFeatureDefaults as B}from"./RenderFeature.js";import{RenderPluginInput as Ee}from"./RenderPluginInput.js";import{ShadowMap as De}from"./ShadowMap.js";import Oe from"./SliceHelper.js";const ke=has(`disable-feature:async-navigation-3d-depth-readback`);let V=class extends Te{constructor(e,t,n,r,i){super({stage:e}),this._techniques=n,this._rctx=r,this._requestRender=i,this._pluginsHas={occludedHudElements:!1,hudElements:!1,water:!1},this.renderPassManager=new oe,this._isRendering=!1,this._backgroundColor=f(0,0,0,1),this._sliceHelper=new Oe,this._shadowAccumulator=null,this._shadowCastOptions=null,this.sceneDepthRange=w(F.Infinite),this._state=w(2),this._emissionFader=new Se,this._hasAnimations=!1,this._animationTimestep=new P,this._loadEdgeViewTask=null,this._edgeViewCallbacks=[],this._reprojectionMatrixVersion=w(0),this._renderHiddenTransparentEdges=()=>{},this._pluginInput=new Ee,this._hasTransparentGeometry=!1,this._releaseNodeInputs=e=>{for(let t of Ne)e.some(({name:e})=>e===t)&&this._pluginInput.release(t)},this._testsNeedsDepth=!1,this._fboCache=new ae(r),this._compositor=new xe(r,n),this._renderStateFeatures=w(B(e.view.qualityProfile));let a=new De(this._fboCache,e.isGlobal);this._renderContext=new R(this._rctx,a,n),this._framebuffer=new Ce(this._fboCache,this._bindParameters),this._performanceInfo=new ve(this._rctx),this._blit=new le(n),this.navigationDepthCache=new we(this._rctx,this._fboCache,n,()=>this._requestRender(0)),this._nodes=new fe(this._renderContext),this._plugins=new me(new pe(this._renderContext,n,t,e,i)),this._plugins.add(this.renderPassManager),this.weatherFader=new ge({view:e.view,context:this._renderContext}),this.addHandles([b(()=>e.view.state.camera,()=>i(),x),b(()=>ie.EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES,e=>{this._renderHiddenTransparentEdges=e?()=>this._renderEdges(0):()=>{},i()},S),b(()=>e.view.environment.background?.color,e=>{let t=e?e.toUnitRGBA():p;d(this._backgroundColor,t[0]*t[3],t[1]*t[3],t[2]*t[3],t[3]),i()},x),b(()=>e.view.environmentView.shadowsAvailable,e=>{this._bindParameters.shadowMap.enabled=e,this._requestRender(1)},x),b(()=>this._bindParameters.clouds.fadeFactor,()=>{this._bindParameters.fadeLighting(),this._requestRender(2)},C),b(()=>this._bindParameters.clouds.data?.state,()=>i(),C),b(()=>e.view.state.highlights,e=>{this._bindParameters.highlights=e,i()},S),b(()=>e.view.environment.lighting?.type===`sun`,e=>{this._bindParameters.enableFillLights=e,this._requestRender()},x)])}destroy(){this._gpuTimerHandle=m(this._gpuTimerHandle),this._nodes.destroy(),this._framebuffer.dispose(),this._shadowAccumulator=null,this._shadowCastOptions=null,this._loadEdgeViewTask=h(this._loadEdgeViewTask),this._edgeView=g(this._edgeView),this.renderPassManager.dispose(),this.weatherFader=g(this.weatherFader),this._releaseFBOs(),this._disposeOffscreenBuffers(),this.navigationDepthCache.destroy(),this._fboCache.destroy(),this._fboCache=null,this._renderContext.destroy(),this._plugins.destroy(),this._pluginInput=null,this._oitBlendOrNil=null,this._nodes=null,this._framebuffer=null,this._performanceInfo=null,be.prune(),_e.prune(),ee()}get renderContext(){return this._renderContext}get _bindParameters(){return this._renderContext.bind}get _oitBlend(){return this._oitBlendOrNil??=new he(this._techniques),this._oitBlendOrNil}get performanceInfo(){return this._performanceInfo}updateRenderFeatures(e){this._renderStateFeatures.value=B(e),this.updateGlobalIllumination(this.stage.view.environment.lighting.globalIllumination),this._requestRender()}updateGlobalIllumination(e){let t=B(this.stage.view.qualityProfile);for(let n of[0,1,2])this.setFeatureEnabled(11,n,e),this.setFeatureEnabled(10,n,e&&n===2),this.setFeatureEnabled(3,n,!e&&(t.get(n,3)??!1))}isFeatureEnabled(e,t=this._state.value){return this._renderStateFeatures.value.get(t,e)??!1}setFeatureEnabled(e,t,n){this.isFeatureEnabled(e,t)!==n&&(this._renderStateFeatures.mutate(r=>r.set(t,e,n)),this._requestRender())}setTime(e){this._renderContext.time=e}get hasReflections(){return this._bindParameters.screenSpaceReflections.enabled=this._pluginsHas.water&&this.isFeatureEnabled(4),this._bindParameters.screenSpaceReflections.enabled}get _hasHighlights(){return this._plugins.produces(10,2,4,18,12,13,14)}hasHighlight(e){return this._plugins.hasHighlight(e)}get _hasHUDHighlights(){return this._plugins.produces(10,12,13,14)}get hasAmbientIllumination(){return this._nodes.produces(O.AMBIENT_ILLUMINATION)}get hasGlobalIllumination(){return this.stage.renderView?.globalIllumination?.enabled??!1}get hasGlobalIlluminationHighQuality(){let e=this.stage.renderView?.globalIllumination;return this.hasGlobalIllumination&&e?.hasHighQuality===!0}get hasSMAA(){return this.isFeatureEnabled(0)}get _emissions(){let e=this._plugins.emissions;return this._hasTransparentGeometry?e:+(e===1||e===3)}get hasFloatBlend(){return this._rctx.driverTest.floatBufferBlend.result&&this.isFeatureEnabled(9)}get highResolutionAtmosphere(){return this.isFeatureEnabled(2)}get fboCache(){return this._fboCache}setShadowAccumulator(e){this._shadowAccumulator=e,this._shadowCastOptions&&e.setParameters(this._shadowCastOptions)}_releaseFBOs(){this._bindParameters.hudOcclusion=_(this._bindParameters.hudOcclusion),this._bindParameters.depth=null}_disposeOffscreenBuffers(){this._framebuffer.dispose();let e=this._bindParameters;e.globalIllumination=_(e.globalIllumination),e.reprojection.lastFrameDepth=_(e.reprojection.lastFrameDepth),e.reprojection.lastFrameEmission=_(e.reprojection.lastFrameEmission),this._disposeBindBuffers()}_disposeBindBuffers(){this._bindParameters.shadowMap.disposeOutputs()}get updating(){return this._loadEdgeViewTask&&!this._loadEdgeViewTask.finished||this._edgeView?.updating||this._plugins.updating||this.weatherFader?.updating||!this.isCameraFinal}loadEdgeView(){return this._loadEdgeViewTask||=i(async e=>{let{EdgeView:t}=await import(`./edgeRendering/EdgeView.js`);y(e);let n=this._edgeView=new t({rctx:this._rctx,renderSR:this.stage.view.renderSpatialReference,isGlobal:this.stage.view.stage.isGlobal,techniques:this._techniques,setNeedsRender:()=>this._requestRender(),schedule:Pe(this.stage.view.resourceController)});return this.addHandles(b(()=>n.updating,()=>this._requestRender(),C)),this._requestRender(),this._edgeViewCallbacks.forEach(e=>e(n)),this._edgeViewCallbacks.length=0,n}),this._loadEdgeViewTask.promise}withEdgeView(e){this.loadEdgeView().catch(()=>{}),this._edgeView==null?this._edgeViewCallbacks.push(e):e(this._edgeView)}get edgeView(){return this._edgeView}get isCameraFinal(){return this._reprojectionMatrixVersion.value>=0&&s(this._bindParameters.reprojection.matrix,a)}set _reprojectionMatrix(e){r(this._bindParameters.reprojection.matrix,e)&&this._reprojectionMatrixVersion.value++}get shadowsEnabled(){return!!this._bindParameters.shadowMap.enabled}setParameters(e){e.shadowCast&&(this._shadowCastOptions={...this._shadowCastOptions,...e.shadowCast},this._shadowAccumulator?.setParameters(e.shadowCast))}set slice(e){this._sliceHelper.update(e)&&this._requestRender()}get plugins(){return this._plugins}commit(e,t){return this._isRendering&&console.warn(`Renderer.modify called while rendering`),super.commit(e,t,this._plugins.context)?(this.updateHasFlags(),!0):!1}addRenderer(e){this._plugins.add(e)}removeRenderer(e){this._plugins.remove(e)}get occludedRequiresStencil(){return this._occludedRequiresOccludeeStencil||this.occludedRequiresIntegratedMeshStencil}get _occludedRequiresOccludeeStencil(){return this._bindParameters.hasOccludees&&!!(this.plugins.renderOccludedFlags&8)}get occludedRequiresIntegratedMeshStencil(){return this._plugins.produces(0,0)&&this._plugins.produces(0,9)}updateHasFlags(){let has=this._pluginsHas;has.occludedHudElements=this._plugins.produces(0,13),has.hudElements=has.occludedHudElements||this._plugins.produces(0,...J),has.water=this._plugins.produces(4,19),this._bindParameters.hasOccludees=this._plugins.hasOccludees,this._requestRender()}updateAnimation(e,t){this._animationTimer??=new ye(e.camera,t),this._animationTimer.advance(e.camera,t,this._animationTimeDilation);let n=this._hasAnimations;return this._hasAnimations=this._plugins.updateAnimation(this._animationTimer),this._hasAnimations=this._nodes.updateAnimation(this._animationTimer)||this._hasAnimations,this._hasAnimations!==n&&(this._gpuTimerHandle=n?m(this._gpuTimerHandle):this.performanceInfo.enableGPUPerformanceInfo()),this._hasAnimations}get animationTimestep(){return this._animationTimestep.value}get _animationTimeDilation(){return this._animationTimestep.timeDilation}resetAnimation(){this._animationTimestep.clear()}tick(){this.fboCache.clean()}render(e,t,n=!1){try{this._isRendering=!0,this._needsOffscreenPrepass(e.camera,t)&&this._render(e,3,n).color?.release();let r=this._render(e,t,n);return t!==0&&this._disposeOffscreenBuffers(),r}catch(e){console.error(`Exception during rendering: ${e}:\n${e.stack}`)}finally{this._isRendering=!1}return new M(this._pluginInput.get(k.FINAL),null)}_needsOffscreenPrepass(e,t){return(t===1||t===2)&&(this.hasGlobalIllumination||this.hasReflections)&&(!this._framebuffer.hasColor||!this._bindParameters.reprojection.lastFrameCamera.equals(e))}_render(e,t,n){let r=t===0;this.performanceInfo.startFrame(),this.fboCache.frameStart(),this.fboCache.interactive=r,this._disposeBindBuffers();let{camera:i,contentCamera:a,mode:o,alignPixelEnabled:s}=e;this._state.value=o;let c=this._bindParameters,l=this.stage.view,u=this._renderContext.time;c.frameRendererTarget=t,c.output=0,c.alignPixelEnabled=s,c.metersPerRenderUnit=l.renderCoordsHelper.unitInMeters,c.decorations=!n,c.mainDepth=null,c.useFloatBlend.value=this.hasFloatBlend,c.slicePlane=!n||!this._sliceHelper.isDecoration?this._sliceHelper.plane:null,c.viewshedEnabled=this._nodes.produces(O.VIEWSHED),c.laserlinesEnabled=this._nodes.produces(O.LASERLINES),c.shadowAnalysisEnabled=!!this._shadowAccumulator?.active,c.cutFillComputationEnabled=this._nodes.produces(O.CUTFILL_COMPUTATION),c.cutFillVisualizationEnabled=this._nodes.produces(O.CUTFILL),this._ensureBindParameters(i,a),this._plugins.sortTestsTransparentOrderedSlots(je),this._plugins.prepareRender(),this._hasTransparentGeometry=this._plugins.produces(1,...U),this._emissionFader.update(c,this._emissions,u,l.qualitySettings.fadeDuration)&&this._requestRender(),this._renderOverlay(),i.setGLViewport(this._rctx);let d=this._framebuffer,f=d.initialize(i.fullWidth,i.fullHeight,this._backgroundColor);this.hasReflections?(f?.setName(`last frame color`),c.reprojection.lastFrameColor?.release(),c.reprojection.lastFrameColor=f):f?.release(),c.hasShadowHighlights=this._needsShadowHighlight&&!n,this._precompilePrepasses(),this.performanceInfo.advance(N.PREPARE);let p=this._computeShadowDepthRange(i);this._pluginInput.set(`normals`,this._renderNormals()),this._renderAmbientIlluminationAndDepth(),this._renderShadowMap(i,a,c.lighting.mainLight.direction,p),this._renderShadowAccumulation(p),d.bind(),c.mainDepth=d.depth.attachment,this._precompileShaders(r),c.output=0,this._renderOpaque(),this._renderPreTransparent(),this._renderTransparent(),this._3dGeometryRendered(),d.update(e=>this._renderNodes(O.CUTFILL_COMPUTATION,e)),this._pluginInput.set(O.FOCUSAREA_MASK,this._renderFocusAreaMask()),d.update(e=>this._renderNodes(O.TRANSPARENT_ENVIRONMENT,e)),d.update(e=>this._renderNodes(O.VIEWSHED,e)),d.update(e=>this._renderNodes(O.LASERLINES,e)),this._nodes.requireGeometryDepth&&(c.depth=v(c.depth)),d.update(e=>this._renderNodes(O.FOCUSAREA,e)),this._pluginInput.release(O.FOCUSAREA_MASK),d.update(e=>this._renderNodes(O.CUTFILL,e)),this._pluginInput.release(O.GROUND_DEPTH),d.update(e=>this._renderNodes(O.OCCLUDED,e)),this._pluginInput.set(`highlights`,this._renderHighlightPrepass());let m=t===2?this._renderObjectAndLayerIdColor():null;d.update(e=>this._renderNodes(k.COMPOSITE,e)),c.shadowMap.disposeOutputs(),c.shadowHighlight=_(c.shadowHighlight),d.update(e=>this._renderNodes(O.ANTIALIASING,e));let h=this._hasTransparentGeometry?2:1,g=c.emissions;c.emissions=0,this._hasHUDHighlights&&d.update(e=>this._renderHUD(h,e)),d.update(e=>this._renderNodes(O.HIGHLIGHT,e)),this._hasHUDHighlights||d.update(e=>this._renderHUD(h,e)),c.emissions=g,d.update(e=>this._renderNodes(O.MAGNIFIER,e)),d.update(e=>this._renderNodes(k.FINAL,e)),r&&(this._blit.toFramebuffer(d.color,c),ke||o!==2&&o!==0||this.navigationDepthCache.update(c,d.depth.attachment,u)),c.reprojection.lastFrameDepth?.release(),this.hasGlobalIllumination&&(c.reprojection.lastFrameDepth=c.depth),this._testsNeedsDepth&&(c.depth=v(c.depth)),this._releaseFBOs(),d.releaseDepth(),c.reprojection.lastFrameCamera.copyFrom(c.camera),this.fboCache.frameEnd();let y;return r||(y=d.color,y.retain()),this.performanceInfo.finishFrame(),new M(y,m)}_precompileShaders(e){++this._plugins.context.techniques.precompiling;let t=this._bindParameters;t.output=0;let n=t.emissions;if(this._precompileOpaqueGeometry(),this._nodes.precompile(O.OPAQUE_ENVIRONMENT,O.GAUSSIAN_SPLAT,O.OPAQUE_OCCLUSION_QUERY,O.VOXEL),this._precompileOpaqueGeometry(),t.output=3,this._plugins.precompile(...W),t.output=0,this._plugins.precompile(...W),this._hasTransparentGeometry){let e=this._pluginsHas.occludedHudElements;this._oitBlend.precompile(t,e,0),this._pluginsHas.hudElements&&this._oitBlend.precompile(t,!1,1),this._precompileTransparentGeometry(),t.hasTransparentEmission&&(t.emissions=3)}this._nodes.precompile(O.FOCUSAREA_MASK),this._compositor.precompile(this._usesPremultipliedAlphaBlit,!!this._needsEdges,t),this._hasTransparentGeometry||this._plugins.precompile(15),this._nodes.precompile(O.TRANSPARENT_ENVIRONMENT,O.VIEWSHED,O.CUTFILL_COMPUTATION,O.CUTFILL,O.LASERLINES,O.FOCUSAREA,O.OCCLUDED,O.ANTIALIASING),t.highlightMixTexture=t.highlights.length>1?this._rctx.emptyTexture:null,this._precompileHUD(0);let r=t.emissions;t.emissions=0,this._precompileHUD(0),this._precompileHUD(1),t.emissions=r,this._hasHighlights&&(t.highlights.forEach((e,n)=>{t.highlightLevel=n,this._precompileAllGeometry(10),this._hasHUDHighlights&&this._plugins.precompile(13,12)}),t.highlightLevel=null,this._nodes.precompile(O.HIGHLIGHT)),t.highlightMixTexture=null,this._nodes.precompile(k.COMPOSITE,O.MAGNIFIER),this._nodes.precompile(O.TRANSPARENT_NO_DEPTH),this._plugins.precompile(8),t.hasOpaqueEmission&&(t.transparentWithoutDepthEmissionDimmingPass=!0,this._plugins.precompile(8),t.transparentWithoutDepthEmissionDimmingPass=!1),e&&this._blit.precompile(),t.emissions=n,--this._plugins.context.techniques.precompiling}_renderFocusAreaMask(){let e=this._nodes.produce(O.FOCUSAREA_MASK,this._pluginInput);return e&&this.performanceInfo.advance(N.FOCUS_AREA_MASK),e}_renderObjectAndLayerIdColor(){if(!this._nodes.produces(O.OBJECT_AND_LAYER_ID_COLOR))return null;let e=this._bindParameters.output;++this._techniques.precompiling;let{width:t,height:n}=this._framebuffer.size,r=this.fboCache.acquire(t,n,O.OBJECT_AND_LAYER_ID_COLOR).acquireDepth(14);return r=this._renderNodes(O.OBJECT_AND_LAYER_ID_COLOR,r),--this._techniques.precompiling,this._bindParameters.output=e,r}finish(e){this._hasAnimations||this._animationTimestep.clear();let t=this.performanceInfo.gpuSamplingEnabled,n=e===0,r=n?this.performanceInfo.elapsedTime:0;if(n||t){let e=0;t?e=this.performanceInfo.totalGPUTimeSampler.last:(this._rctx.gl.finish(),e=this.performanceInfo.elapsedTime);let i=Math.max(r,e);this._animationTimestep.frame(i,n)}}readAccumulatedShadow(e){return this._shadowAccumulator?.readAccumulatedShadow(e[0],e[1])??0}readMainDepth(e,t){let{mainDepth:n,camera:r}=this._bindParameters;if(!n)return;let i=this.fboCache.acquire(this._framebuffer.size.width,this._framebuffer.size.height,`linear depth`);this._rctx.bindFramebuffer(i.fbo),r.setGLViewport(this._rctx),this._rctx.setScissorRect(e[0],e[1],e[2],e[3]),this._rctx.setScissorTestEnabled(!0),this._rctx.clearFramebuffer(p),this._compositor.blitDepthToLinearDepth(this._bindParameters,n),this._rctx.setScissorTestEnabled(!1),this._rctx.setScissorRect(0,0,this._rctx.gl.canvas.width,this._rctx.gl.canvas.width),i.fbo?.readPixels(e[0],e[1],e[2],e[3],6408,te.UNSIGNED_BYTE,t),i.release()}get _needsEdges(){return this._edgeView?.shouldRender()?this._edgeView:null}_renderEdges(e){let t=this._needsEdges;if(!t)return;let{width:n,height:r}=this._framebuffer.size,i=this.fboCache.acquire(n,r,`edges`);i.attachDepth(this._framebuffer.depth),this._rctx.bindFramebuffer(i.fbo),this._rctx.clearFramebuffer(p),t.render(this._bindParameters,e),i.detachDepth(),this._framebuffer.bind(),this._compositor.composite(this._bindParameters,i.getTexture()),i.release(),this.performanceInfo.advance(e===1?N.OPAQUE_EDGES:N.TRANSPARENT_EDGES)}_renderOverlay(){this._bindParameters.overlay=this.overlay?.render(this._renderContext.time),this._bindParameters.overlay&&this.performanceInfo.advance(N.OVERLAY)}_renderShadowMap(e,t,n,r){if(!this.shadowsEnabled)return;let i=this._bindParameters.shadowMap;if(i.start(e,n,r,this.isFeatureEnabled(5),this.stage.view.qualitySettings.maximumPixelRatio),this._needsShadowHighlight){this._renderShadowCascades(6,i),e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,t);let n=this._bindParameters.output;this._bindParameters.output=0,this._bindParameters.shadowHighlight=this._nodes.produce(O.SHADOW_HIGHLIGHT,this._pluginInput),this._bindParameters.output=n,i.disposeOutput(6),i.clear(),this._renderShadowCascades(7,i)}else this._renderShadowCascades(5);e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,this._bindParameters.contentCamera),this._needsShadowHighlight&&(this._bindParameters.depth=v(this._bindParameters.depth)),this.performanceInfo.advance(O.SHADOWMAP)}_precompileShadowCascades(e){this._bindParameters.shadowMap.cascades.length!==0&&this._precompileAllGeometry(e)}_renderShadowCascades(e,t=this._bindParameters.shadowMap){let n=this._bindParameters.output,r=e!==6;t.bindFramebuffer();for(let n of t.cascades)n.camera.setGLViewport(this._rctx),this._ensureBindParametersCamera(n.camera,n.camera),this.renderAllGeometry(e),r&&this._renderShadowNodes(t.renderTarget);t.finish(e),this._bindParameters.output=n}_renderShadowNodes(e){this._renderInternalNodeCategory(O.SHADOWMAP,e)}get _needsDepth(){return+this._nodes.requireGeometryDepth+ +this.hasReflections+ +this.hasGlobalIllumination+ +this._testsNeedsDepth+ +this._needsShadowHighlight}get _usesPremultipliedAlphaBlit(){return this._pluginsHas.hudElements}_renderAmbientIlluminationAndDepth(){let e=this._bindParameters;e.depth=_(this._bindParameters.depth);let t=this._pluginInput.get(`normals`);if(t){let n=this._nodes.produce(O.AMBIENT_ILLUMINATION,this._pluginInput);this._pluginInput.set(O.AMBIENT_ILLUMINATION,n),this._releaseGlobalIlluminationBuffers(),e.ssao=this.hasGlobalIllumination?null:n,e.globalIllumination=this.hasGlobalIllumination?n:null,e.globalIlluminationEnabled=e.globalIllumination!=null,n&&this.performanceInfo.advance(this.hasGlobalIlluminationHighQuality?N.AMBIENT_ILLUMINATION_HIGH_QUALITY:N.AMBIENT_ILLUMINATION);let r=this._needsDepth;if(r){let n=t.obtainAttachment(T);this._rctx.bindFramebuffer(t.fbo),this._rctx.clear(1024),this._renderGeometryWithoutNormals(3),e.depth=t.obtainDepthTexture(),e.depth?.retain(r-1),t.attachColor(n,T),n?.release(),this.performanceInfo.advance(N.DEPTH)}else t.detachDepth();this.hasAmbientIllumination&&this._pluginInput.release(`normals`)}else this._releaseGlobalIlluminationBuffers(),e.ssao=null,this._pluginInput.set(O.AMBIENT_ILLUMINATION,null),this._renderAllGeometryDepth()}_renderAllGeometryDepth(){let e=this._needsDepth;if(e===0)return;let{width:t,height:n}=this._framebuffer.size,r=this.fboCache.acquire(t,n,`geometry depth`,14);this._rctx.bindFramebuffer(r.fbo),this._rctx.clear(1280),this.renderAllGeometry(3),this._renderGaussianSplatPrepassDepth(r),this._bindParameters.depth=r.obtainDepthTexture(),this._bindParameters.depth?.retain(e-1),r.release(),this.performanceInfo.advance(N.DEPTH)}_renderGaussianSplatPrepassDepth(e){let t=this._shadowAccumulator;if(!t?.active||!t.requireGeometryDepth)return;let n=this._bindParameters.output;this._bindParameters.output=3,this._renderInternalNodeCategory(O.GAUSSIAN_SPLAT_DEPTH,e),this._bindParameters.output=n}_renderGaussianSplatDepthAndNormals(e){let t=this._bindParameters.output;this._bindParameters.output=4,this._renderInternalNodeCategory(O.GAUSSIAN_SPLAT_DEPTH,e),this._bindParameters.output=t}get _needsShadowDepthRange(){return this._bindParameters.shadowMap.enabled||!!this._shadowAccumulator?.active}_computeShadowDepthRange(e){if(!this._needsShadowDepthRange)return F.Zero;let t=I(e,this._plugins.plugins,this.stage.layers,0);return t.union(this._plugins.queryDepthRange(e)),t.union(this._nodes.queryDepthRange(O.SHADOWMAP,e)),t.near=Math.max(e.near,t.near),t.far=Math.min(e.far,t.far),t}updateSceneDepthRange(e){if(!this.stage.view.state.isGlobal||this.stage.view.renderCoordsHelper.getAltitude(e.eye)<ce){this.sceneDepthRange.value=F.Infinite;return}let t=e.clone();t.near=re,t.far=1e10;let n=I(t,this._plugins.plugins,this.stage.layers,1);n.union(this._plugins.queryDepthRange(t)),this.sceneDepthRange.value.equals(n)||(this.sceneDepthRange.value=n)}get _normalsRequired(){return this._nodes.require(`normals`,...A,O.VIEWSHED,O.LASERLINES)+ +!!this.hasAmbientIllumination}_precompilePrepasses(){let e=!!this._normalsRequired;if(e?(this._precompilePlugins(4,G),this._needsDepth&&this._precompilePlugins(3,K)):this._needsDepth&&this._precompileAllGeometry(3),this.shadowsEnabled&&(this._needsShadowHighlight?(this._nodes.precompile(O.SHADOW_HIGHLIGHT),this._precompileShadowCascades(6),this._precompileShadowCascades(7)):this._precompileShadowCascades(5)),this._shadowAccumulator?.active&&(this._nodes.precompile(O.SHADOW_ACCUMULATION),this._precompileAllGeometry(5)),this._shadowAccumulator?.active||e){let t=this._bindParameters.output;this._bindParameters.output=e?4:3,this._nodes.precompile(O.GAUSSIAN_SPLAT_DEPTH),this._bindParameters.output=t}(this.shadowsEnabled||this._shadowAccumulator?.active)&&this._nodes.precompile(O.SHADOWMAP),this.hasAmbientIllumination&&e&&this._nodes.precompile(O.AMBIENT_ILLUMINATION)}_renderNormals(){let e=this._normalsRequired;if(e===0)return;let{width:t,height:n}=this._framebuffer.size,r=this.fboCache.acquire(t,n,`normals`);r.acquireDepth(14),this._rctx.bindFramebuffer(r.fbo),this._rctx.clearFramebuffer(p,!0,!0),this._bindParameters.output=4,this._plugins.render(...G),this._renderGaussianSplatDepthAndNormals(r);let i=this._nodes.optional(`normals`,...A,O.VIEWSHED);return r.retain(e+i-1),this.performanceInfo.advance(N.NORMALS),r}_releaseGlobalIlluminationBuffers(){let e=this._bindParameters;e.reprojection.lastFrameDepth=_(e.reprojection.lastFrameDepth),e.globalIllumination=v(e.globalIllumination),e.globalIlluminationEnabled=!1}_precompileAllGeometry(e){let t=this._bindParameters.output;this._bindParameters.output=e,this._precompileOpaqueGeometry(),this._precompileTransparentGeometry(),this._plugins.precompile(...W),this._bindParameters.output=t}renderAllGeometry(e){this._bindParameters.output=e,this._renderOpaqueAndTransparentGeometry(e),this._renderTransparentGround()}precompileSlots(e,...t){for(let n of t)this._bindParameters.slot=n,e.precompile(this._renderContext)}precompileOccludedSlots(e,t){for(let n of t)this._renderContext.renderOccludedMask=n,this.precompileSlots(e,...q);this._renderContext.renderOccludedMask=z}renderSlots(e,...t){for(let n of t)this._bindParameters.slot=n,e.forAll(e=>{let t=e.acquireTechniques(this._renderContext);t&&e.render(this._renderContext,t)})}renderOccludedSlots(e,t){this._renderContext.renderOccludedMask=t,this.plugins.renderOccludedFlags>1&&this._plugins.render(9),this.renderSlots(e,...q),this._renderContext.renderOccludedMask=z}renderHUD(e){this._bindParameters.hudRenderStyle=e,this._plugins.render(...Me[e])}_renderHUDElements(e){this._bindParameters.hudRenderStyle=e,this._plugins.render(16),this.renderHUD(e),this._bindParameters.hudRenderStyle=e,this._plugins.render(14)}precompileViewshedShadowMap(){let e=this._bindParameters.output;this._bindParameters.output=8,this._precompileAllGeometry(8),this._nodes.precompile(O.SHADOWMAP),this._bindParameters.output=e}precompileCutFillDepth(){this._precompilePlugins(9,Y)}_precompilePlugins(e,t){let n=this._bindParameters.output;this._bindParameters.output=e,this._plugins.precompile(...t),this._bindParameters.output=n}renderViewshedShadowMap(e,t){let{camera:n,contentCamera:r}=this._bindParameters,i=this._bindParameters.output;e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,e),this.renderAllGeometry(8),this._renderShadowNodes(t),this._ensureBindParametersCamera(n,r),this._bindParameters.camera.setGLViewport(this._rctx),this._bindParameters.output=i}renderCutFillDepth(e){let{camera:t,contentCamera:n}=this._bindParameters,r=this._bindParameters.output;e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,e),this._bindParameters.output=9,this._plugins.render(...Y),this._ensureBindParametersCamera(t,n),t.setGLViewport(this._rctx),this._bindParameters.output=r}get _needsGroundDepth(){return this._bindParameters.cutFillVisualizationEnabled}_blitGroundDepth(){if(!this._needsGroundDepth)return null;let{width:e,height:t}=this._framebuffer.size,n=this.fboCache.acquire(e,t,O.GROUND_DEPTH,14);return this._rctx.blitFramebuffer(this._framebuffer.color.fbo,n.fbo,256),this._framebuffer.bind(),n}_renderOpaqueAndTransparentGeometry(e){this._bindParameters.output=e,this._renderOpaqueGeometry(),this._renderTransparentGeometry()}_renderGeometryWithoutNormals(e){this._bindParameters.output=e,this._plugins.render(...K)}_precompileOpaqueGeometry(){this._needsOpaquePass&&(this._plugins.precompile(...H),this._nodes.precompile(`opaque-color`))}_renderOpaqueGeometry(){this._plugins.render(...H)}_renderTransparentGeometry(){this._plugins.render(...U),this._hasTransparentGeometry&&this._plugins.render(15)}_renderTransparentGround(){this._plugins.render(...W)}_precompileHUD(e){if(!this._pluginsHas.hudElements)return;let t=this._bindParameters.output,n=this._bindParameters.hudRenderStyle,r=this._bindParameters.emissions;this._bindParameters.emissions=0,this._bindParameters.hudRenderStyle=e,this._bindParameters.output=1,this._plugins.precompile(...J),this._bindParameters.output=2,this._plugins.precompile(...J),this._bindParameters.output=0,this._oitBlend.precompile(this._bindParameters,!1,1),this._hasHighlights&&(this._bindParameters.output=10,this._plugins.precompile(...J)),this._bindParameters.emissions=r,this._bindParameters.output=t,this._bindParameters.hudRenderStyle=n}_renderHUD(e,t){if(!this._pluginsHas.hudElements)return t;let n=this._renderOIT(1,e);this._rctx.bindFramebuffer(t.fbo);let r=!!t.getTexture(E);return this._compositor.compositePreMultipliedAlpha(this._bindParameters,n.getTexture(),r),n.release(),this.performanceInfo.advance(e===0?N.HUD_OCCLUDED:N.HUD),t}get _needsShadowHighlight(){return this.shadowsEnabled&&this._plugins.produces(6,2,4)}_renderHighlightPrepass(){if(!this._hasHighlights)return;let{fboCache:e,_rctx:t,_bindParameters:n}=this,{width:r,height:i}=this._framebuffer.size,{highlights:a}=n,o=a.length>ue?3:1,s=e.acquire(r,i,`highlights`,o);s.acquireDepth(14);let c=this._plugins.produces(10,0);return c&&this._framebuffer.color.fbo&&s.fbo&&t.blitFramebuffer(this._framebuffer.color.fbo,s.fbo,1024),t.bindFramebuffer(s.fbo),t.gl.clearBufferuiv(6144,0,[0,0,0,0]),c||t.clear(1024),this._bindParameters.output=10,t.bindFramebuffer(s.fbo),de(t,e,r,i,n,()=>this._renderHighlightGeometries()),s.detachDepth(),this.performanceInfo.advance(N.HIGHLIGHTS),s.retain(this._nodes.require(`highlights`,...j)+this._nodes.optional(`highlights`,...j)-1),s}_renderHighlightGeometries(){this._plugins.render(...Ae),this._rctx.clear(256),this._renderHUDElements(2)}_renderShadowAccumulation(e){let t=this._shadowAccumulator;if(!t)return;t.updateDepthRange(e);let n=t.requireGeometryDepth;this._bindParameters.output=0;let r=this._nodes.produce(O.SHADOW_ACCUMULATION,this._pluginInput);t.didAccumulate&&this.performanceInfo.advance(N.ACCUMULATED_SHADOWS),this._pluginInput.set(O.SHADOW_ACCUMULATION,null),r?.release(),n&&(this._bindParameters.depth=v(this._bindParameters.depth))}renderShadowAccumulationShadowMap(e,t,n,r,i){let a=this.stage.view.qualitySettings.maximumPixelRatio;n.start(e,r,i,!0,a),this._renderShadowCascades(5,n),e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,t)}_precompileTransparentGeometry(){se(this._bindParameters.output)?(this._bindParameters.output=1,this._plugins.precompile(...U),this._hasTransparentGeometry&&this._plugins.precompile(15),this._bindParameters.output=2,this._plugins.precompile(...U),this._hasTransparentGeometry&&this._plugins.precompile(15),this._bindParameters.output=0):this._plugins.precompile(...U)}_renderOIT(e,t=2){let n=e===1,{width:r,height:i}=this._framebuffer.size,a=n?()=>this._renderHUDElements(t):()=>this._renderTransparentGeometry(),o=this._bindParameters,s=o.useFloatBlend.value?8:5,c=o.output;o.output=1;let l=n?`oit hud`:`oit`,u=this.fboCache.acquire(r,i,l,s).acquireColor(E,this.hasFloatBlend?7:0,`oit alpha`),d=o.hasEmission&&(e===0||t!==1);d&&u.acquireColor(D,s,`oit emissive`),n||u.attachDepth(this._framebuffer.depth),this._rctx.bindFramebuffer(u.fbo),this._rctx.clearFramebuffer(L),d&&this._rctx.clearBuffer(2,L),a(),u.detachDepth(),o.output=2;let f=this.fboCache.acquire(r,i,n?`oit front hud`:`oit front`);d&&f.acquireColor(E,s,`oit front emissive`),n?f.acquireDepth(this._hudDepthFormat):f.attachDepth(this._framebuffer.depth),this._rctx.bindFramebuffer(f.fbo),this._rctx.clearFramebuffer(p,n),a(),f.detachDepth();let m=this._pluginsHas.occludedHudElements&&!n,h=m&&o.emissions!==0?D:E;o.hudOcclusion=_(this._bindParameters.hudOcclusion),o.output=0;let g;return n?(g=this.fboCache.acquire(r,i,`oit composite hud`),this._rctx.bindFramebuffer(g.fbo),this._rctx.setClearColor(0,0,0,1e-13),this._rctx.clear(16384)):(o.emissions!==0&&this._framebuffer.ensureEmissionAttachment(),m&&(this._framebuffer.color.acquireColor(h,0,`hud occlusion`),this._rctx.clearBuffer(h-T,p)),this._framebuffer.bind()),this._oitBlend.blend(this._rctx,u,f,o,m,e,this._fboCache.debugCallback),g?.detachDepth(),n||(d&&(this._bindParameters.emissions=3),m&&(o.hudOcclusion=this._framebuffer.color.obtainAttachment(h))),f.release(),u.release(),o.output=c,g}get _hudDepthFormat(){return this.isFeatureEnabled(7)?14:13}get _needsOpaquePass(){return this.plugins.produces(0,...H)||this.plugins.produces(5,...H)||this.plugins.produces(3,3)}_renderOpaque(){let e=this._needsOpaquePass;e&&(this._plugins.render(0,1),this._pluginInput.set(O.GROUND_DEPTH,this._blitGroundDepth()),this._plugins.render(2,3));let t=this._framebuffer;t.update(t=>this._renderNodes(k.OPAQUE,t,e)),this.fboCache.debugCallback?.(k.OPAQUE,t.color.fbo),t.update(e=>this._renderNodes(O.OPAQUE_ENVIRONMENT,e)),this.fboCache.debugCallback?.(O.OPAQUE_ENVIRONMENT,t.color.fbo),this._renderEdges(1)}_renderPreTransparent(){this._framebuffer.update(e=>this._renderNodes(O.GAUSSIAN_SPLAT,e)),this.fboCache.debugCallback?.(O.GAUSSIAN_SPLAT,this._framebuffer.color.fbo),this._framebuffer.update(e=>this._renderNodes(O.OPAQUE_OCCLUSION_QUERY,e)),this.fboCache.debugCallback?.(O.OPAQUE_OCCLUSION_QUERY,this._framebuffer.color.fbo),this._framebuffer.update(e=>this._renderNodes(O.VOXEL,e)),this.fboCache.debugCallback?.(O.VOXEL,this._framebuffer.color.fbo)}_renderTransparent(){let e=this._framebuffer;if(this._renderHiddenTransparentEdges(),this._hasTransparentGeometry&&this._renderOIT(0),e.update(e=>this._renderNodes(k.TRANSPARENT,e,this._hasTransparentGeometry)),this.fboCache.debugCallback?.(k.TRANSPARENT,e.color.fbo),this._hasTransparentGeometry||this._plugins.render(15),this._renderEdges(0),this._bindParameters.ssao=_(this._bindParameters.ssao),e.update(e=>this._renderNodes(O.TRANSPARENT_NO_DEPTH,e)),this.fboCache.debugCallback?.(O.TRANSPARENT_NO_DEPTH,e.color.fbo),this._framebuffer.bind(),this._plugins.render(8),this._bindParameters.hasEmission){let e=this._rctx.setDrawBuffers([ne,E]);this._bindParameters.transparentWithoutDepthEmissionDimmingPass=!0,this._plugins.render(8),this._bindParameters.transparentWithoutDepthEmissionDimmingPass=!1,this._rctx.setDrawBuffers(e)}this.performanceInfo.advance(N.TRANSPARENT_MATERIAL_WITHOUT_DEPTH)}_renderNodes(e,t,n=!1){if(t.setName(e),this._pluginInput.set(e,t),!this._nodes.produces(e))return n&&this.performanceInfo.advance(e),t;let r=this._nodes.render(t,this._pluginInput,this._releaseNodeInputs);return this.performanceInfo.advance(e),this._fboCache.debugCallback?.(e,r.fbo),r}_renderInternalNodeCategory(e,t){if(!t)return;let n=t.name;try{this._renderNodes(e,t)}finally{this._pluginInput.set(e,null),t.setName(n)}}_3dGeometryRendered(){let e=this._bindParameters;this.hasReflections&&(e.depth=v(e.depth),e.reprojection.lastFrameColor=v(e.reprojection.lastFrameColor)),e.shadowMap.disposeOutput(5),e.reprojection.lastFrameEmission=_(e.reprojection.lastFrameEmission);let t=this._framebuffer.color.getAttachment(E)?.attachment;if((this.hasGlobalIllumination||this.hasReflections)&&t){let{width:n,height:r}=this._framebuffer.size,i=e.useFloatBlend.value?8:5;e.reprojection.lastFrameEmission=this.fboCache.acquire(n,r,`emissive`,i),this._blit.blitTexture(t,e,e.reprojection.lastFrameEmission.fbo)}}_ensureBindParameters(e,t){this._bindParameters.viewCamera=e,this._ensureBindParametersCamera(e,t),this._ensureBindParametersWeatherFader(),this._ensureBindParametersScreenSpaceReflections(),this._ensureBindParametersReprojection()}_ensureBindParametersCamera(e,t){this._bindParameters.camera=e,this._bindParameters.contentCamera=t}_ensureBindParametersWeatherFader(){this.stage.isGlobal&&((this._bindParameters.clouds.data||!this.weatherFader?.updating)&&(this._bindParameters.clouds.fade(this._bindParameters.camera,this.renderContext.time,this.stage.view.qualitySettings.fadeDuration,this.stage.view.state.stationary),this.weatherFader?.cleanupCubemap()),this._bindParameters.snowCover=this.weatherFader?.snowCover??0)}_ensureBindParametersScreenSpaceReflections(){let{time:e}=this.renderContext,{screenSpaceReflections:t}=this._bindParameters;if(this.hasReflections){this._ssrEnableTime??=e;let n=this.stage.view.qualitySettings.fadeDuration;t.fadeFactor=n>0?Math.min(n,e-this._ssrEnableTime)/n:1,t.fadeFactor<1&&this._requestRender()}else this._ssrEnableTime=null}_ensureBindParametersReprojection(){if(!(this.hasReflections||this.hasGlobalIllumination)){this._reprojectionMatrix=a;return}let{reprojection:e,camera:t}=this._bindParameters,{lastFrameCamera:n}=e,r=!n.equals(t);if(r?(c(Z,t.viewMatrix),c(X,t.projectionMatrix),l(Q,Z,X),l(Q,n.viewMatrix,Q),l(Q,n.projectionMatrix,Q),this._reprojectionMatrix=Q):this._reprojectionMatrix=a,this.hasGlobalIllumination){let{viewMatrix:t}=e;r?(l($,n.viewMatrix,Z),u(t,$)):u(t,a)}}addRenderNode(e){this._nodes.add(e),this._requestRender()}removeRenderNode(e){this._nodes.remove(e),this._requestRender()}updateLighting(e,t,n,r){this._bindParameters.updateLighting(e,t,n,r),this._requestRender(1)}get usedMemory(){return{fbos:this.fboCache.usedMemory,plugins:this._plugins.usedMemory,edges:this.edgeView?.usedMemory??0,clouds:this.weatherFader?.usedMemory??0}}get test(){}};e([t({readOnly:!0})],V.prototype,`highResolutionAtmosphere`,null),e([t()],V.prototype,`_edgeView`,void 0),e([t()],V.prototype,`updating`,null),e([t()],V.prototype,`_loadEdgeViewTask`,void 0),V=e([n(`esri.views.3d.webgl-engine.lib.Renderer`)],V);const H=[0,1,2,3],U=[7,6,4,5],W=[7,6],G=[0,1,2,4,...W],K=[3,5],q=[2,4,8],J=[16,12,14,13],Ae=[4,5,2,3,0,1,...W],je=[4,8,5,11],Me={0:[13],1:[12],2:[13,12],3:[13,12]},Y=[0,1,...W],Ne=[`normals`,`highlights`],X=o(),Z=o(),Q=o(),$=o();function Pe(e){return t=>e.immediate.schedule(t)}export{V as Renderer};
|
|
2
|
+
import{__decorate as e}from"tslib";import{property as t,subclass as n}from"../../../../core/accessorSupport/decorators.js";import{update as r}from"../../../../core/arrayUtils.js";import{createTask as i}from"../../../../core/asyncUtils.js";import has from"../../../../core/has.js";import{IDENTITY as a,create as o}from"../../../../core/libs/gl-matrix-2/factories/mat4f64.js";import{equals as s,invert as c,multiply as l,copy as u}from"../../../../core/libs/gl-matrix-2/math/mat4.js";import{set as d}from"../../../../core/libs/gl-matrix-2/math/vec4.js";import{fromValues as f,ZEROS as p}from"../../../../core/libs/gl-matrix-2/factories/vec4f64.js";import{removeMaybe as m,abortMaybe as h,destroyMaybe as g,releaseMaybe as _,releaseReferencedMaybe as v}from"../../../../core/maybe.js";import{throwIfAborted as y}from"../../../../core/promiseUtils.js";import{watch as b,syncAndInitial as x,initial as S,sync as C}from"../../../../core/reactiveUtils.js";import{signal as w}from"../../../../core/signal.js";import{pruneIndexArrays as ee}from"../../../../geometry/support/Indices.js";import{PixelType as te,ColorAttachment0 as T,ColorAttachment1 as E,ColorAttachment2 as D,DrawBufferNone as ne}from"../../../webgl/enums.js";import{minNearDistanceInMeters as re}from"../../state/NearFarHeuristic.js";import{debugFlags as ie}from"../../support/debugFlags.js";import{InternalRenderCategory as O,RenderNodeOutput as k,AllRenderNodeOutputs as A,AllInternalRenderNodeOutputs as j}from"../../webgl.js";import{FBOCache as ae}from"../core/FBOCache.js";import{RenderPassManager as oe}from"../core/renderPasses/RenderPassManager.js";import{isColor as se}from"../core/shaderLibrary/ShaderOutput.js";import{innerAtmosphereFadeStart as ce}from"../effects/atmosphere/atmosphereUtils.js";import{Blit as le}from"../effects/blit/Blit.js";import{maxHighlightsPerChannel as ue,renderHighlightBuffer as de}from"../effects/highlight/Highlight.js";import{RenderNodes as fe}from"../effects/RenderNodes.js";import{RenderPluginContext as pe}from"../effects/RenderPluginContext.js";import{RenderPluginManager as me}from"../effects/RenderPluginManager.js";import{OITBlend as he}from"../effects/transparency/OITBlend.js";import{WeatherFader as ge}from"../effects/WeatherFader.js";import{MergedRenderer as _e}from"../materials/renderers/MergedRenderer.js";import{RenderSceneResult as M}from"../parts/renderUtils.js";import{RendererPerformanceInfo as ve,PerformanceCategory as N}from"../statistics/RendererPerformanceInfo.js";import{AnimationTimer as ye}from"./AnimationTimer.js";import{AnimationTimeStep as P}from"./AnimationTimeStep.js";import{BoundingInfo as be}from"./BoundingInfo.js";import{Compositor as xe}from"./Compositor.js";import{DepthRange as F}from"./DepthRange.js";import{depthRangeFromScene as I}from"./depthRangeUtils.js";import{EmissionFader as Se}from"./EmissionFader.js";import{MainFramebuffer as Ce}from"./MainFramebuffer.js";import{NavigationDepthCache as we}from"./NavigationDepthCache.js";import{blendingColorAlphaClear as L}from"./OrderIndependentTransparency.js";import{RenderContext as R,defaultRenderOccludedMask as z}from"./RenderContext.js";import{RendererBase as Te}from"./RendererBase.js";import{setupFeatureDefaults as B}from"./RenderFeature.js";import{RenderPluginInput as Ee}from"./RenderPluginInput.js";import{ShadowMap as De}from"./ShadowMap.js";import Oe from"./SliceHelper.js";const ke=has(`disable-feature:async-navigation-3d-depth-readback`);let V=class extends Te{constructor(e,t,n,r,i){super({stage:e}),this._techniques=n,this._rctx=r,this._requestRender=i,this._pluginsHas={occludedHudElements:!1,hudElements:!1,water:!1},this.renderPassManager=new oe,this._isRendering=!1,this._backgroundColor=f(0,0,0,1),this._sliceHelper=new Oe,this._shadowAccumulator=null,this._shadowCastOptions=null,this.sceneDepthRange=w(F.Infinite),this._state=w(2),this._emissionFader=new Se,this._hasAnimations=!1,this._animationTimestep=new P,this._loadEdgeViewTask=null,this._edgeViewCallbacks=[],this._reprojectionMatrixVersion=w(0),this._renderHiddenTransparentEdges=()=>{},this._pluginInput=new Ee,this._hasTransparentGeometry=!1,this._releaseNodeInputs=e=>{for(let t of Ne)e.some(({name:e})=>e===t)&&this._pluginInput.release(t)},this._testsNeedsDepth=!1,this._fboCache=new ae(r),this._compositor=new xe(r,n),this._renderStateFeatures=w(B(e.view.qualityProfile));let a=new De(this._fboCache,e.isGlobal);this._renderContext=new R(this._rctx,a,n),this._framebuffer=new Ce(this._fboCache,this._bindParameters),this._performanceInfo=new ve(this._rctx),this._blit=new le(n),this.navigationDepthCache=new we(this._rctx,this._fboCache,n,()=>this._requestRender(0)),this._nodes=new fe(this._renderContext),this._plugins=new me(new pe(this._renderContext,n,t,e,i)),this._plugins.add(this.renderPassManager),this.weatherFader=new ge({view:e.view,context:this._renderContext}),this.addHandles([b(()=>e.view.state.camera,()=>i(),x),b(()=>ie.EDGES_SHOW_HIDDEN_TRANSPARENT_EDGES,e=>{this._renderHiddenTransparentEdges=e?()=>this._renderEdges(0):()=>{},i()},S),b(()=>e.view.environment.background?.color,e=>{let t=e?e.toUnitRGBA():p;d(this._backgroundColor,t[0]*t[3],t[1]*t[3],t[2]*t[3],t[3]),i()},x),b(()=>e.view.environmentView.shadowsAvailable,e=>{this._bindParameters.shadowMap.enabled=e,this._requestRender(1)},x),b(()=>this._bindParameters.clouds.fadeFactor,()=>{this._bindParameters.fadeLighting(),this._requestRender(2)},C),b(()=>this._bindParameters.clouds.data?.state,()=>i(),C),b(()=>e.view.state.highlights,e=>{this._bindParameters.highlights=e,i()},S),b(()=>e.view.environment.lighting?.type===`sun`,e=>{this._bindParameters.enableFillLights=e,this._requestRender()},x)])}destroy(){this._gpuTimerHandle=m(this._gpuTimerHandle),this._nodes.destroy(),this._framebuffer.dispose(),this._shadowAccumulator=null,this._shadowCastOptions=null,this._loadEdgeViewTask=h(this._loadEdgeViewTask),this._edgeView=g(this._edgeView),this.renderPassManager.dispose(),this.weatherFader=g(this.weatherFader),this._releaseFBOs(),this._disposeOffscreenBuffers(),this.navigationDepthCache.destroy(),this._fboCache.destroy(),this._fboCache=null,this._renderContext.destroy(),this._plugins.destroy(),this._pluginInput=null,this._oitBlendOrNil=null,this._nodes=null,this._framebuffer=null,this._performanceInfo=null,be.prune(),_e.prune(),ee()}get renderContext(){return this._renderContext}get _bindParameters(){return this._renderContext.bind}get _oitBlend(){return this._oitBlendOrNil??=new he(this._techniques),this._oitBlendOrNil}get performanceInfo(){return this._performanceInfo}updateRenderFeatures(e){this._renderStateFeatures.value=B(e),this.updateGlobalIllumination(this.stage.view.environment.lighting.globalIllumination),this._requestRender()}updateGlobalIllumination(e){let t=B(this.stage.view.qualityProfile);for(let n of[0,1,2])this.setFeatureEnabled(11,n,e),this.setFeatureEnabled(10,n,e&&n===2),this.setFeatureEnabled(3,n,!e&&(t.get(n,3)??!1))}isFeatureEnabled(e,t=this._state.value){return this._renderStateFeatures.value.get(t,e)??!1}setFeatureEnabled(e,t,n){this.isFeatureEnabled(e,t)!==n&&(this._renderStateFeatures.mutate(r=>r.set(t,e,n)),this._requestRender())}setTime(e){this._renderContext.time=e}get hasReflections(){return this._bindParameters.screenSpaceReflections.enabled=this._pluginsHas.water&&this.isFeatureEnabled(4),this._bindParameters.screenSpaceReflections.enabled}get _hasHighlights(){return this._plugins.produces(10,2,4,18,12,13,14)}hasHighlight(e){return this._plugins.hasHighlight(e)}get _hasHUDHighlights(){return this._plugins.produces(10,12,13,14)}get hasAmbientIllumination(){return this._nodes.produces(O.AMBIENT_ILLUMINATION)}get hasGlobalIllumination(){return this.stage.renderView?.globalIllumination?.enabled??!1}get hasGlobalIlluminationHighQuality(){let e=this.stage.renderView?.globalIllumination;return this.hasGlobalIllumination&&e?.hasHighQuality===!0}get hasSMAA(){return this.isFeatureEnabled(0)}get _emissions(){let e=this._plugins.emissions;return this._hasTransparentGeometry?e===2&&this.stage.view.environment.atmosphereEnabled?3:e:+(e===1||e===3)}get hasFloatBlend(){return this._rctx.driverTest.floatBufferBlend.result&&this.isFeatureEnabled(9)}get highResolutionAtmosphere(){return this.isFeatureEnabled(2)}get fboCache(){return this._fboCache}setShadowAccumulator(e){this._shadowAccumulator=e,this._shadowCastOptions&&e.setParameters(this._shadowCastOptions)}_releaseFBOs(){this._bindParameters.hudOcclusion=_(this._bindParameters.hudOcclusion),this._bindParameters.depth=null}_disposeOffscreenBuffers(){this._framebuffer.dispose();let e=this._bindParameters;e.globalIllumination=_(e.globalIllumination),e.reprojection.lastFrameDepth=_(e.reprojection.lastFrameDepth),e.reprojection.lastFrameEmission=_(e.reprojection.lastFrameEmission),this._disposeBindBuffers()}_disposeBindBuffers(){this._bindParameters.shadowMap.disposeOutputs()}get updating(){return this._loadEdgeViewTask&&!this._loadEdgeViewTask.finished||this._edgeView?.updating||this._plugins.updating||this.weatherFader?.updating||!this.isCameraFinal}loadEdgeView(){return this._loadEdgeViewTask||=i(async e=>{let{EdgeView:t}=await import(`./edgeRendering/EdgeView.js`);y(e);let n=this._edgeView=new t({rctx:this._rctx,renderSR:this.stage.view.renderSpatialReference,isGlobal:this.stage.view.stage.isGlobal,techniques:this._techniques,setNeedsRender:()=>this._requestRender(),schedule:Pe(this.stage.view.resourceController)});return this.addHandles(b(()=>n.updating,()=>this._requestRender(),C)),this._requestRender(),this._edgeViewCallbacks.forEach(e=>e(n)),this._edgeViewCallbacks.length=0,n}),this._loadEdgeViewTask.promise}withEdgeView(e){this.loadEdgeView().catch(()=>{}),this._edgeView==null?this._edgeViewCallbacks.push(e):e(this._edgeView)}get edgeView(){return this._edgeView}get isCameraFinal(){return this._reprojectionMatrixVersion.value>=0&&s(this._bindParameters.reprojection.matrix,a)}set _reprojectionMatrix(e){r(this._bindParameters.reprojection.matrix,e)&&this._reprojectionMatrixVersion.value++}get shadowsEnabled(){return!!this._bindParameters.shadowMap.enabled}setParameters(e){e.shadowCast&&(this._shadowCastOptions={...this._shadowCastOptions,...e.shadowCast},this._shadowAccumulator?.setParameters(e.shadowCast))}set slice(e){this._sliceHelper.update(e)&&this._requestRender()}get plugins(){return this._plugins}commit(e,t){return this._isRendering&&console.warn(`Renderer.modify called while rendering`),super.commit(e,t,this._plugins.context)?(this.updateHasFlags(),!0):!1}addRenderer(e){this._plugins.add(e)}removeRenderer(e){this._plugins.remove(e)}get occludedRequiresStencil(){return this._occludedRequiresOccludeeStencil||this.occludedRequiresIntegratedMeshStencil}get _occludedRequiresOccludeeStencil(){return this._bindParameters.hasOccludees&&!!(this.plugins.renderOccludedFlags&8)}get occludedRequiresIntegratedMeshStencil(){return this._plugins.produces(0,0)&&this._plugins.produces(0,9)}updateHasFlags(){let has=this._pluginsHas;has.occludedHudElements=this._plugins.produces(0,13),has.hudElements=has.occludedHudElements||this._plugins.produces(0,...J),has.water=this._plugins.produces(4,19),this._bindParameters.hasOccludees=this._plugins.hasOccludees,this._requestRender()}updateAnimation(e,t){this._animationTimer??=new ye(e.camera,t),this._animationTimer.advance(e.camera,t,this._animationTimeDilation);let n=this._hasAnimations;return this._hasAnimations=this._plugins.updateAnimation(this._animationTimer),this._hasAnimations=this._nodes.updateAnimation(this._animationTimer)||this._hasAnimations,this._hasAnimations!==n&&(this._gpuTimerHandle=n?m(this._gpuTimerHandle):this.performanceInfo.enableGPUPerformanceInfo()),this._hasAnimations}get animationTimestep(){return this._animationTimestep.value}get _animationTimeDilation(){return this._animationTimestep.timeDilation}resetAnimation(){this._animationTimestep.clear()}tick(){this.fboCache.clean()}render(e,t,n=!1){try{this._isRendering=!0,this._needsOffscreenPrepass(e.camera,t)&&this._render(e,3,n).color?.release();let r=this._render(e,t,n);return t!==0&&this._disposeOffscreenBuffers(),r}catch(e){console.error(`Exception during rendering: ${e}:\n${e.stack}`)}finally{this._isRendering=!1}return new M(this._pluginInput.get(k.FINAL),null)}_needsOffscreenPrepass(e,t){return(t===1||t===2)&&(this.hasGlobalIllumination||this.hasReflections)&&(!this._framebuffer.hasColor||!this._bindParameters.reprojection.lastFrameCamera.equals(e))}_render(e,t,n){let r=t===0;this.performanceInfo.startFrame(),this.fboCache.frameStart(),this.fboCache.interactive=r,this._disposeBindBuffers();let{camera:i,contentCamera:a,mode:o,alignPixelEnabled:s}=e;this._state.value=o;let c=this._bindParameters,l=this.stage.view,u=this._renderContext.time;c.frameRendererTarget=t,c.output=0,c.alignPixelEnabled=s,c.metersPerRenderUnit=l.renderCoordsHelper.unitInMeters,c.decorations=!n,c.mainDepth=null,c.useFloatBlend.value=this.hasFloatBlend,c.slicePlane=!n||!this._sliceHelper.isDecoration?this._sliceHelper.plane:null,c.viewshedEnabled=this._nodes.produces(O.VIEWSHED),c.laserlinesEnabled=this._nodes.produces(O.LASERLINES),c.shadowAnalysisEnabled=!!this._shadowAccumulator?.active,c.cutFillComputationEnabled=this._nodes.produces(O.CUTFILL_COMPUTATION),c.cutFillVisualizationEnabled=this._nodes.produces(O.CUTFILL),this._ensureBindParameters(i,a),this._plugins.sortTestsTransparentOrderedSlots(je),this._plugins.prepareRender(),this._hasTransparentGeometry=this._plugins.produces(1,...U),this._emissionFader.update(c,this._emissions,u,l.qualitySettings.fadeDuration)&&this._requestRender(),this._renderOverlay(),i.setGLViewport(this._rctx);let d=this._framebuffer,f=d.initialize(i.fullWidth,i.fullHeight,this._backgroundColor);this.hasReflections?(f?.setName(`last frame color`),c.reprojection.lastFrameColor?.release(),c.reprojection.lastFrameColor=f):f?.release(),c.hasShadowHighlights=this._needsShadowHighlight&&!n,this._precompilePrepasses(),this.performanceInfo.advance(N.PREPARE);let p=this._computeShadowDepthRange(i);this._pluginInput.set(`normals`,this._renderNormals()),this._renderAmbientIlluminationAndDepth(),this._renderShadowMap(i,a,c.lighting.mainLight.direction,p),this._renderShadowAccumulation(p),d.bind(),c.mainDepth=d.depth.attachment,this._precompileShaders(r),c.output=0,this._renderOpaque(),this._renderPreTransparent(),this._renderTransparent(),this._3dGeometryRendered(),d.update(e=>this._renderNodes(O.CUTFILL_COMPUTATION,e)),this._pluginInput.set(O.FOCUSAREA_MASK,this._renderFocusAreaMask()),d.update(e=>this._renderNodes(O.TRANSPARENT_ENVIRONMENT,e)),d.update(e=>this._renderNodes(O.VIEWSHED,e)),d.update(e=>this._renderNodes(O.LASERLINES,e)),this._nodes.requireGeometryDepth&&(c.depth=v(c.depth)),d.update(e=>this._renderNodes(O.FOCUSAREA,e)),this._pluginInput.release(O.FOCUSAREA_MASK),d.update(e=>this._renderNodes(O.CUTFILL,e)),this._pluginInput.release(O.GROUND_DEPTH),d.update(e=>this._renderNodes(O.OCCLUDED,e)),this._pluginInput.set(`highlights`,this._renderHighlightPrepass());let m=t===2?this._renderObjectAndLayerIdColor():null;d.update(e=>this._renderNodes(k.COMPOSITE,e)),c.shadowMap.disposeOutputs(),c.shadowHighlight=_(c.shadowHighlight),d.update(e=>this._renderNodes(O.ANTIALIASING,e));let h=this._hasTransparentGeometry?2:1,g=c.emissions;c.emissions=0,this._hasHUDHighlights&&d.update(e=>this._renderHUD(h,e)),d.update(e=>this._renderNodes(O.HIGHLIGHT,e)),this._hasHUDHighlights||d.update(e=>this._renderHUD(h,e)),c.emissions=g,d.update(e=>this._renderNodes(O.MAGNIFIER,e)),d.update(e=>this._renderNodes(k.FINAL,e)),r&&(this._blit.toFramebuffer(d.color,c),ke||o!==2&&o!==0||this.navigationDepthCache.update(c,d.depth.attachment,u)),c.reprojection.lastFrameDepth?.release(),this.hasGlobalIllumination&&(c.reprojection.lastFrameDepth=c.depth),this._testsNeedsDepth&&(c.depth=v(c.depth)),this._releaseFBOs(),d.releaseDepth(),c.reprojection.lastFrameCamera.copyFrom(c.camera),this.fboCache.frameEnd();let y;return r||(y=d.color,y.retain()),this.performanceInfo.finishFrame(),new M(y,m)}_precompileShaders(e){++this._plugins.context.techniques.precompiling;let t=this._bindParameters;t.output=0;let n=t.emissions;if(this._precompileOpaqueGeometry(),this._nodes.precompile(O.OPAQUE_ENVIRONMENT,O.GAUSSIAN_SPLAT,O.OPAQUE_OCCLUSION_QUERY,O.VOXEL),this._precompileOpaqueGeometry(),t.output=3,this._plugins.precompile(...W),t.output=0,this._plugins.precompile(...W),this._hasTransparentGeometry){let e=this._pluginsHas.occludedHudElements;this._oitBlend.precompile(t,e,0),this._pluginsHas.hudElements&&this._oitBlend.precompile(t,!1,1),this._precompileTransparentGeometry(),t.hasTransparentEmission&&(t.emissions=3)}this._nodes.precompile(O.FOCUSAREA_MASK),this._compositor.precompile(this._usesPremultipliedAlphaBlit,!!this._needsEdges,t),this._hasTransparentGeometry||this._plugins.precompile(15),this._nodes.precompile(O.TRANSPARENT_ENVIRONMENT,O.VIEWSHED,O.CUTFILL_COMPUTATION,O.CUTFILL,O.LASERLINES,O.FOCUSAREA,O.OCCLUDED,O.ANTIALIASING),t.highlightMixTexture=t.highlights.length>1?this._rctx.emptyTexture:null,this._precompileHUD(0);let r=t.emissions;t.emissions=0,this._precompileHUD(0),this._precompileHUD(1),t.emissions=r,this._hasHighlights&&(t.highlights.forEach((e,n)=>{t.highlightLevel=n,this._precompileAllGeometry(10),this._hasHUDHighlights&&this._plugins.precompile(13,12)}),t.highlightLevel=null,this._nodes.precompile(O.HIGHLIGHT)),t.highlightMixTexture=null,this._nodes.precompile(k.COMPOSITE,O.MAGNIFIER),this._nodes.precompile(O.TRANSPARENT_NO_DEPTH),this._plugins.precompile(8),t.hasOpaqueEmission&&(t.transparentWithoutDepthEmissionDimmingPass=!0,this._plugins.precompile(8),t.transparentWithoutDepthEmissionDimmingPass=!1),e&&this._blit.precompile(),t.emissions=n,--this._plugins.context.techniques.precompiling}_renderFocusAreaMask(){let e=this._nodes.produce(O.FOCUSAREA_MASK,this._pluginInput);return e&&this.performanceInfo.advance(N.FOCUS_AREA_MASK),e}_renderObjectAndLayerIdColor(){if(!this._nodes.produces(O.OBJECT_AND_LAYER_ID_COLOR))return null;let e=this._bindParameters.output;++this._techniques.precompiling;let{width:t,height:n}=this._framebuffer.size,r=this.fboCache.acquire(t,n,O.OBJECT_AND_LAYER_ID_COLOR).acquireDepth(14);return r=this._renderNodes(O.OBJECT_AND_LAYER_ID_COLOR,r),--this._techniques.precompiling,this._bindParameters.output=e,r}finish(e){this._hasAnimations||this._animationTimestep.clear();let t=this.performanceInfo.gpuSamplingEnabled,n=e===0,r=n?this.performanceInfo.elapsedTime:0;if(n||t){let e=0;t?e=this.performanceInfo.totalGPUTimeSampler.last:(this._rctx.gl.finish(),e=this.performanceInfo.elapsedTime);let i=Math.max(r,e);this._animationTimestep.frame(i,n)}}readAccumulatedShadow(e){return this._shadowAccumulator?.readAccumulatedShadow(e[0],e[1])??0}readMainDepth(e,t){let{mainDepth:n,camera:r}=this._bindParameters;if(!n)return;let i=this.fboCache.acquire(this._framebuffer.size.width,this._framebuffer.size.height,`linear depth`);this._rctx.bindFramebuffer(i.fbo),r.setGLViewport(this._rctx),this._rctx.setScissorRect(e[0],e[1],e[2],e[3]),this._rctx.setScissorTestEnabled(!0),this._rctx.clearFramebuffer(p),this._compositor.blitDepthToLinearDepth(this._bindParameters,n),this._rctx.setScissorTestEnabled(!1),this._rctx.setScissorRect(0,0,this._rctx.gl.canvas.width,this._rctx.gl.canvas.width),i.fbo?.readPixels(e[0],e[1],e[2],e[3],6408,te.UNSIGNED_BYTE,t),i.release()}get _needsEdges(){return this._edgeView?.shouldRender()?this._edgeView:null}_renderEdges(e){let t=this._needsEdges;if(!t)return;let{width:n,height:r}=this._framebuffer.size,i=this.fboCache.acquire(n,r,`edges`);i.attachDepth(this._framebuffer.depth),this._rctx.bindFramebuffer(i.fbo),this._rctx.clearFramebuffer(p),t.render(this._bindParameters,e),i.detachDepth(),this._framebuffer.bind(),this._compositor.composite(this._bindParameters,i.getTexture()),i.release(),this.performanceInfo.advance(e===1?N.OPAQUE_EDGES:N.TRANSPARENT_EDGES)}_renderOverlay(){this._bindParameters.overlay=this.overlay?.render(this._renderContext.time),this._bindParameters.overlay&&this.performanceInfo.advance(N.OVERLAY)}_renderShadowMap(e,t,n,r){if(!this.shadowsEnabled)return;let i=this._bindParameters.shadowMap;if(i.start(e,n,r,this.isFeatureEnabled(5),this.stage.view.qualitySettings.maximumPixelRatio),this._needsShadowHighlight){this._renderShadowCascades(6,i),e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,t);let n=this._bindParameters.output;this._bindParameters.output=0,this._bindParameters.shadowHighlight=this._nodes.produce(O.SHADOW_HIGHLIGHT,this._pluginInput),this._bindParameters.output=n,i.disposeOutput(6),i.clear(),this._renderShadowCascades(7,i)}else this._renderShadowCascades(5);e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,this._bindParameters.contentCamera),this._needsShadowHighlight&&(this._bindParameters.depth=v(this._bindParameters.depth)),this.performanceInfo.advance(O.SHADOWMAP)}_precompileShadowCascades(e){this._bindParameters.shadowMap.cascades.length!==0&&this._precompileAllGeometry(e)}_renderShadowCascades(e,t=this._bindParameters.shadowMap){let n=this._bindParameters.output,r=e!==6;t.bindFramebuffer();for(let n of t.cascades)n.camera.setGLViewport(this._rctx),this._ensureBindParametersCamera(n.camera,n.camera),this.renderAllGeometry(e),r&&this._renderShadowNodes(t.renderTarget);t.finish(e),this._bindParameters.output=n}_renderShadowNodes(e){this._renderInternalNodeCategory(O.SHADOWMAP,e)}get _needsDepth(){return+this._nodes.requireGeometryDepth+ +this.hasReflections+ +this.hasGlobalIllumination+ +this._testsNeedsDepth+ +this._needsShadowHighlight}get _usesPremultipliedAlphaBlit(){return this._pluginsHas.hudElements}_renderAmbientIlluminationAndDepth(){let e=this._bindParameters;e.depth=_(this._bindParameters.depth);let t=this._pluginInput.get(`normals`);if(t){let n=this._nodes.produce(O.AMBIENT_ILLUMINATION,this._pluginInput);this._pluginInput.set(O.AMBIENT_ILLUMINATION,n),this._releaseGlobalIlluminationBuffers(),e.ssao=this.hasGlobalIllumination?null:n,e.globalIllumination=this.hasGlobalIllumination?n:null,e.globalIlluminationEnabled=e.globalIllumination!=null,n&&this.performanceInfo.advance(this.hasGlobalIlluminationHighQuality?N.AMBIENT_ILLUMINATION_HIGH_QUALITY:N.AMBIENT_ILLUMINATION);let r=this._needsDepth;if(r){let n=t.obtainAttachment(T);this._rctx.bindFramebuffer(t.fbo),this._rctx.clear(1024),this._renderGeometryWithoutNormals(3),e.depth=t.obtainDepthTexture(),e.depth?.retain(r-1),t.attachColor(n,T),n?.release(),this.performanceInfo.advance(N.DEPTH)}else t.detachDepth();this.hasAmbientIllumination&&this._pluginInput.release(`normals`)}else this._releaseGlobalIlluminationBuffers(),e.ssao=null,this._pluginInput.set(O.AMBIENT_ILLUMINATION,null),this._renderAllGeometryDepth()}_renderAllGeometryDepth(){let e=this._needsDepth;if(e===0)return;let{width:t,height:n}=this._framebuffer.size,r=this.fboCache.acquire(t,n,`geometry depth`,14);this._rctx.bindFramebuffer(r.fbo),this._rctx.clear(1280),this.renderAllGeometry(3),this._renderGaussianSplatPrepassDepth(r),this._bindParameters.depth=r.obtainDepthTexture(),this._bindParameters.depth?.retain(e-1),r.release(),this.performanceInfo.advance(N.DEPTH)}_renderGaussianSplatPrepassDepth(e){let t=this._shadowAccumulator;if(!t?.active||!t.requireGeometryDepth)return;let n=this._bindParameters.output;this._bindParameters.output=3,this._renderInternalNodeCategory(O.GAUSSIAN_SPLAT_DEPTH,e),this._bindParameters.output=n}_renderGaussianSplatDepthAndNormals(e){let t=this._bindParameters.output;this._bindParameters.output=4,this._renderInternalNodeCategory(O.GAUSSIAN_SPLAT_DEPTH,e),this._bindParameters.output=t}get _needsShadowDepthRange(){return this._bindParameters.shadowMap.enabled||!!this._shadowAccumulator?.active}_computeShadowDepthRange(e){if(!this._needsShadowDepthRange)return F.Zero;let t=I(e,this._plugins.plugins,this.stage.layers,0);return this._plugins.unionDepthRange(e,t),this._nodes.unionDepthRange(O.SHADOWMAP,e,t),t.near=Math.max(e.near,t.near),t.far=Math.min(e.far,t.far),t}updateSceneDepthRange(e){if(!this.stage.view.state.isGlobal||this.stage.view.renderCoordsHelper.getAltitude(e.eye)<ce){this.sceneDepthRange.value=F.Infinite;return}let t=e.clone();t.near=re,t.far=1e10;let n=I(t,this._plugins.plugins,this.stage.layers,1);this._plugins.unionDepthRange(t,n),this.sceneDepthRange.value.equals(n)||(this.sceneDepthRange.value=n)}get _normalsRequired(){return this._nodes.require(`normals`,...A,O.VIEWSHED,O.LASERLINES)+ +!!this.hasAmbientIllumination}_precompilePrepasses(){let e=!!this._normalsRequired;if(e?(this._precompilePlugins(4,G),this._needsDepth&&this._precompilePlugins(3,K)):this._needsDepth&&this._precompileAllGeometry(3),this.shadowsEnabled&&(this._needsShadowHighlight?(this._nodes.precompile(O.SHADOW_HIGHLIGHT),this._precompileShadowCascades(6),this._precompileShadowCascades(7)):this._precompileShadowCascades(5)),this._shadowAccumulator?.active&&(this._nodes.precompile(O.SHADOW_ACCUMULATION),this._precompileAllGeometry(5)),this._shadowAccumulator?.active||e){let t=this._bindParameters.output;this._bindParameters.output=e?4:3,this._nodes.precompile(O.GAUSSIAN_SPLAT_DEPTH),this._bindParameters.output=t}(this.shadowsEnabled||this._shadowAccumulator?.active)&&this._nodes.precompile(O.SHADOWMAP),this.hasAmbientIllumination&&e&&this._nodes.precompile(O.AMBIENT_ILLUMINATION)}_renderNormals(){let e=this._normalsRequired;if(e===0)return;let{width:t,height:n}=this._framebuffer.size,r=this.fboCache.acquire(t,n,`normals`);r.acquireDepth(14),this._rctx.bindFramebuffer(r.fbo),this._rctx.clearFramebuffer(p,!0,!0),this._bindParameters.output=4,this._plugins.render(...G),this._renderGaussianSplatDepthAndNormals(r);let i=this._nodes.optional(`normals`,...A,O.VIEWSHED);return r.retain(e+i-1),this.performanceInfo.advance(N.NORMALS),r}_releaseGlobalIlluminationBuffers(){let e=this._bindParameters;e.reprojection.lastFrameDepth=_(e.reprojection.lastFrameDepth),e.globalIllumination=v(e.globalIllumination),e.globalIlluminationEnabled=!1}_precompileAllGeometry(e){let t=this._bindParameters.output;this._bindParameters.output=e,this._precompileOpaqueGeometry(),this._precompileTransparentGeometry(),this._plugins.precompile(...W),this._bindParameters.output=t}renderAllGeometry(e){this._bindParameters.output=e,this._renderOpaqueAndTransparentGeometry(e),this._renderTransparentGround()}precompileSlots(e,...t){for(let n of t)this._bindParameters.slot=n,e.precompile(this._renderContext)}precompileOccludedSlots(e,t){for(let n of t)this._renderContext.renderOccludedMask=n,this.precompileSlots(e,...q);this._renderContext.renderOccludedMask=z}renderSlots(e,...t){for(let n of t)this._bindParameters.slot=n,e.forAll(e=>{let t=e.acquireTechniques(this._renderContext);t&&e.render(this._renderContext,t)})}renderOccludedSlots(e,t){this._renderContext.renderOccludedMask=t,this.plugins.renderOccludedFlags>1&&this._plugins.render(9),this.renderSlots(e,...q),this._renderContext.renderOccludedMask=z}renderHUD(e){this._bindParameters.hudRenderStyle=e,this._plugins.render(...Me[e])}_renderHUDElements(e){this._bindParameters.hudRenderStyle=e,this._plugins.render(16),this.renderHUD(e),this._bindParameters.hudRenderStyle=e,this._plugins.render(14)}precompileViewshedShadowMap(){let e=this._bindParameters.output;this._bindParameters.output=8,this._precompileAllGeometry(8),this._nodes.precompile(O.SHADOWMAP),this._bindParameters.output=e}precompileCutFillDepth(){this._precompilePlugins(9,Y)}_precompilePlugins(e,t){let n=this._bindParameters.output;this._bindParameters.output=e,this._plugins.precompile(...t),this._bindParameters.output=n}renderViewshedShadowMap(e,t){let{camera:n,contentCamera:r}=this._bindParameters,i=this._bindParameters.output;e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,e),this.renderAllGeometry(8),this._renderShadowNodes(t),this._ensureBindParametersCamera(n,r),this._bindParameters.camera.setGLViewport(this._rctx),this._bindParameters.output=i}renderCutFillDepth(e){let{camera:t,contentCamera:n}=this._bindParameters,r=this._bindParameters.output;e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,e),this._bindParameters.output=9,this._plugins.render(...Y),this._ensureBindParametersCamera(t,n),t.setGLViewport(this._rctx),this._bindParameters.output=r}get _needsGroundDepth(){return this._bindParameters.cutFillVisualizationEnabled}_blitGroundDepth(){if(!this._needsGroundDepth)return null;let{width:e,height:t}=this._framebuffer.size,n=this.fboCache.acquire(e,t,O.GROUND_DEPTH,14);return this._rctx.blitFramebuffer(this._framebuffer.color.fbo,n.fbo,256),this._framebuffer.bind(),n}_renderOpaqueAndTransparentGeometry(e){this._bindParameters.output=e,this._renderOpaqueGeometry(),this._renderTransparentGeometry()}_renderGeometryWithoutNormals(e){this._bindParameters.output=e,this._plugins.render(...K)}_precompileOpaqueGeometry(){this._needsOpaquePass&&(this._plugins.precompile(...H),this._nodes.precompile(`opaque-color`))}_renderOpaqueGeometry(){this._plugins.render(...H)}_renderTransparentGeometry(){this._plugins.render(...U),this._hasTransparentGeometry&&this._plugins.render(15)}_renderTransparentGround(){this._plugins.render(...W)}_precompileHUD(e){if(!this._pluginsHas.hudElements)return;let t=this._bindParameters.output,n=this._bindParameters.hudRenderStyle,r=this._bindParameters.emissions;this._bindParameters.emissions=0,this._bindParameters.hudRenderStyle=e,this._bindParameters.output=1,this._plugins.precompile(...J),this._bindParameters.output=2,this._plugins.precompile(...J),this._bindParameters.output=0,this._oitBlend.precompile(this._bindParameters,!1,1),this._hasHighlights&&(this._bindParameters.output=10,this._plugins.precompile(...J)),this._bindParameters.emissions=r,this._bindParameters.output=t,this._bindParameters.hudRenderStyle=n}_renderHUD(e,t){if(!this._pluginsHas.hudElements)return t;let n=this._renderOIT(1,e);this._rctx.bindFramebuffer(t.fbo);let r=!!t.getTexture(E);return this._compositor.compositePreMultipliedAlpha(this._bindParameters,n.getTexture(),r),n.release(),this.performanceInfo.advance(e===0?N.HUD_OCCLUDED:N.HUD),t}get _needsShadowHighlight(){return this.shadowsEnabled&&this._plugins.produces(6,2,4)}_renderHighlightPrepass(){if(!this._hasHighlights)return;let{fboCache:e,_rctx:t,_bindParameters:n}=this,{width:r,height:i}=this._framebuffer.size,{highlights:a}=n,o=a.length>ue?3:1,s=e.acquire(r,i,`highlights`,o);s.acquireDepth(14);let c=this._plugins.produces(10,0);return c&&this._framebuffer.color.fbo&&s.fbo&&t.blitFramebuffer(this._framebuffer.color.fbo,s.fbo,1024),t.bindFramebuffer(s.fbo),t.gl.clearBufferuiv(6144,0,[0,0,0,0]),c||t.clear(1024),this._bindParameters.output=10,t.bindFramebuffer(s.fbo),de(t,e,r,i,n,()=>this._renderHighlightGeometries()),s.detachDepth(),this.performanceInfo.advance(N.HIGHLIGHTS),s.retain(this._nodes.require(`highlights`,...j)+this._nodes.optional(`highlights`,...j)-1),s}_renderHighlightGeometries(){this._plugins.render(...Ae),this._rctx.clear(256),this._renderHUDElements(2)}_renderShadowAccumulation(e){let t=this._shadowAccumulator;if(!t)return;t.updateDepthRange(e);let n=t.requireGeometryDepth;this._bindParameters.output=0;let r=this._nodes.produce(O.SHADOW_ACCUMULATION,this._pluginInput);t.didAccumulate&&this.performanceInfo.advance(N.ACCUMULATED_SHADOWS),this._pluginInput.set(O.SHADOW_ACCUMULATION,null),r?.release(),n&&(this._bindParameters.depth=v(this._bindParameters.depth))}renderShadowAccumulationShadowMap(e,t,n,r,i){let a=this.stage.view.qualitySettings.maximumPixelRatio;n.start(e,r,i,!0,a),this._renderShadowCascades(5,n),e.setGLViewport(this._rctx),this._ensureBindParametersCamera(e,t)}_precompileTransparentGeometry(){se(this._bindParameters.output)?(this._bindParameters.output=1,this._plugins.precompile(...U),this._hasTransparentGeometry&&this._plugins.precompile(15),this._bindParameters.output=2,this._plugins.precompile(...U),this._hasTransparentGeometry&&this._plugins.precompile(15),this._bindParameters.output=0):this._plugins.precompile(...U)}_renderOIT(e,t=2){let n=e===1,{width:r,height:i}=this._framebuffer.size,a=n?()=>this._renderHUDElements(t):()=>this._renderTransparentGeometry(),o=this._bindParameters,s=o.useFloatBlend.value?8:5,c=o.output;o.output=1;let l=n?`oit hud`:`oit`,u=this.fboCache.acquire(r,i,l,s).acquireColor(E,this.hasFloatBlend?7:0,`oit alpha`),d=o.hasEmission&&(e===0||t!==1);d&&u.acquireColor(D,s,`oit emissive`),n||u.attachDepth(this._framebuffer.depth),this._rctx.bindFramebuffer(u.fbo),this._rctx.clearFramebuffer(L),d&&this._rctx.clearBuffer(2,L),a(),u.detachDepth(),o.output=2;let f=this.fboCache.acquire(r,i,n?`oit front hud`:`oit front`);d&&f.acquireColor(E,s,`oit front emissive`),n?f.acquireDepth(this._hudDepthFormat):f.attachDepth(this._framebuffer.depth),this._rctx.bindFramebuffer(f.fbo),this._rctx.clearFramebuffer(p,n),a(),f.detachDepth();let m=this._pluginsHas.occludedHudElements&&!n,h=m&&o.emissions!==0?D:E;o.hudOcclusion=_(this._bindParameters.hudOcclusion),o.output=0;let g;return n?(g=this.fboCache.acquire(r,i,`oit composite hud`),this._rctx.bindFramebuffer(g.fbo),this._rctx.setClearColor(0,0,0,1e-13),this._rctx.clear(16384)):(o.emissions!==0&&this._framebuffer.ensureEmissionAttachment(),m&&(this._framebuffer.color.acquireColor(h,0,`hud occlusion`),this._rctx.clearBuffer(h-T,p)),this._framebuffer.bind()),this._oitBlend.blend(this._rctx,u,f,o,m,e,this._fboCache.debugCallback),g?.detachDepth(),n||(d&&(this._bindParameters.emissions=3),m&&(o.hudOcclusion=this._framebuffer.color.obtainAttachment(h))),f.release(),u.release(),o.output=c,g}get _hudDepthFormat(){return this.isFeatureEnabled(7)?14:13}get _needsOpaquePass(){return this.plugins.produces(0,...H)||this.plugins.produces(5,...H)||this.plugins.produces(3,3)}_renderOpaque(){let e=this._needsOpaquePass;e&&(this._plugins.render(0,1),this._pluginInput.set(O.GROUND_DEPTH,this._blitGroundDepth()),this._plugins.render(2,3));let t=this._framebuffer;t.update(t=>this._renderNodes(k.OPAQUE,t,e)),this.fboCache.debugCallback?.(k.OPAQUE,t.color.fbo),t.update(e=>this._renderNodes(O.OPAQUE_ENVIRONMENT,e)),this.fboCache.debugCallback?.(O.OPAQUE_ENVIRONMENT,t.color.fbo),this._renderEdges(1)}_renderPreTransparent(){this._framebuffer.update(e=>this._renderNodes(O.GAUSSIAN_SPLAT,e)),this.fboCache.debugCallback?.(O.GAUSSIAN_SPLAT,this._framebuffer.color.fbo),this._framebuffer.update(e=>this._renderNodes(O.OPAQUE_OCCLUSION_QUERY,e)),this.fboCache.debugCallback?.(O.OPAQUE_OCCLUSION_QUERY,this._framebuffer.color.fbo),this._framebuffer.update(e=>this._renderNodes(O.VOXEL,e)),this.fboCache.debugCallback?.(O.VOXEL,this._framebuffer.color.fbo)}_renderTransparent(){let e=this._framebuffer;if(this._renderHiddenTransparentEdges(),this._hasTransparentGeometry&&this._renderOIT(0),e.update(e=>this._renderNodes(k.TRANSPARENT,e,this._hasTransparentGeometry)),this.fboCache.debugCallback?.(k.TRANSPARENT,e.color.fbo),this._hasTransparentGeometry||this._plugins.render(15),this._renderEdges(0),this._bindParameters.ssao=_(this._bindParameters.ssao),e.update(e=>this._renderNodes(O.TRANSPARENT_NO_DEPTH,e)),this.fboCache.debugCallback?.(O.TRANSPARENT_NO_DEPTH,e.color.fbo),this._framebuffer.bind(),this._plugins.render(8),this._bindParameters.hasEmission){let e=this._rctx.setDrawBuffers([ne,E]);this._bindParameters.transparentWithoutDepthEmissionDimmingPass=!0,this._plugins.render(8),this._bindParameters.transparentWithoutDepthEmissionDimmingPass=!1,this._rctx.setDrawBuffers(e)}this.performanceInfo.advance(N.TRANSPARENT_MATERIAL_WITHOUT_DEPTH)}_renderNodes(e,t,n=!1){if(t.setName(e),this._pluginInput.set(e,t),!this._nodes.produces(e))return n&&this.performanceInfo.advance(e),t;let r=this._nodes.render(t,this._pluginInput,this._releaseNodeInputs);return this.performanceInfo.advance(e),this._fboCache.debugCallback?.(e,r.fbo),r}_renderInternalNodeCategory(e,t){if(!t)return;let n=t.name;try{this._renderNodes(e,t)}finally{this._pluginInput.set(e,null),t.setName(n)}}_3dGeometryRendered(){let e=this._bindParameters;this.hasReflections&&(e.depth=v(e.depth),e.reprojection.lastFrameColor=v(e.reprojection.lastFrameColor)),e.shadowMap.disposeOutput(5),e.reprojection.lastFrameEmission=_(e.reprojection.lastFrameEmission);let t=this._framebuffer.color.getAttachment(E)?.attachment;if((this.hasGlobalIllumination||this.hasReflections)&&t){let{width:n,height:r}=this._framebuffer.size,i=e.useFloatBlend.value?8:5;e.reprojection.lastFrameEmission=this.fboCache.acquire(n,r,`emissive`,i),this._blit.blitTexture(t,e,e.reprojection.lastFrameEmission.fbo)}}_ensureBindParameters(e,t){this._bindParameters.viewCamera=e,this._ensureBindParametersCamera(e,t),this._ensureBindParametersWeatherFader(),this._ensureBindParametersScreenSpaceReflections(),this._ensureBindParametersReprojection()}_ensureBindParametersCamera(e,t){this._bindParameters.camera=e,this._bindParameters.contentCamera=t}_ensureBindParametersWeatherFader(){this.stage.isGlobal&&((this._bindParameters.clouds.data||!this.weatherFader?.updating)&&(this._bindParameters.clouds.fade(this._bindParameters.camera,this.renderContext.time,this.stage.view.qualitySettings.fadeDuration,this.stage.view.state.stationary),this.weatherFader?.cleanupCubemap()),this._bindParameters.snowCover=this.weatherFader?.snowCover??0)}_ensureBindParametersScreenSpaceReflections(){let{time:e}=this.renderContext,{screenSpaceReflections:t}=this._bindParameters;if(this.hasReflections){this._ssrEnableTime??=e;let n=this.stage.view.qualitySettings.fadeDuration;t.fadeFactor=n>0?Math.min(n,e-this._ssrEnableTime)/n:1,t.fadeFactor<1&&this._requestRender()}else this._ssrEnableTime=null}_ensureBindParametersReprojection(){if(!(this.hasReflections||this.hasGlobalIllumination)){this._reprojectionMatrix=a;return}let{reprojection:e,camera:t}=this._bindParameters,{lastFrameCamera:n}=e,r=!n.equals(t);if(r?(c(Z,t.viewMatrix),c(X,t.projectionMatrix),l(Q,Z,X),l(Q,n.viewMatrix,Q),l(Q,n.projectionMatrix,Q),this._reprojectionMatrix=Q):this._reprojectionMatrix=a,this.hasGlobalIllumination){let{viewMatrix:t}=e;r?(l($,n.viewMatrix,Z),u(t,$)):u(t,a)}}addRenderNode(e){this._nodes.add(e),this._requestRender()}removeRenderNode(e){this._nodes.remove(e),this._requestRender()}updateLighting(e,t,n,r){this._bindParameters.updateLighting(e,t,n,r),this._requestRender(1)}get usedMemory(){return{fbos:this.fboCache.usedMemory,plugins:this._plugins.usedMemory,edges:this.edgeView?.usedMemory??0,clouds:this.weatherFader?.usedMemory??0}}get test(){}};e([t({readOnly:!0})],V.prototype,`highResolutionAtmosphere`,null),e([t()],V.prototype,`_edgeView`,void 0),e([t()],V.prototype,`updating`,null),e([t()],V.prototype,`_loadEdgeViewTask`,void 0),V=e([n(`esri.views.3d.webgl-engine.lib.Renderer`)],V);const H=[0,1,2,3],U=[7,6,4,5],W=[7,6],G=[0,1,2,4,...W],K=[3,5],q=[2,4,8],J=[16,12,14,13],Ae=[4,5,2,3,0,1,...W],je=[4,8,5,11],Me={0:[13],1:[12],2:[13,12],3:[13,12]},Y=[0,1,...W],Ne=[`normals`,`highlights`],X=o(),Z=o(),Q=o(),$=o();function Pe(e){return t=>e.immediate.schedule(t)}export{V as Renderer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{subtract as e}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as t}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{estimateNumberArrayMemory as n,estimateNestedObjectMemory as r}from"../../../../core/memoryEstimations.js";import{isFloat32Array as i}from"../../../../core/typedArrayUtil.js";import{newDoubleArray as a}from"../../../../geometry/support/DoubleArray.js";import{newFloatArray as o}from"../../../../geometry/support/FloatArray.js";import{noBudget as s}from"../../../support/Scheduler.js";import{intersectRayTriangles as c}from"./RayIntersections.js";class l{constructor(e,t,n,r){this.firstTriangle=e,this.numTriangles=t,this.nodeOffset=n,this.leafCount=r}}class u{constructor(e,t,n,r=!1,c=[]){this.indices=e,this.numTriangles=t,this.positions=n,this._nextRange=0,this._nextLeaf=0,this._ranges=[];let
|
|
2
|
+
import{subtract as e}from"../../../../core/libs/gl-matrix-2/math/vec3.js";import{create as t}from"../../../../core/libs/gl-matrix-2/factories/vec3f64.js";import{estimateNumberArrayMemory as n,estimateNestedObjectMemory as r}from"../../../../core/memoryEstimations.js";import{isFloat32Array as i}from"../../../../core/typedArrayUtil.js";import{newDoubleArray as a}from"../../../../geometry/support/DoubleArray.js";import{newFloatArray as o}from"../../../../geometry/support/FloatArray.js";import{noBudget as s}from"../../../support/Scheduler.js";import{intersectRayTriangles as c}from"./RayIntersections.js";class l{constructor(e,t,n,r,i){this.firstTriangle=e,this.numTriangles=t,this.nodeOffset=n,this.leafCount=r,this.triangleOrder=i}}class u{constructor(e,t,n,r=!1,c=[],u=[]){this.indices=e,this.numTriangles=t,this.positions=n,this._nextRange=0,this._nextLeaf=0,this._ranges=[];let d=0,f=0;for(let e=0;e<=c.length;e++){let n=e<c.length?c[e]:t;if(n===d)continue;let r=n-d,i=2**Math.ceil(Math.log2(Math.ceil(r/32)));this._ranges.push(new l(d,r,f,i,u[e])),d=n,f+=2*i-1}this._bounds=i(n.data)?o(f*6,!0):a(f*6),this._nextParent=this._ranges.length?this._ranges[0].leafCount-2:-1,r||this.advance(s)}advance(e){let{indices:t,positions:n,_bounds:r}=this,{data:i,stride:a}=n;for(;this._nextRange<this._ranges.length&&!e.done;){let{firstTriangle:n,numTriangles:o,nodeOffset:s,leafCount:c,triangleOrder:l}=this._ranges[this._nextRange],u=c-1;for(;this._nextLeaf<c&&!e.done;){let d=this._nextLeaf++,f=n+Math.floor(d*o/c),p=n+Math.floor((d+1)*o/c),m=(s+u+d)*6,h=1/0,g=1/0,_=1/0,v=-1/0,y=-1/0,b=-1/0;for(let e=f;e<p;e++){let r=l?n+l[e-n]:e;for(let e=0;e<3;e++){let n=t[r*3+e]*a,o=i[n],s=i[n+1],c=i[n+2];h=Math.min(h,o),g=Math.min(g,s),_=Math.min(_,c),v=Math.max(v,o),y=Math.max(y,s),b=Math.max(b,c)}}r[m]=h,r[m+1]=g,r[m+2]=_,r[m+3]=v,r[m+4]=y,r[m+5]=b,e.madeProgress()}for(;this._nextLeaf===c&&this._nextParent>=0&&!e.done;){let t=Math.max(0,this._nextParent-16+1);for(;this._nextParent>=t;){let e=this._nextParent--,t=(s+e)*6,n=(s+e*2+1)*6,i=n+6;for(let e=0;e<3;e++)r[t+e]=Math.min(r[n+e],r[i+e]),r[t+e+3]=Math.max(r[n+e+3],r[i+e+3])}e.madeProgress()}this._nextLeaf===c&&this._nextParent<0&&(this._nextRange++,this._nextLeaf=0,this._nextParent=this._nextRange<this._ranges.length?this._ranges[this._nextRange].leafCount-2:-1)}}get ready(){return this._nextRange===this._ranges.length}get estimatedMemoryUsage(){return n(this._bounds)+r(this._ranges)}intersectRay(n,r,i,a){this.ready||this.advance(s);let o=e(t(),r,n);if(this.numTriangles===0||o[0]**2+o[1]**2+o[2]**2<1e-6)return;let l=[];for(let e=this._ranges.length-1;e>=0;e--){let{firstTriangle:t,numTriangles:r,nodeOffset:s,leafCount:u,triangleOrder:f}=this._ranges[e],p=u-1;for(l.push(0);l.length;){let e=l.pop();if(!d(this._bounds,(s+e)*6,n,o,i.tolerance))continue;if(e<p){l.push(e*2+1,e*2+2);continue}let m=e-p;c(n,o,Math.floor(m*r/u),Math.floor((m+1)*r/u),this.indices,this.positions.data,this.positions.stride,i.normalRequired,a,f,t)}}}}function d(e,t,n,r,i){let a=0,o=1/0;for(let s=0;s<3;s++){let c=e[t+s]-i,l=e[t+s+3]+i,u=n[s],d=r[s];if(d===0){if(u<c||u>l)return!1;continue}let f=(c-u)/d,p=(l-u)/d;if(a=Math.max(a,Math.min(f,p)),o=Math.min(o,Math.max(f,p)),a>o)return!1}return!0}export{u as TriangleRangeBVH};
|