@agrotools1/at-components 0.3.4 → 0.3.5
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/dist/AGraphicContainer-b6e32ab3.js +109 -0
- package/dist/APIKeyMixin-83218bd5.js +19 -0
- package/dist/Analysis-8c5616ab.js +31 -0
- package/dist/ArcGISCachedService-8da73861.js +47 -0
- package/dist/ArcGISService-1e7483eb.js +25 -0
- package/dist/AreaMeasurement2D-ee78c5ab.js +405 -0
- package/dist/AreaMeasurement3D-098fd9ea.js +488 -0
- package/dist/AttachmentInfo-1b2ece0a.js +34 -0
- package/dist/AttachmentQuery-470d5a03.js +18 -0
- package/dist/AttributeStore-f80857be.js +1707 -0
- package/dist/BaseDynamicLayerView2D-a5f201d7.js +63 -0
- package/dist/BingMapsLayer-4c95d39c.js +112 -0
- package/dist/Bitmap-d7c41f66.js +128 -0
- package/dist/BitmapContainer-af419f59.js +23 -0
- package/dist/BlendLayer-ced1717f.js +13 -0
- package/dist/BoundsStore-030e1112.js +63 -0
- package/dist/BufferObject-6f0ccf08.js +100 -0
- package/dist/BufferView-83825b1b.js +683 -0
- package/dist/BuildingSceneLayer-67d67dd9.js +535 -0
- package/dist/Button-b96d4e96.js +36 -0
- package/dist/CSVLayer-0d54cccb.js +208 -0
- package/dist/CSVSourceWorker-00c7e147.js +367 -0
- package/dist/CatalogDynamicGroupLayerView2D-e1b747eb.js +66 -0
- package/dist/CatalogFootprintLayerView2D-4d654b8c.js +76 -0
- package/dist/CatalogLayer-fdcebf46.js +262 -0
- package/dist/CatalogLayerView2D-d872dec4.js +52 -0
- package/dist/ClassBreaksDefinition-0f6902fe.js +18 -0
- package/dist/ColorMaterial.glsl-0f79d1d3.js +64 -0
- package/dist/ColorSet-1f170190.js +45 -0
- package/dist/ColorStop-81b2ebbf.js +29 -0
- package/dist/Container-5cca9103.js +521 -0
- package/dist/CustomParametersMixin-fa9fc8f5.js +12 -0
- package/dist/DefaultMaterial.glsl-ea170d90.js +42 -0
- package/dist/DefaultMaterial_COLOR_GAMMA-e9199fb6.js +653 -0
- package/dist/DefaultTheme-e76e0ce4.js +130 -0
- package/dist/DeleteForwardEditsParameters-114413db.js +18 -0
- package/dist/DimensionLayer-5caa9d6d.js +129 -0
- package/dist/DirectLineMeasurement3D-6d3a316a.js +449 -0
- package/dist/DistanceMeasurement2D-7090d647.js +303 -0
- package/dist/DoubleArray-40bc6f82.js +25 -0
- package/dist/Dropdown/Checklist/Dropdown.Checklist.d.ts +17 -17
- package/dist/Dropdown/Dropdown.core.d.ts +6 -4
- package/dist/Dropdown/Dropdown.types.d.ts +1 -1
- package/dist/EdgeProcessingWorker-94aed8c4.js +63 -0
- package/dist/EditBusLayer-dcf477a3.js +107 -0
- package/dist/ElevationInfo-a456026a.js +56 -0
- package/dist/ElevationLayer-6061b8f4.js +129 -0
- package/dist/ElevationQuery-ec17e2cc.js +598 -0
- package/dist/ElevationSamplerWorker-beaaeaeb.js +62 -0
- package/dist/ExportImageParameters-56040230.js +66 -0
- package/dist/ExportStrategy-7d1b4a0c.js +93 -0
- package/dist/ExportWMSImageParameters-0b3d33ed.js +33 -0
- package/dist/External-9a57bcf0.js +110 -0
- package/dist/FeatureCollectionSnappingSource-b589f9ce.js +130 -0
- package/dist/FeatureCommandQueue-d1572e0d.js +1244 -0
- package/dist/FeatureEffect-20d94762.js +39 -0
- package/dist/FeatureEffectLayer-017997f2.js +13 -0
- package/dist/FeatureFilter-73c8c240.js +27 -0
- package/dist/FeatureLayer-ecf9f4ea.js +693 -0
- package/dist/FeatureLayerBase-1ffc64a0.js +148 -0
- package/dist/FeatureLayerSource-0acdac77.js +444 -0
- package/dist/FeatureLayerView2D-6f0d2580.js +1967 -0
- package/dist/FeaturePipelineWorker-77d06d4f.js +3633 -0
- package/dist/FeatureReductionLayer-203415cc.js +225 -0
- package/dist/FeatureReductionSelection-4ba3cfda.js +22 -0
- package/dist/FeatureServiceSnappingSource-90c5e877.js +481 -0
- package/dist/FeatureServiceSnappingSourceWorker-9f33d320.js +747 -0
- package/dist/FeatureSet-29d82bc9.js +188 -0
- package/dist/FeatureStore-9d48217b.js +131 -0
- package/dist/FeatureTemplate-79cf9cb6.js +12 -0
- package/dist/FeatureType-30eece24.js +25 -0
- package/dist/FieldsIndex-7d8f3589.js +109 -0
- package/dist/Filter/components/Filter.types.d.ts +17 -0
- package/dist/Filter/index.d.ts +4 -0
- package/dist/Filter/tests/mocks.d.ts +6 -0
- package/dist/FormTemplate-18b193a8.js +350 -0
- package/dist/GeoJSONLayer-d2677013.js +236 -0
- package/dist/GeoJSONSourceWorker-4571c9d5.js +247 -0
- package/dist/GeoRSSLayer-320f17b2.js +73 -0
- package/dist/GeoRSSLayerView2D-4683eb47.js +140 -0
- package/dist/GeometryUtils-b855940e.js +403 -0
- package/dist/GraphicContainer-9bd07fb2.js +26 -0
- package/dist/GraphicManipulator-e96e9aa3.js +1499 -0
- package/dist/GraphicsLayer-964ed1f0.js +38 -0
- package/dist/GraphicsLayerView2D-83766b4b.js +114 -0
- package/dist/GraphicsSnappingSource-0bf5350b.js +273 -0
- package/dist/GraphicsView2D-3103ed12.js +620 -0
- package/dist/GroupLayer-2c099630.js +147 -0
- package/dist/GroupLayerView2D-abb8b6d5.js +98 -0
- package/dist/HUDMaterial.glsl-6e206016.js +65 -0
- package/dist/HighlightCounter-1d4774e1.js +41 -0
- package/dist/HighlightGraphicContainer-de26900b.js +18 -0
- package/dist/I3SBinaryReader-63c12e1b.js +310 -0
- package/dist/I3SLayerDefinitions-d0aa8265.js +55 -0
- package/dist/I3SUtil-277467e8.js +59 -0
- package/dist/IdentityManager-a1b54522.js +899 -0
- package/dist/ImageHistogramParameters-47cf0f1b.js +905 -0
- package/dist/ImageryLayer-89c92097.js +1799 -0
- package/dist/ImageryLayerView2D-e0c5549a.js +352 -0
- package/dist/ImageryTileLayer-c38364f3.js +2157 -0
- package/dist/ImageryTileLayerView2D-f659a87c.js +1110 -0
- package/dist/Indices-29975728.js +67 -0
- package/dist/Input/Input.core.d.ts +1 -1
- package/dist/Input/index.d.ts +1 -1
- package/dist/IntegratedMesh3DTilesLayer-8b851e87.js +112 -0
- package/dist/IntegratedMeshLayer-9ed738ba.js +141 -0
- package/dist/InteractiveAnalysisViewModel-c95e13c5.js +7397 -0
- package/dist/InterleavedLayout-f5e6ee23.js +163 -0
- package/dist/KMLLayer-3662a890.js +162 -0
- package/dist/KMLLayerView2D-3d172b6a.js +253 -0
- package/dist/KnowledgeGraphLayerView2D-086160b5.js +43 -0
- package/dist/LRUCache-948c7d75.js +32 -0
- package/dist/LabelClass-c0694878.js +135 -0
- package/dist/LabelMetric-39280634.js +400 -0
- package/dist/LaserlinePath.glsl-205f0e8a.js +64 -0
- package/dist/Laserlines.glsl-6f09c43e.js +65 -0
- package/dist/LayerFloorInfo-308449b6.js +15 -0
- package/dist/LayerView-2b3b1a70.js +206 -0
- package/dist/LercWorker-b007ee29.js +157 -0
- package/dist/LineOfSightLayer-99b48ebf.js +147 -0
- package/dist/LinkChartLayer-d69e2e36.js +1027 -0
- package/dist/List/components/List.d.ts +74 -0
- package/dist/List/components/List.types.d.ts +11 -0
- package/dist/List/index.d.ts +4 -0
- package/dist/List/tests/mocks.d.ts +7 -0
- package/dist/Lyr3DWorker-2fdd578b.js +82 -0
- package/dist/MagnifierPrograms-5042ccad.js +806 -0
- package/dist/MapImageLayer-f3e35db3.js +169 -0
- package/dist/MapImageLayerView2D-98cfaffb.js +146 -0
- package/dist/MapNotesLayer-6942570f.js +283 -0
- package/dist/MapNotesLayerView2D-b641bba4.js +161 -0
- package/dist/MapServiceLayerViewHelper-9111fb4f.js +288 -0
- package/dist/MeasurementWidgetContent-a66f382a.js +2642 -0
- package/dist/MediaLayer-585e1067.js +523 -0
- package/dist/MediaLayerView2D-74d90bf4.js +332 -0
- package/dist/MemCache-1532e921.js +227 -0
- package/dist/MemorySourceWorker-ba059303.js +222 -0
- package/dist/Mesh-43d631db.js +980 -0
- package/dist/MeshLocalVertexSpace-f9cc6881.js +19 -0
- package/dist/MultiOriginJSONSupport-ec8788e6.js +158 -0
- package/dist/OGCFeatureLayer-5e327659.js +211 -0
- package/dist/OGCFeatureLayerView2D-d0104fdc.js +82 -0
- package/dist/ObjectStack-2d389b76.js +21 -0
- package/dist/Octree-1dba17ba.js +495 -0
- package/dist/OpenStreetMapLayer-dc083119.js +30 -0
- package/dist/OperationalLayer-d43d80b1.js +44 -0
- package/dist/OrderByInfo-26301234.js +16 -0
- package/dist/OrderedLayer-36fe0e60.js +26 -0
- package/dist/OrientedImageryLayer-21689d88.js +216 -0
- package/dist/OverlayCompositing.glsl-f80836ca.js +65 -0
- package/dist/OverrideHelper-880a7e09.js +242 -0
- package/dist/PBFDecoderWorker-b5f6d890.js +213 -0
- package/dist/PointCloudLayer-899f6a49.js +197 -0
- package/dist/PointCloudUniqueValueRenderer-8a477087.js +115 -0
- package/dist/PointCloudWorker-4bea79e8.js +212 -0
- package/dist/PooledRBush-df73bc2a.js +272 -0
- package/dist/Popup-e01092b4.js +3990 -0
- package/dist/PortalLayer-daca6a23.js +126 -0
- package/dist/Program-8b1e5f48.js +694 -0
- package/dist/ProgramTemplate-e4360f44.js +35 -0
- package/dist/QueryEngine-ca1511e3.js +896 -0
- package/dist/QueryTask-c9fa71fa.js +119 -0
- package/dist/RasterSymbolizer-1644d7a7.js +3024 -0
- package/dist/RasterVFDisplayObject-7ec19876.js +581 -0
- package/dist/RasterWorker-2d320094.js +78 -0
- package/dist/RawBlockCache-86e6c5d3.js +185 -0
- package/dist/RealisticTree.glsl-65abf4e9.js +42 -0
- package/dist/RefreshableLayer-a0708abb.js +80 -0
- package/dist/RefreshableLayerView-2b6aca24.js +16 -0
- package/dist/Relationship-ef9ae528.js +64 -0
- package/dist/RelationshipQuery-8a39148b.js +22 -0
- package/dist/RenderingContext-e718bfed.js +889 -0
- package/dist/RibbonLine.glsl-e82fb3bb.js +65 -0
- package/dist/RouteLayer-06ecd24a.js +786 -0
- package/dist/RouteLayerView2D-26c96396.js +195 -0
- package/dist/SDFHelper-70cff23b.js +140 -0
- package/dist/SSAO.glsl-54f15911.js +43 -0
- package/dist/SSAOBlur.glsl-cbd829bc.js +42 -0
- package/dist/ScaleRangeLayer-dc6d9c0e.js +21 -0
- package/dist/SceneLayer-255b45af.js +542 -0
- package/dist/SceneLayerSnappingSource-8969a32e.js +218 -0
- package/dist/SceneLayerSnappingSourceWorker-17673240.js +112 -0
- package/dist/SceneLayerWorker-46a764a8.js +164 -0
- package/dist/SceneService-bbc3f4e5.js +215 -0
- package/dist/Scheduler-e3ad50f2.js +373 -0
- package/dist/Search/Search.d.ts +11 -0
- package/dist/Select/Multiple/Select.multiple.d.ts +1 -1
- package/dist/Select/Select.core.d.ts +1 -1
- package/dist/Select/index.d.ts +1 -1
- package/dist/ShadedColorMaterial.glsl-8e194f81.js +64 -0
- package/dist/SnappingOperation-d12c0cd0.js +48 -0
- package/dist/SourceLayerData-054d8bb6.js +116 -0
- package/dist/SpatialFilter-ba146c95.js +1701 -0
- package/dist/Stop-38c9a9d4.js +281 -0
- package/dist/StreamLayer-9d300b87.js +188 -0
- package/dist/StreamLayerView2D-d80b90e9.js +164 -0
- package/dist/StyleRepository-e8c44bab.js +2212 -0
- package/dist/SublayersOwner-469b921a.js +545 -0
- package/dist/SubtypeGroupLayer-e467307a.js +514 -0
- package/dist/SubtypeGroupLayerView2D-41ed7e6f.js +84 -0
- package/dist/TableConfig/TableConfig.d.ts +6 -6
- package/dist/Tabs/Tab/Tab.d.ts +3 -3
- package/dist/TechniqueInstance-9c0d4dcf.js +233 -0
- package/dist/TemporalLayer-011ac13a.js +23 -0
- package/dist/Texture-b28260ca.js +501 -0
- package/dist/TextureOnly.glsl-87d0e898.js +65 -0
- package/dist/Theme-bf54db6d.js +3426 -0
- package/dist/Tick-5be5a637.js +723 -0
- package/dist/TileContainer-09ca940a.js +31 -0
- package/dist/TileInfoTilemapCache-26485a76.js +38 -0
- package/dist/TileLayer-b0580f1d.js +194 -0
- package/dist/TileLayerView2D-e4561937.js +187 -0
- package/dist/TilemapCache-d2163c80.js +189 -0
- package/dist/TimeInfo-68d2df8b.js +42 -0
- package/dist/TimeOnly-bb600899.js +706 -0
- package/dist/Tooltip-927072f3.js +138 -0
- package/dist/TopFeaturesQuery-77f00fe7.js +32 -0
- package/dist/TurboLine-87dd880a.js +565 -0
- package/dist/UniqueValueRenderer-56a91680.js +1039 -0
- package/dist/UnknownLayer-6b7b3c5d.js +30 -0
- package/dist/UnknownTimeZone-e62caf07.js +15 -0
- package/dist/UnsupportedLayer-16a90c0a.js +31 -0
- package/dist/UpdateTracking2D-bf4e8a89.js +8566 -0
- package/dist/Util-6762e3c9.js +57 -0
- package/dist/VectorTileLayer-3c42b01b.js +544 -0
- package/dist/VectorTileLayerView2D-3af619aa.js +2108 -0
- package/dist/Version-9c75ca2b.js +33 -0
- package/dist/VertexArrayObject-e736d4c8.js +73 -0
- package/dist/VertexColor.glsl-69e78e7a.js +2683 -0
- package/dist/VertexSnappingCandidate-10823eb3.js +13 -0
- package/dist/VideoLayerView2D-68e687b0.js +124 -0
- package/dist/VoxelLayer-76005caf.js +631 -0
- package/dist/WFSLayer-398b281f.js +221 -0
- package/dist/WFSSourceWorker-7506acff.js +157 -0
- package/dist/WGLContainer-f2c4f5da.js +5426 -0
- package/dist/WMSLayer-6fbfc745.js +536 -0
- package/dist/WMSLayerView2D-63dda194.js +117 -0
- package/dist/WMTSLayer-6492359f.js +531 -0
- package/dist/WMTSLayerView2D-5daae3fe.js +142 -0
- package/dist/WebTileLayer-5f7595df.js +110 -0
- package/dist/WhereClause-a8fc45da.js +2766 -0
- package/dist/WorkerHandle-11931750.js +47 -0
- package/dist/WorkerTileHandler-b53b5efc.js +1539 -0
- package/dist/action-b5c3b319.js +198 -0
- package/dist/action-group-01e02696.js +145 -0
- package/dist/action-menu-e0ddae4e.js +1759 -0
- package/dist/apng-9d467a98.js +392 -0
- package/dist/arcade-71dc610e.js +229 -0
- package/dist/arcadeAsyncRuntime-146d9fb6.js +943 -0
- package/dist/arcadeUtils-f7ed3399.js +8741 -0
- package/dist/arcgis-knowledge-client-core-b8fef5b0.js +1218 -0
- package/dist/arcgis-knowledge-client-core-simd-d54c7150.js +1218 -0
- package/dist/arcgisLayers-8d42568b.js +152 -0
- package/dist/associatedFeatureServiceUtils-c50f28e9.js +92 -0
- package/dist/axisAngleDegrees-ea89c136.js +49 -0
- package/dist/basis_transcoder-39fbc6ae.js +1248 -0
- package/dist/calcite-action-264e28ab.js +22 -0
- package/dist/calcite-action-bar-6ec66445.js +303 -0
- package/dist/calcite-action-group-85d021dc.js +28 -0
- package/dist/calcite-button-8a5af2ce.js +228 -0
- package/dist/calcite-flow-9b5e43fd.js +128 -0
- package/dist/calcite-flow-item-0089f891.js +499 -0
- package/dist/calcite-icon-c20a8db7.js +16 -0
- package/dist/calcite-input-24e48df5.js +24 -0
- package/dist/calcite-label-9e4dcb66.js +79 -0
- package/dist/calcite-list-711dcec1.js +2135 -0
- package/dist/calcite-list-item-1a29c5f1.js +576 -0
- package/dist/calcite-list-item-group-b69dedb8.js +71 -0
- package/dist/calcite-loader-e8b209f6.js +14 -0
- package/dist/calcite-modal-5e518e4c.js +333 -0
- package/dist/calcite-notice-25463d4d.js +181 -0
- package/dist/calcite-option-113080c1.js +94 -0
- package/dist/calcite-scrim-423337f4.js +18 -0
- package/dist/calcite-select-cd1e7e86.js +231 -0
- package/dist/capabilities-e7ea2422.js +50 -0
- package/dist/chartCommon-beb757c5.js +256 -0
- package/dist/chartUtilsAm5-6eaf385e.js +2954 -0
- package/dist/clientSideDefaults-366deb67.js +39 -0
- package/dist/colorRamps-4ea8b8f7.js +38 -0
- package/dist/colorUtils-611a3fa1.js +164 -0
- package/dist/commonProperties-3f86f534.js +60 -0
- package/dist/computeTranslationToOriginAndRotation-db6fb1b6.js +60 -0
- package/dist/conditionalSlot-4bf2837a.js +27 -0
- package/dist/createConnection-0754c362.js +299 -0
- package/dist/dataUtils-ebb55aab.js +1421 -0
- package/dist/deduplicate-af05e046.js +89 -0
- package/dist/defaults-f025f8a3.js +31 -0
- package/dist/deleteForwardEdits-0b666266.js +13 -0
- package/dist/diffUtils-b887dbbc.js +90 -0
- package/dist/drapedUtils-82fba1a5.js +75 -0
- package/dist/earcut-da8e2a55.js +292 -0
- package/dist/edgeProcessing-d7499657.js +252 -0
- package/dist/editingSupport-4b7813cf.js +203 -0
- package/dist/editsZScale-4a6ee4aa.js +37 -0
- package/dist/elevationInfoUtils-c20557cb.js +126 -0
- package/dist/executeForIds-6a55aa95.js +14 -0
- package/dist/executeForTopCount-7ffc37ac.js +17 -0
- package/dist/executeForTopExtents-191307d3.js +17 -0
- package/dist/executeForTopIds-f644d448.js +17 -0
- package/dist/executeQueryJSON-c5616d7b.js +15 -0
- package/dist/executeQueryPBF-807fb886.js +152 -0
- package/dist/executeRelationshipQuery-d5a1463b.js +53 -0
- package/dist/executeTopFeaturesQuery-6bb737a8.js +18 -0
- package/dist/featureConversionUtils-8fd0a407.js +479 -0
- package/dist/featureLayerUtils-37c96c26.js +250 -0
- package/dist/featureLayerUtils-cd009ccc.js +142 -0
- package/dist/featureSetUtils-f54946cf.js +2530 -0
- package/dist/featuresetbase-5a262736.js +707 -0
- package/dist/featuresetgeom-b772f260.js +99 -0
- package/dist/featuresetstats-fecaae94.js +81 -0
- package/dist/featuresetstring-8d32b66d.js +95 -0
- package/dist/fetchService-41c786e9.js +33 -0
- package/dist/fieldProperties-0a31a020.js +33 -0
- package/dist/floatRGBA-bcce207e.js +20 -0
- package/dist/form-8bc80cb2.js +138 -0
- package/dist/geohashUtils-5b115834.js +85 -0
- package/dist/geojson-33ba4718.js +208 -0
- package/dist/geomasync-9ccbb40e.js +567 -0
- package/dist/geometryEngine-5d1edffb.js +192 -0
- package/dist/geometryEngineAsync-65f20167.js +217 -0
- package/dist/geometryEngineBase-4107554c.js +18463 -0
- package/dist/geometryEngineJSON-96ac95b3.js +46 -0
- package/dist/geometryEngineJSON-fecd2377.js +171 -0
- package/dist/geometryEngineWorker-3cc93f48.js +11 -0
- package/dist/geometryServiceUtils-99ffac76.js +28 -0
- package/dist/georeference-597e7b2a.js +291 -0
- package/dist/gif-24ef6c2c.js +323 -0
- package/dist/gltfexport-f5557b01.js +705 -0
- package/dist/groupLayerUtils-429ce1be.js +39 -0
- package/dist/heatmapUtils-582b52e1.js +45 -0
- package/dist/highlightReasons-6f0f9ef6.js +19 -0
- package/dist/hydrated-31a838fb.js +40 -0
- package/dist/i3s-3437a8f0.js +809 -0
- package/dist/icon-6764e79e.js +127 -0
- package/dist/imageBitmapUtils-d56cd963.js +23 -0
- package/dist/imageUtils-5fc5f2e1.js +69 -0
- package/dist/imageUtils-d0a1bdd3.js +89 -0
- package/dist/imageryUtils-31c938b0.js +43 -0
- package/dist/index-a8d87ec0.js +45604 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +26 -25
- package/dist/input-message-067fbc56.js +92 -0
- package/dist/input2-d25d1697.js +575 -0
- package/dist/interactive-79c8f5d7.js +80 -0
- package/dist/jsonContext-b5489a22.js +15 -0
- package/dist/jsonUtils-34961e68.js +86 -0
- package/dist/jsonUtils-65dc6fdf.js +476 -0
- package/dist/jsonUtils-980c608d.js +59 -0
- package/dist/kmlUtils-b1b9817a.js +112 -0
- package/dist/knowledgeGraphService-53d3ffbb.js +739 -0
- package/dist/knowledgegraph-bd84abd0.js +149 -0
- package/dist/labelUtils-333abe25.js +61 -0
- package/dist/labelingInfo-6d452fa4.js +46 -0
- package/dist/layersCreator-2cc797a3.js +151 -0
- package/dist/layersLoader-028db48b.js +197 -0
- package/dist/lazyLayerLoader-2dd5721b.js +10 -0
- package/dist/lclayout-44591238.js +773 -0
- package/dist/lengthUtils-7339106c.js +5 -0
- package/dist/lerc-wasm-49e10ccb.js +325 -0
- package/dist/libtess-asm-ac16428b.js +3673 -0
- package/dist/libtess-f4e34dcf.js +269 -0
- package/dist/lineSegment-0e4aefd8.js +76 -0
- package/dist/loadGLTFMesh-4afc2514.js +181 -0
- package/dist/loadable-a2fd544f.js +24 -0
- package/dist/loader-fbae5e8f.js +79 -0
- package/dist/lyr3DWorker-1fc30357.js +2108 -0
- package/dist/mapViewDeps-59a6c6c7.js +3052 -0
- package/dist/mediaLayerUtils-642a4077.js +35 -0
- package/dist/meshFeatureSet-91312223.js +126 -0
- package/dist/meshVertexSpaceUtils-48eddc77.js +58 -0
- package/dist/multidimensionalUtils-705f0902.js +290 -0
- package/dist/normalizeUtilsSync-71d587bd.js +181 -0
- package/dist/number-063f85f4.js +128 -0
- package/dist/objectResourceUtils-0e881546.js +1455 -0
- package/dist/observers-745d564e.js +30 -0
- package/dist/ogcFeatureUtils-80329692.js +206 -0
- package/dist/openCloseComponent-1c398ac3.js +37 -0
- package/dist/orientedBoundingBox-a29567df.js +447 -0
- package/dist/parser-65ddb097.js +488 -0
- package/dist/pbf-b0a9807c.js +215 -0
- package/dist/pbfQueryUtils-3cd28b30.js +422 -0
- package/dist/pe-wasm-fe3a1187.js +887 -0
- package/dist/persistable-36a3796e.js +89 -0
- package/dist/perspectiveUtils-b75aeded.js +42 -0
- package/dist/pieChart-bc276742.js +555 -0
- package/dist/plane-79192909.js +160 -0
- package/dist/popupUtils-022834aa.js +22 -0
- package/dist/popupUtils-4b2bd688.js +50 -0
- package/dist/portalItemUtils-052627b4.js +57 -0
- package/dist/portalLayers-3be98e63.js +312 -0
- package/dist/portalUtils-b665fd61.js +7 -0
- package/dist/programUtils-00a4e18d.js +59 -0
- package/dist/project-032d84cf.js +21 -0
- package/dist/projectPointToVector-3a48d9a2.js +14 -0
- package/dist/projectVectorToVector-4c6a3902.js +13 -0
- package/dist/quantityUtils-a39f9287.js +33 -0
- package/dist/quantizationUtils-4616cce9.js +68 -0
- package/dist/quat-5e906b75.js +104 -0
- package/dist/query-2ab99d18.js +89 -0
- package/dist/queryAttachments-15a42419.js +39 -0
- package/dist/queryEngineUtils-ff4789cd.js +21 -0
- package/dist/queryTopFeatures-5eb3ccc9.js +50 -0
- package/dist/queryZScale-62422052.js +12 -0
- package/dist/rasterProjectionHelper-b605f2ee.js +577 -0
- package/dist/rasterUtils-f2036a08.js +122 -0
- package/dist/rasterizingUtils-0c9cf9ce.js +46 -0
- package/dist/request-00229175.js +46 -0
- package/dist/requestImageUtils-90da2619.js +8 -0
- package/dist/resourceExtension-eadbfa3f.js +17 -0
- package/dist/resourceUtils-28b3c1e8.js +42 -0
- package/dist/resourceUtils-4e9ccf63.js +69 -0
- package/dist/resourceUtils-666fad8a.js +62 -0
- package/dist/saveAPIKeyUtils-1a4f92e5.js +8 -0
- package/dist/saveUtils-5b62c0b1.js +24 -0
- package/dist/scaleUtils-6153583e.js +23 -0
- package/dist/scrim-6e0e08c4.js +114 -0
- package/dist/serviceCapabilitiesUtils-96f8d393.js +64 -0
- package/dist/sourceUtils-5aee3b16.js +71 -0
- package/dist/sphere-512478f6.js +199 -0
- package/dist/statsWorker-183f2d29.js +37 -0
- package/dist/streamLayerUtils-a1e8e58a.js +31 -0
- package/dist/style.css +1 -1
- package/dist/styleUtils-49a8dabd.js +14 -0
- package/dist/styleUtils-52e000d6.js +75 -0
- package/dist/sublayerUtils-65a83d58.js +37 -0
- package/dist/substitute-0272cab6.js +52 -0
- package/dist/symbolColorUtils-261cba60.js +8 -0
- package/dist/symbolLayerUtils-e0203fd7.js +31 -0
- package/dist/symbologySnappingCandidates-eeda4ddf.js +221 -0
- package/dist/t9n-147b4f00.js +349 -0
- package/dist/testSVGPremultipliedAlpha-e3c11fd6.js +94 -0
- package/dist/timeSupport-3ddd7e4b.js +410 -0
- package/dist/triangle-28fd7dff.js +98 -0
- package/dist/unitConversionUtils-df3ffd70.js +17 -0
- package/dist/unitFormatUtils-d857519e.js +40 -0
- package/dist/uploadAssetErrors-18a6fad7.js +70 -0
- package/dist/uploadAssets-f2c89175.js +330 -0
- package/dist/utils-214b98cc.js +91 -0
- package/dist/utils-283fbef1.js +34 -0
- package/dist/utils-333b2280.js +2746 -0
- package/dist/utils-7202e24d.js +232 -0
- package/dist/utils-a7d5b733.js +419 -0
- package/dist/utils-cffde1b1.js +433 -0
- package/dist/utils-e4309923.js +79 -0
- package/dist/utils-e582955c.js +73 -0
- package/dist/utils3-d4b9a6af.js +75 -0
- package/dist/vec3-d9885b29.js +81 -0
- package/dist/vec42-d5675dd5.js +125 -0
- package/dist/versionUtils-2a4f90d3.js +161 -0
- package/dist/visualVariableUtils-d45d2e59.js +267 -0
- package/dist/webStyleSymbolUtils-5d8e6604.js +48 -0
- package/dist/webglDeps-c5e1e661.js +23 -0
- package/dist/wfsUtils-a004cee1.js +343 -0
- package/dist/workerHelper-a0956a07.js +11 -0
- package/dist/xyChart-e8a9ed1d.js +3335 -0
- package/package.json +1 -1
- package/dist/AGraphicContainer-0a4e0426.js +0 -109
- package/dist/APIKeyMixin-83e85532.js +0 -19
- package/dist/Analysis-c4011253.js +0 -31
- package/dist/ArcGISCachedService-1c6af1c1.js +0 -47
- package/dist/ArcGISService-1d880889.js +0 -25
- package/dist/AreaMeasurement2D-86006a71.js +0 -405
- package/dist/AreaMeasurement3D-1825243c.js +0 -488
- package/dist/AttachmentInfo-fa04c641.js +0 -34
- package/dist/AttachmentQuery-1450c2f7.js +0 -18
- package/dist/AttributeStore-02f947ea.js +0 -1707
- package/dist/BaseDynamicLayerView2D-eb11c757.js +0 -63
- package/dist/BingMapsLayer-7ad7d511.js +0 -112
- package/dist/Bitmap-14a020d8.js +0 -128
- package/dist/BitmapContainer-cc71fd24.js +0 -23
- package/dist/BlendLayer-e2f97659.js +0 -13
- package/dist/BoundsStore-8612892f.js +0 -63
- package/dist/BufferObject-bd932c2c.js +0 -100
- package/dist/BufferView-97ed14c7.js +0 -683
- package/dist/BuildingSceneLayer-3f5380c8.js +0 -535
- package/dist/Button-15031955.js +0 -36
- package/dist/CSVLayer-a76db6f4.js +0 -208
- package/dist/CSVSourceWorker-afe160ed.js +0 -367
- package/dist/CatalogDynamicGroupLayerView2D-be946494.js +0 -66
- package/dist/CatalogFootprintLayerView2D-14763204.js +0 -76
- package/dist/CatalogLayer-7d6228dd.js +0 -262
- package/dist/CatalogLayerView2D-13e32a42.js +0 -52
- package/dist/ClassBreaksDefinition-7040a7fc.js +0 -18
- package/dist/ColorMaterial.glsl-e56765f1.js +0 -64
- package/dist/ColorSet-4ff0a7b7.js +0 -45
- package/dist/ColorStop-1e154045.js +0 -29
- package/dist/Container-6e3b610b.js +0 -521
- package/dist/CustomParametersMixin-c01280c0.js +0 -12
- package/dist/DefaultMaterial.glsl-e7e23b90.js +0 -42
- package/dist/DefaultMaterial_COLOR_GAMMA-7fd21704.js +0 -653
- package/dist/DefaultTheme-3c5b433f.js +0 -130
- package/dist/DeleteForwardEditsParameters-7073c5e5.js +0 -18
- package/dist/DimensionLayer-f921dd3d.js +0 -129
- package/dist/DirectLineMeasurement3D-61d14af2.js +0 -449
- package/dist/DistanceMeasurement2D-b023b35c.js +0 -303
- package/dist/DoubleArray-1186b8b8.js +0 -25
- package/dist/Dropdown/Filter/Filter.types.d.ts +0 -17
- package/dist/Dropdown/Filter/test.mocks.d.ts +0 -6
- package/dist/Dropdown/List/Dropdown.List.d.ts +0 -73
- package/dist/Dropdown/List/List.types.d.ts +0 -11
- package/dist/Dropdown/List/test.mocks.d.ts +0 -7
- package/dist/EdgeProcessingWorker-cb6277ad.js +0 -63
- package/dist/EditBusLayer-9d740f8f.js +0 -107
- package/dist/ElevationInfo-581ff99d.js +0 -56
- package/dist/ElevationLayer-42b57d9b.js +0 -129
- package/dist/ElevationQuery-f6d0cf9f.js +0 -598
- package/dist/ElevationSamplerWorker-50d805bb.js +0 -62
- package/dist/ExportImageParameters-5b047f92.js +0 -66
- package/dist/ExportStrategy-b6c54d77.js +0 -93
- package/dist/ExportWMSImageParameters-ff5a3ac8.js +0 -33
- package/dist/External-695a389a.js +0 -110
- package/dist/FeatureCollectionSnappingSource-fdaed9e0.js +0 -130
- package/dist/FeatureCommandQueue-c2bd1a39.js +0 -1244
- package/dist/FeatureEffect-9ea1b3da.js +0 -39
- package/dist/FeatureEffectLayer-0fa169c4.js +0 -13
- package/dist/FeatureFilter-638c4cae.js +0 -27
- package/dist/FeatureLayer-2a419d3e.js +0 -693
- package/dist/FeatureLayerBase-7331e738.js +0 -148
- package/dist/FeatureLayerSource-733186fb.js +0 -444
- package/dist/FeatureLayerView2D-bc4994b6.js +0 -1967
- package/dist/FeaturePipelineWorker-5f68488c.js +0 -3633
- package/dist/FeatureReductionLayer-0c152478.js +0 -225
- package/dist/FeatureReductionSelection-f952512d.js +0 -22
- package/dist/FeatureServiceSnappingSource-4c02d5a3.js +0 -481
- package/dist/FeatureServiceSnappingSourceWorker-c2a1dc50.js +0 -747
- package/dist/FeatureSet-2c6b8e00.js +0 -188
- package/dist/FeatureStore-a26846c0.js +0 -131
- package/dist/FeatureTemplate-1b6b7e2d.js +0 -12
- package/dist/FeatureType-9e1f1a7d.js +0 -25
- package/dist/FieldsIndex-91711836.js +0 -109
- package/dist/FormTemplate-ae0cfb6e.js +0 -350
- package/dist/GeoJSONLayer-b2070c34.js +0 -236
- package/dist/GeoJSONSourceWorker-aecb5f9b.js +0 -247
- package/dist/GeoRSSLayer-3743b41f.js +0 -73
- package/dist/GeoRSSLayerView2D-098c24bc.js +0 -140
- package/dist/GeometryUtils-036c7f22.js +0 -403
- package/dist/GraphicContainer-ece3945e.js +0 -26
- package/dist/GraphicManipulator-bc92899f.js +0 -1499
- package/dist/GraphicsLayer-764f0324.js +0 -38
- package/dist/GraphicsLayerView2D-36908d0c.js +0 -114
- package/dist/GraphicsSnappingSource-2bb681c0.js +0 -273
- package/dist/GraphicsView2D-e9cf5cd6.js +0 -620
- package/dist/GroupLayer-5ea5b71b.js +0 -147
- package/dist/GroupLayerView2D-22ec9eaa.js +0 -98
- package/dist/HUDMaterial.glsl-80ab7d22.js +0 -65
- package/dist/HighlightCounter-36842e52.js +0 -41
- package/dist/HighlightGraphicContainer-10cb9671.js +0 -18
- package/dist/I3SBinaryReader-9dbdc661.js +0 -310
- package/dist/I3SLayerDefinitions-b56e2c87.js +0 -55
- package/dist/I3SUtil-5461dc89.js +0 -59
- package/dist/IdentityManager-bb063156.js +0 -899
- package/dist/ImageHistogramParameters-1f8e5179.js +0 -905
- package/dist/ImageryLayer-a807d3b3.js +0 -1799
- package/dist/ImageryLayerView2D-358a3267.js +0 -352
- package/dist/ImageryTileLayer-0f67f262.js +0 -2157
- package/dist/ImageryTileLayerView2D-2bc2bb67.js +0 -1110
- package/dist/Indices-0c5304f2.js +0 -67
- package/dist/IntegratedMesh3DTilesLayer-be69dca8.js +0 -112
- package/dist/IntegratedMeshLayer-3c070523.js +0 -141
- package/dist/InteractiveAnalysisViewModel-3005a4a6.js +0 -7397
- package/dist/InterleavedLayout-d37b99a2.js +0 -163
- package/dist/KMLLayer-2011c3c6.js +0 -162
- package/dist/KMLLayerView2D-5d17145f.js +0 -253
- package/dist/KnowledgeGraphLayerView2D-7172b91b.js +0 -43
- package/dist/LRUCache-39211cf9.js +0 -32
- package/dist/LabelClass-d1080628.js +0 -135
- package/dist/LabelMetric-ab56c6b3.js +0 -400
- package/dist/LaserlinePath.glsl-df8f92cc.js +0 -64
- package/dist/Laserlines.glsl-f7d93e3f.js +0 -65
- package/dist/LayerFloorInfo-3edeb9a2.js +0 -15
- package/dist/LayerView-1c58c8c6.js +0 -206
- package/dist/LercWorker-c7a2aca1.js +0 -157
- package/dist/LineOfSightLayer-3028e21f.js +0 -147
- package/dist/LinkChartLayer-988ae660.js +0 -1027
- package/dist/Lyr3DWorker-4c8c758f.js +0 -82
- package/dist/MagnifierPrograms-123961a3.js +0 -806
- package/dist/MapImageLayer-9241ad63.js +0 -169
- package/dist/MapImageLayerView2D-726e5c66.js +0 -146
- package/dist/MapNotesLayer-2d2db99b.js +0 -283
- package/dist/MapNotesLayerView2D-41f5790c.js +0 -161
- package/dist/MapServiceLayerViewHelper-8f5228ec.js +0 -288
- package/dist/MeasurementWidgetContent-504fd868.js +0 -2642
- package/dist/MediaLayer-e71ce661.js +0 -523
- package/dist/MediaLayerView2D-33c67404.js +0 -332
- package/dist/MemCache-413327b3.js +0 -227
- package/dist/MemorySourceWorker-b0e70dd0.js +0 -222
- package/dist/Mesh-98c4e050.js +0 -980
- package/dist/MeshLocalVertexSpace-7a7e4d4e.js +0 -19
- package/dist/MultiOriginJSONSupport-2fca3cc5.js +0 -158
- package/dist/OGCFeatureLayer-451fbd45.js +0 -211
- package/dist/OGCFeatureLayerView2D-d23b08d2.js +0 -82
- package/dist/ObjectStack-742b2ff3.js +0 -21
- package/dist/Octree-a3c8e90e.js +0 -495
- package/dist/OpenStreetMapLayer-9bb91f97.js +0 -30
- package/dist/OperationalLayer-fbfada66.js +0 -44
- package/dist/OrderByInfo-335eb561.js +0 -16
- package/dist/OrderedLayer-29b4ac64.js +0 -26
- package/dist/OrientedImageryLayer-aa2498e2.js +0 -216
- package/dist/OverlayCompositing.glsl-4b1e83c2.js +0 -65
- package/dist/OverrideHelper-74cc3959.js +0 -242
- package/dist/PBFDecoderWorker-fd40e0f9.js +0 -213
- package/dist/PointCloudLayer-64cdbbb2.js +0 -197
- package/dist/PointCloudUniqueValueRenderer-db9b3a98.js +0 -115
- package/dist/PointCloudWorker-a5eb5224.js +0 -212
- package/dist/PooledRBush-be6fe17a.js +0 -272
- package/dist/Popup-db250fe6.js +0 -3990
- package/dist/PortalLayer-a6ce110e.js +0 -126
- package/dist/Program-ecabc523.js +0 -694
- package/dist/ProgramTemplate-e5ce3b0f.js +0 -35
- package/dist/QueryEngine-87b2546b.js +0 -896
- package/dist/QueryTask-36400ec7.js +0 -119
- package/dist/RasterSymbolizer-cfd47847.js +0 -3024
- package/dist/RasterVFDisplayObject-d4c967ea.js +0 -581
- package/dist/RasterWorker-068ae23a.js +0 -78
- package/dist/RawBlockCache-9e8d4c35.js +0 -185
- package/dist/RealisticTree.glsl-adab8e44.js +0 -42
- package/dist/RefreshableLayer-eec34ca2.js +0 -80
- package/dist/RefreshableLayerView-ee06f08c.js +0 -16
- package/dist/Relationship-a7eb5489.js +0 -64
- package/dist/RelationshipQuery-4551bb04.js +0 -22
- package/dist/RenderingContext-9e8fac0d.js +0 -889
- package/dist/RibbonLine.glsl-5990bf5f.js +0 -65
- package/dist/RouteLayer-858bc482.js +0 -786
- package/dist/RouteLayerView2D-a70d519f.js +0 -195
- package/dist/SDFHelper-efca0a53.js +0 -140
- package/dist/SSAO.glsl-7670c1fc.js +0 -43
- package/dist/SSAOBlur.glsl-3523d6af.js +0 -42
- package/dist/ScaleRangeLayer-7f440b85.js +0 -21
- package/dist/SceneLayer-999bd23f.js +0 -542
- package/dist/SceneLayerSnappingSource-9420aaed.js +0 -218
- package/dist/SceneLayerSnappingSourceWorker-be67e552.js +0 -112
- package/dist/SceneLayerWorker-201939c2.js +0 -164
- package/dist/SceneService-318eff2f.js +0 -215
- package/dist/Scheduler-279ea0c3.js +0 -373
- package/dist/ShadedColorMaterial.glsl-bd2979d8.js +0 -64
- package/dist/SnappingOperation-5100da71.js +0 -48
- package/dist/SourceLayerData-50c2b980.js +0 -116
- package/dist/SpatialFilter-b6c6b2fc.js +0 -1701
- package/dist/Stop-196981da.js +0 -281
- package/dist/StreamLayer-37b818b8.js +0 -188
- package/dist/StreamLayerView2D-7f0f45bc.js +0 -164
- package/dist/StyleRepository-4e8fa398.js +0 -2212
- package/dist/SublayersOwner-90d10612.js +0 -545
- package/dist/SubtypeGroupLayer-959cabf8.js +0 -514
- package/dist/SubtypeGroupLayerView2D-95e63b42.js +0 -84
- package/dist/TechniqueInstance-bd190c26.js +0 -233
- package/dist/TemporalLayer-aacda167.js +0 -23
- package/dist/Texture-3618be49.js +0 -501
- package/dist/TextureOnly.glsl-fcca7034.js +0 -65
- package/dist/Theme-85608a9a.js +0 -3426
- package/dist/Tick-79e96104.js +0 -723
- package/dist/TileContainer-f1e7edd8.js +0 -31
- package/dist/TileInfoTilemapCache-2f882821.js +0 -38
- package/dist/TileLayer-db13a237.js +0 -194
- package/dist/TileLayerView2D-15af6be4.js +0 -187
- package/dist/TilemapCache-fc4b2c6c.js +0 -189
- package/dist/TimeInfo-39a9d4e1.js +0 -42
- package/dist/TimeOnly-b759457a.js +0 -706
- package/dist/Tooltip-0ba72b27.js +0 -138
- package/dist/TopFeaturesQuery-a11ecc39.js +0 -32
- package/dist/TurboLine-5e62d290.js +0 -565
- package/dist/UniqueValueRenderer-bf2f3234.js +0 -1039
- package/dist/UnknownLayer-2cf71578.js +0 -30
- package/dist/UnknownTimeZone-aabdcf56.js +0 -15
- package/dist/UnsupportedLayer-36650e4a.js +0 -31
- package/dist/UpdateTracking2D-b6d16b0c.js +0 -8566
- package/dist/Util-8f54c96b.js +0 -57
- package/dist/VectorTileLayer-ddcca4ec.js +0 -544
- package/dist/VectorTileLayerView2D-8176946a.js +0 -2108
- package/dist/Version-9eb299cd.js +0 -33
- package/dist/VertexArrayObject-d1a4262b.js +0 -73
- package/dist/VertexColor.glsl-fd9f70e0.js +0 -2683
- package/dist/VertexSnappingCandidate-70513010.js +0 -13
- package/dist/VideoLayerView2D-e08e1d57.js +0 -124
- package/dist/VoxelLayer-959702aa.js +0 -631
- package/dist/WFSLayer-4a41b206.js +0 -221
- package/dist/WFSSourceWorker-53d88982.js +0 -157
- package/dist/WGLContainer-e9e8616e.js +0 -5426
- package/dist/WMSLayer-8e44f55c.js +0 -536
- package/dist/WMSLayerView2D-415a1793.js +0 -117
- package/dist/WMTSLayer-804f4bed.js +0 -531
- package/dist/WMTSLayerView2D-96186a90.js +0 -142
- package/dist/WebTileLayer-7391ea01.js +0 -110
- package/dist/WhereClause-1816217e.js +0 -2766
- package/dist/WorkerHandle-25f67c67.js +0 -47
- package/dist/WorkerTileHandler-a7e508bc.js +0 -1539
- package/dist/action-3ce81e45.js +0 -198
- package/dist/action-group-f2d26c2b.js +0 -145
- package/dist/action-menu-015d91ab.js +0 -1759
- package/dist/apng-e5532475.js +0 -392
- package/dist/arcade-dbe2ca4a.js +0 -229
- package/dist/arcadeAsyncRuntime-78b83b41.js +0 -943
- package/dist/arcadeUtils-cb1066a6.js +0 -8741
- package/dist/arcgis-knowledge-client-core-7379d99e.js +0 -1218
- package/dist/arcgis-knowledge-client-core-simd-ea8b4d20.js +0 -1218
- package/dist/arcgisLayers-cd3494fd.js +0 -152
- package/dist/associatedFeatureServiceUtils-da8d377d.js +0 -92
- package/dist/axisAngleDegrees-19922758.js +0 -49
- package/dist/basis_transcoder-bf0490cc.js +0 -1248
- package/dist/calcite-action-0db4f61c.js +0 -22
- package/dist/calcite-action-bar-1b4c89cb.js +0 -303
- package/dist/calcite-action-group-3c8a934c.js +0 -28
- package/dist/calcite-button-1079a10c.js +0 -228
- package/dist/calcite-flow-c1e71a12.js +0 -128
- package/dist/calcite-flow-item-1097b48f.js +0 -499
- package/dist/calcite-icon-c88b4a67.js +0 -16
- package/dist/calcite-input-8c33ee84.js +0 -24
- package/dist/calcite-label-7fbfbe36.js +0 -79
- package/dist/calcite-list-93af4ae2.js +0 -2135
- package/dist/calcite-list-item-f0a6cda3.js +0 -576
- package/dist/calcite-list-item-group-107a313e.js +0 -71
- package/dist/calcite-loader-5194bf83.js +0 -14
- package/dist/calcite-modal-486280cc.js +0 -333
- package/dist/calcite-notice-a81274a8.js +0 -181
- package/dist/calcite-option-0020a955.js +0 -94
- package/dist/calcite-scrim-27d65e7f.js +0 -18
- package/dist/calcite-select-05f25c2a.js +0 -231
- package/dist/capabilities-238bde7d.js +0 -50
- package/dist/chartCommon-7eda170a.js +0 -256
- package/dist/chartUtilsAm5-fd8aeac2.js +0 -2954
- package/dist/clientSideDefaults-b91506af.js +0 -39
- package/dist/colorRamps-6027ea73.js +0 -38
- package/dist/colorUtils-3dd4b884.js +0 -164
- package/dist/commonProperties-bf4d305f.js +0 -60
- package/dist/computeTranslationToOriginAndRotation-ca5a9439.js +0 -60
- package/dist/conditionalSlot-80a4c6ff.js +0 -27
- package/dist/createConnection-70dd787a.js +0 -299
- package/dist/dataUtils-b632d3a2.js +0 -1421
- package/dist/deduplicate-e13aa9e2.js +0 -89
- package/dist/defaults-40a1a995.js +0 -31
- package/dist/deleteForwardEdits-b0182a08.js +0 -13
- package/dist/diffUtils-5f43e52a.js +0 -90
- package/dist/drapedUtils-416e5304.js +0 -75
- package/dist/earcut-235aa57d.js +0 -292
- package/dist/edgeProcessing-43d45a32.js +0 -252
- package/dist/editingSupport-7706f838.js +0 -203
- package/dist/editsZScale-49d8a8cd.js +0 -37
- package/dist/elevationInfoUtils-3fbfcf1f.js +0 -126
- package/dist/executeForIds-419ba6a3.js +0 -14
- package/dist/executeForTopCount-8a8ba5c7.js +0 -17
- package/dist/executeForTopExtents-9f24d5d0.js +0 -17
- package/dist/executeForTopIds-0bfdb55f.js +0 -17
- package/dist/executeQueryJSON-2a2e9e1b.js +0 -15
- package/dist/executeQueryPBF-f10de9ec.js +0 -152
- package/dist/executeRelationshipQuery-0680cb30.js +0 -53
- package/dist/executeTopFeaturesQuery-c553d696.js +0 -18
- package/dist/featureConversionUtils-83783887.js +0 -479
- package/dist/featureLayerUtils-545d260a.js +0 -250
- package/dist/featureLayerUtils-b18e6016.js +0 -142
- package/dist/featureSetUtils-0c7ba073.js +0 -2530
- package/dist/featuresetbase-aadfabb3.js +0 -707
- package/dist/featuresetgeom-a405018e.js +0 -99
- package/dist/featuresetstats-f6602402.js +0 -81
- package/dist/featuresetstring-834ea865.js +0 -95
- package/dist/fetchService-dac740ef.js +0 -33
- package/dist/fieldProperties-b024e721.js +0 -33
- package/dist/floatRGBA-46ee3e38.js +0 -20
- package/dist/form-0b2f0ac9.js +0 -138
- package/dist/geohashUtils-418d1ca6.js +0 -85
- package/dist/geojson-96d3353d.js +0 -208
- package/dist/geomasync-ff5b3734.js +0 -567
- package/dist/geometryEngine-8fcb3d59.js +0 -192
- package/dist/geometryEngineAsync-212f4b0f.js +0 -217
- package/dist/geometryEngineBase-4c2ff8b9.js +0 -18463
- package/dist/geometryEngineJSON-131b461e.js +0 -171
- package/dist/geometryEngineJSON-b43cf67f.js +0 -46
- package/dist/geometryEngineWorker-707ca480.js +0 -11
- package/dist/geometryServiceUtils-af23d0b5.js +0 -28
- package/dist/georeference-02bc532d.js +0 -291
- package/dist/gif-b072aa1c.js +0 -323
- package/dist/gltfexport-3362ea71.js +0 -705
- package/dist/groupLayerUtils-81545911.js +0 -39
- package/dist/heatmapUtils-b25824e4.js +0 -45
- package/dist/highlightReasons-5b8b2665.js +0 -19
- package/dist/hydrated-b0c62926.js +0 -40
- package/dist/i3s-32edc725.js +0 -809
- package/dist/icon-453c7f62.js +0 -127
- package/dist/imageBitmapUtils-51497e26.js +0 -23
- package/dist/imageUtils-1d1da6e6.js +0 -89
- package/dist/imageUtils-8c40eba6.js +0 -69
- package/dist/imageryUtils-0c00fbf3.js +0 -43
- package/dist/index-3b4c2147.js +0 -45568
- package/dist/input-message-32600f49.js +0 -92
- package/dist/input2-1c0831ed.js +0 -575
- package/dist/interactive-5824e097.js +0 -80
- package/dist/jsonContext-ec21ce85.js +0 -15
- package/dist/jsonUtils-012feb40.js +0 -476
- package/dist/jsonUtils-3979baa3.js +0 -59
- package/dist/jsonUtils-3eb7c689.js +0 -86
- package/dist/kmlUtils-4c198ea5.js +0 -112
- package/dist/knowledgeGraphService-a159d815.js +0 -739
- package/dist/knowledgegraph-eb0d44d4.js +0 -149
- package/dist/labelUtils-01b646c7.js +0 -61
- package/dist/labelingInfo-148dcd26.js +0 -46
- package/dist/layersCreator-4e94f616.js +0 -151
- package/dist/layersLoader-f4e3ab33.js +0 -197
- package/dist/lazyLayerLoader-eb51910e.js +0 -10
- package/dist/lclayout-4d303c41.js +0 -773
- package/dist/lengthUtils-6abaf27a.js +0 -5
- package/dist/lerc-wasm-0ae912df.js +0 -325
- package/dist/libtess-asm-91c97dcd.js +0 -3673
- package/dist/libtess-cba14731.js +0 -269
- package/dist/lineSegment-8f04aab4.js +0 -76
- package/dist/loadGLTFMesh-71542570.js +0 -181
- package/dist/loadable-e7c40a8a.js +0 -24
- package/dist/loader-6272e4b3.js +0 -79
- package/dist/lyr3DWorker-9ee4ee8b.js +0 -2108
- package/dist/mapViewDeps-b17a2e04.js +0 -3052
- package/dist/mediaLayerUtils-f0ccfd82.js +0 -35
- package/dist/meshFeatureSet-304dfa08.js +0 -126
- package/dist/meshVertexSpaceUtils-e7f774fa.js +0 -58
- package/dist/multidimensionalUtils-642f26da.js +0 -290
- package/dist/normalizeUtilsSync-b5f617e6.js +0 -181
- package/dist/number-3af512e3.js +0 -128
- package/dist/objectResourceUtils-d45057aa.js +0 -1455
- package/dist/observers-700e505d.js +0 -30
- package/dist/ogcFeatureUtils-440ed0bf.js +0 -206
- package/dist/openCloseComponent-1501c620.js +0 -37
- package/dist/orientedBoundingBox-80988e7f.js +0 -447
- package/dist/parser-6e351b85.js +0 -488
- package/dist/pbf-a85c52b3.js +0 -215
- package/dist/pbfQueryUtils-5f25f81f.js +0 -422
- package/dist/pe-wasm-e588110b.js +0 -887
- package/dist/persistable-ad01d0ca.js +0 -89
- package/dist/perspectiveUtils-ab58ddbb.js +0 -42
- package/dist/pieChart-d3793e8b.js +0 -555
- package/dist/plane-e103e8ed.js +0 -160
- package/dist/popupUtils-5f7c3e79.js +0 -50
- package/dist/popupUtils-b95ab60a.js +0 -22
- package/dist/portalItemUtils-3d59513a.js +0 -57
- package/dist/portalLayers-16b2f807.js +0 -312
- package/dist/portalUtils-3789afb0.js +0 -7
- package/dist/programUtils-c8d96b39.js +0 -59
- package/dist/project-7eaa59a4.js +0 -21
- package/dist/projectPointToVector-19151d97.js +0 -14
- package/dist/projectVectorToVector-d552535c.js +0 -13
- package/dist/quantityUtils-258bfdb4.js +0 -33
- package/dist/quantizationUtils-752e4d24.js +0 -68
- package/dist/quat-6dc51256.js +0 -104
- package/dist/query-da893693.js +0 -89
- package/dist/queryAttachments-df86b71d.js +0 -39
- package/dist/queryEngineUtils-ffc50ce5.js +0 -21
- package/dist/queryTopFeatures-5a58a12d.js +0 -50
- package/dist/queryZScale-39ffaf30.js +0 -12
- package/dist/rasterProjectionHelper-d13bc46d.js +0 -577
- package/dist/rasterUtils-22b15453.js +0 -122
- package/dist/rasterizingUtils-3388ddbf.js +0 -46
- package/dist/request-82a2415a.js +0 -46
- package/dist/requestImageUtils-2fca27f8.js +0 -8
- package/dist/resourceExtension-672d03cc.js +0 -17
- package/dist/resourceUtils-95b9964a.js +0 -42
- package/dist/resourceUtils-b1e50d5e.js +0 -69
- package/dist/resourceUtils-e8831103.js +0 -62
- package/dist/saveAPIKeyUtils-ee9b0447.js +0 -8
- package/dist/saveUtils-1323ad64.js +0 -24
- package/dist/scaleUtils-1a70f716.js +0 -23
- package/dist/scrim-c0a641cd.js +0 -114
- package/dist/serviceCapabilitiesUtils-33d4e1c0.js +0 -64
- package/dist/sourceUtils-e8c5db4e.js +0 -71
- package/dist/sphere-75cef429.js +0 -199
- package/dist/statsWorker-1f1bc582.js +0 -37
- package/dist/streamLayerUtils-c85a0eed.js +0 -31
- package/dist/styleUtils-05bc85a5.js +0 -75
- package/dist/styleUtils-7bd8d0a7.js +0 -14
- package/dist/sublayerUtils-feb77591.js +0 -37
- package/dist/substitute-c31da60c.js +0 -52
- package/dist/symbolColorUtils-3c385668.js +0 -8
- package/dist/symbolLayerUtils-2d2753b7.js +0 -31
- package/dist/symbologySnappingCandidates-00eeca39.js +0 -221
- package/dist/t9n-55800455.js +0 -349
- package/dist/testSVGPremultipliedAlpha-ec1f73c4.js +0 -94
- package/dist/timeSupport-a7623294.js +0 -410
- package/dist/triangle-c799f11b.js +0 -98
- package/dist/unitConversionUtils-05050e6d.js +0 -17
- package/dist/unitFormatUtils-2a84c371.js +0 -40
- package/dist/uploadAssetErrors-601b044e.js +0 -70
- package/dist/uploadAssets-5a835c8a.js +0 -330
- package/dist/utils-2dc379da.js +0 -79
- package/dist/utils-34b1ea70.js +0 -2746
- package/dist/utils-45c14202.js +0 -232
- package/dist/utils-484969fb.js +0 -91
- package/dist/utils-5aaff624.js +0 -433
- package/dist/utils-a94dc35d.js +0 -419
- package/dist/utils-e68cfebf.js +0 -34
- package/dist/utils-fc14cc83.js +0 -73
- package/dist/utils3-5745e839.js +0 -75
- package/dist/vec3-12b9e1d8.js +0 -81
- package/dist/vec42-a1569d60.js +0 -125
- package/dist/versionUtils-c4f3617a.js +0 -161
- package/dist/visualVariableUtils-bcb95edc.js +0 -267
- package/dist/webStyleSymbolUtils-9db5b81c.js +0 -48
- package/dist/webglDeps-05e0410a.js +0 -23
- package/dist/wfsUtils-7caaa2cc.js +0 -343
- package/dist/workerHelper-86e37deb.js +0 -11
- package/dist/xyChart-0673158d.js +0 -3335
|
@@ -1,1455 +0,0 @@
|
|
|
1
|
-
import { a as ma } from "./devEnvironmentUtils-42cb97c7.js";
|
|
2
|
-
import { jZ as pa, j_ as fa, fb as dt, cv as Ct, g6 as va, gf as ga, j$ as St, fs as xa, aS as Ot, fj as Te, e as d, y as ut, c as ba, o as ya, fG as Ta, Q as wa, I as Ma, b as Ca, fg as we, b9 as j, gn as qe, hk as ke, bg as xe, bm as Sa, bf as $t, bn as be, g7 as Et, bo as ht, bc as Oa, fh as $a, aO as Ea, k0 as _a, bI as _t, U as Aa, bO as At, W as Ra, k1 as Rt, hG as Me, s as Na, hs as mt, ge as za, ej as pt, jF as ft, gc as Pa } from "./index-3b4c2147.js";
|
|
3
|
-
import { t as Le, e as Nt, o as ee } from "./mat3f64-03233387.js";
|
|
4
|
-
import { e as Ga } from "./mat4f64-cce69db4.js";
|
|
5
|
-
import { e as Y, t as zt, c as f, a as Pt, E as La, b as Je, o as $, d as x, f as se, g as le, h as ce, l as de, s as z, P as Z, i as ja, j as Ze, n as Gt, k as R, m as Ba, p as Fa, q as Ia, r as k, u as Da, v as Lt, w as ue, x as te, y as He, z as _e, A as jt, B as Bt, C as Ae, D as Xe, F as Ke, O as Qe, G as Va, H as Ua, I as ye, J as Wa, K as qa, R as je, L, M as ka, N as Ya, Q as Ja, S as Za, T as Ft, U as It, V as Dt, W as Ce, X as Vt, Y as Ut, Z as Se, _ as Wt, $ as Ha, a0 as Xa, a1 as Ka, a2 as Qa, a3 as eo, a4 as to, a5 as h, a6 as ao, a7 as oo, a8 as Be, a9 as Fe, aa as ro, ab as io, ac as no, ad as so, ae as lo, af as qt, ag as kt, ah as fe } from "./VertexColor.glsl-fd9f70e0.js";
|
|
6
|
-
import { c as co, x as Yt, L as uo, i as Jt, O as ho, E as mo } from "./BufferView-97ed14c7.js";
|
|
7
|
-
import { r as po, n as fo, u as vt } from "./vec3-12b9e1d8.js";
|
|
8
|
-
import { l as vo, n as go, i as X, o as xo, j as bo, k as yo, u as gt, t as To, m as wo } from "./DefaultMaterial_COLOR_GAMMA-7fd21704.js";
|
|
9
|
-
import { r as Ie } from "./resourceUtils-95b9964a.js";
|
|
10
|
-
import { t as Mo } from "./NestedMap-83f8e815.js";
|
|
11
|
-
import { r as Zt } from "./Version-9eb299cd.js";
|
|
12
|
-
import { l as Co } from "./Indices-0c5304f2.js";
|
|
13
|
-
import { t as So } from "./requestImageUtils-2fca27f8.js";
|
|
14
|
-
import { t as K } from "./orientedBoundingBox-80988e7f.js";
|
|
15
|
-
import { s as M, n as he, e as J } from "./basicInterfaces-fa4f5fa7.js";
|
|
16
|
-
import { e as C } from "./VertexAttribute-faad30bf.js";
|
|
17
|
-
import { H as Oo } from "./InterleavedLayout-d37b99a2.js";
|
|
18
|
-
import { o as i, S as et, _ as tt, n as Ht, a as Q, c as $o, A as Eo, h as _o, l as Ao, b as Ro, d as No, e as zo } from "./OrderIndependentTransparency-3eadfe42.js";
|
|
19
|
-
import { n as Po, r as Go } from "./vec4f64-043e974c.js";
|
|
20
|
-
import { n as q } from "./symbolColorUtils-3c385668.js";
|
|
21
|
-
import { a as Re } from "./BindType-5e76c8e1.js";
|
|
22
|
-
import "./RenderState-b244097f.js";
|
|
23
|
-
import { D as Oe, G as Lo, t as jo, _ as Bo, O as xt } from "./enums-2c166c09.js";
|
|
24
|
-
import { e as Fo, m as Io } from "./Texture-3618be49.js";
|
|
25
|
-
import { s as V } from "./vec42-a1569d60.js";
|
|
26
|
-
function at(e) {
|
|
27
|
-
e.uniforms.add(new Y("mainLightDirection", (t, a) => a.lighting.mainLight.direction));
|
|
28
|
-
}
|
|
29
|
-
function Ne(e) {
|
|
30
|
-
e.uniforms.add(new Y("mainLightIntensity", (t, a) => a.lighting.mainLight.intensity));
|
|
31
|
-
}
|
|
32
|
-
function bt(e) {
|
|
33
|
-
at(e.fragment), Ne(e.fragment), e.fragment.code.add(i`vec3 evaluateMainLighting(vec3 normal_global, float shadowing) {
|
|
34
|
-
float dotVal = clamp(dot(normal_global, mainLightDirection), 0.0, 1.0);
|
|
35
|
-
return mainLightIntensity * ((1.0 - shadowing) * dotVal);
|
|
36
|
-
}`);
|
|
37
|
-
}
|
|
38
|
-
function Do(e) {
|
|
39
|
-
const t = e.fragment.code;
|
|
40
|
-
t.add(i`vec3 evaluateDiffuseIlluminationHemisphere(vec3 ambientGround, vec3 ambientSky, float NdotNG)
|
|
41
|
-
{
|
|
42
|
-
return ((1.0 - NdotNG) * ambientGround + (1.0 + NdotNG) * ambientSky) * 0.5;
|
|
43
|
-
}`), t.add(i`float integratedRadiance(float cosTheta2, float roughness)
|
|
44
|
-
{
|
|
45
|
-
return (cosTheta2 - 1.0) / (cosTheta2 * (1.0 - roughness * roughness) - 1.0);
|
|
46
|
-
}`), t.add(i`vec3 evaluateSpecularIlluminationHemisphere(vec3 ambientGround, vec3 ambientSky, float RdotNG, float roughness)
|
|
47
|
-
{
|
|
48
|
-
float cosTheta2 = 1.0 - RdotNG * RdotNG;
|
|
49
|
-
float intRadTheta = integratedRadiance(cosTheta2, roughness);
|
|
50
|
-
float ground = RdotNG < 0.0 ? 1.0 - intRadTheta : 1.0 + intRadTheta;
|
|
51
|
-
float sky = 2.0 - ground;
|
|
52
|
-
return (ground * ambientGround + sky * ambientSky) * 0.5;
|
|
53
|
-
}`);
|
|
54
|
-
}
|
|
55
|
-
function ot(e, t) {
|
|
56
|
-
const a = e.fragment.code;
|
|
57
|
-
e.include(zt), t.pbrMode !== f.Normal && t.pbrMode !== f.Schematic && t.pbrMode !== f.Simplified && t.pbrMode !== f.TerrainWithWater || (a.add(i`float normalDistribution(float NdotH, float roughness)
|
|
58
|
-
{
|
|
59
|
-
float a = NdotH * roughness;
|
|
60
|
-
float b = roughness / (1.0 - NdotH * NdotH + a * a);
|
|
61
|
-
return b * b * INV_PI;
|
|
62
|
-
}`), a.add(i`const vec4 c0 = vec4(-1.0, -0.0275, -0.572, 0.022);
|
|
63
|
-
const vec4 c1 = vec4( 1.0, 0.0425, 1.040, -0.040);
|
|
64
|
-
const vec2 c2 = vec2(-1.04, 1.04);
|
|
65
|
-
vec2 prefilteredDFGAnalytical(float roughness, float NdotV) {
|
|
66
|
-
vec4 r = roughness * c0 + c1;
|
|
67
|
-
float a004 = min(r.x * r.x, exp2(-9.28 * NdotV)) * r.x + r.y;
|
|
68
|
-
return c2 * a004 + r.zw;
|
|
69
|
-
}`)), t.pbrMode !== f.Normal && t.pbrMode !== f.Schematic || (e.include(Do), a.add(i`struct PBRShadingInfo
|
|
70
|
-
{
|
|
71
|
-
float NdotL;
|
|
72
|
-
float NdotV;
|
|
73
|
-
float NdotH;
|
|
74
|
-
float VdotH;
|
|
75
|
-
float LdotH;
|
|
76
|
-
float NdotNG;
|
|
77
|
-
float RdotNG;
|
|
78
|
-
float NdotAmbDir;
|
|
79
|
-
float NdotH_Horizon;
|
|
80
|
-
vec3 skyRadianceToSurface;
|
|
81
|
-
vec3 groundRadianceToSurface;
|
|
82
|
-
vec3 skyIrradianceToSurface;
|
|
83
|
-
vec3 groundIrradianceToSurface;
|
|
84
|
-
float averageAmbientRadiance;
|
|
85
|
-
float ssao;
|
|
86
|
-
vec3 albedoLinear;
|
|
87
|
-
vec3 f0;
|
|
88
|
-
vec3 f90;
|
|
89
|
-
vec3 diffuseColor;
|
|
90
|
-
float metalness;
|
|
91
|
-
float roughness;
|
|
92
|
-
};`), a.add(i`vec3 evaluateEnvironmentIllumination(PBRShadingInfo inputs) {
|
|
93
|
-
vec3 indirectDiffuse = evaluateDiffuseIlluminationHemisphere(inputs.groundIrradianceToSurface, inputs.skyIrradianceToSurface, inputs.NdotNG);
|
|
94
|
-
vec3 indirectSpecular = evaluateSpecularIlluminationHemisphere(inputs.groundRadianceToSurface, inputs.skyRadianceToSurface, inputs.RdotNG, inputs.roughness);
|
|
95
|
-
vec3 diffuseComponent = inputs.diffuseColor * indirectDiffuse * INV_PI;
|
|
96
|
-
vec2 dfg = prefilteredDFGAnalytical(inputs.roughness, inputs.NdotV);
|
|
97
|
-
vec3 specularColor = inputs.f0 * dfg.x + inputs.f90 * dfg.y;
|
|
98
|
-
vec3 specularComponent = specularColor * indirectSpecular;
|
|
99
|
-
return (diffuseComponent + specularComponent);
|
|
100
|
-
}`), a.add(i`float gamutMapChanel(float x, vec2 p){
|
|
101
|
-
return (x < p.x) ? mix(0.0, p.y, x/p.x) : mix(p.y, 1.0, (x - p.x) / (1.0 - p.x) );
|
|
102
|
-
}`), a.add(i`vec3 blackLevelSoftCompression(vec3 inColor, PBRShadingInfo inputs){
|
|
103
|
-
vec3 outColor;
|
|
104
|
-
vec2 p = vec2(0.02 * (inputs.averageAmbientRadiance), 0.0075 * (inputs.averageAmbientRadiance));
|
|
105
|
-
outColor.x = gamutMapChanel(inColor.x, p) ;
|
|
106
|
-
outColor.y = gamutMapChanel(inColor.y, p) ;
|
|
107
|
-
outColor.z = gamutMapChanel(inColor.z, p) ;
|
|
108
|
-
return outColor;
|
|
109
|
-
}`));
|
|
110
|
-
}
|
|
111
|
-
const Vo = 3e5, De = 5e5;
|
|
112
|
-
function ie(e) {
|
|
113
|
-
if (e == null)
|
|
114
|
-
return null;
|
|
115
|
-
const t = e.offset != null ? e.offset : pa, a = e.rotation != null ? e.rotation : 0, o = e.scale != null ? e.scale : fa, n = Le(1, 0, 0, 0, 1, 0, t[0], t[1], 1), r = Le(Math.cos(a), -Math.sin(a), 0, Math.sin(a), Math.cos(a), 0, 0, 0, 1), c = Le(o[0], 0, 0, 0, o[1], 0, 0, 0, 1), l = Nt();
|
|
116
|
-
return dt(l, r, c), dt(l, n, l), l;
|
|
117
|
-
}
|
|
118
|
-
let Uo = class {
|
|
119
|
-
constructor() {
|
|
120
|
-
this.geometries = new Array(), this.materials = new Array(), this.textures = new Array();
|
|
121
|
-
}
|
|
122
|
-
}, Wo = class {
|
|
123
|
-
constructor(t, a, o) {
|
|
124
|
-
this.name = t, this.lodThreshold = a, this.pivotOffset = o, this.stageResources = new Uo(), this.numberOfVertices = 0;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
function qo(e, t) {
|
|
128
|
-
const a = e.fragment;
|
|
129
|
-
switch (a.code.add(i`struct ShadingNormalParameters {
|
|
130
|
-
vec3 normalView;
|
|
131
|
-
vec3 viewDirection;
|
|
132
|
-
} shadingParams;`), t.doubleSidedMode) {
|
|
133
|
-
case N.None:
|
|
134
|
-
a.code.add(i`vec3 shadingNormal(ShadingNormalParameters params) {
|
|
135
|
-
return normalize(params.normalView);
|
|
136
|
-
}`);
|
|
137
|
-
break;
|
|
138
|
-
case N.View:
|
|
139
|
-
a.code.add(i`vec3 shadingNormal(ShadingNormalParameters params) {
|
|
140
|
-
return dot(params.normalView, params.viewDirection) > 0.0 ? normalize(-params.normalView) : normalize(params.normalView);
|
|
141
|
-
}`);
|
|
142
|
-
break;
|
|
143
|
-
case N.WindingOrder:
|
|
144
|
-
a.code.add(i`vec3 shadingNormal(ShadingNormalParameters params) {
|
|
145
|
-
return gl_FrontFacing ? normalize(params.normalView) : normalize(-params.normalView);
|
|
146
|
-
}`);
|
|
147
|
-
break;
|
|
148
|
-
default:
|
|
149
|
-
Ct(t.doubleSidedMode);
|
|
150
|
-
case N.COUNT:
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
var N;
|
|
154
|
-
(function(e) {
|
|
155
|
-
e[e.None = 0] = "None", e[e.View = 1] = "View", e[e.WindingOrder = 2] = "WindingOrder", e[e.COUNT = 3] = "COUNT";
|
|
156
|
-
})(N || (N = {}));
|
|
157
|
-
function ko({ normalTexture: e, metallicRoughnessTexture: t, metallicFactor: a, roughnessFactor: o, emissiveTexture: n, emissiveFactor: r, occlusionTexture: c }) {
|
|
158
|
-
return e == null && t == null && n == null && (r == null || va(r, ga)) && c == null && (o == null || o === 1) && (a == null || a === 1);
|
|
159
|
-
}
|
|
160
|
-
const Xt = [1, 1, 0.5], Yo = [0, 0.6, 0.2], Jo = [0, 1, 0.2];
|
|
161
|
-
function Kt(e) {
|
|
162
|
-
e.vertex.code.add(i`vec4 offsetBackfacingClipPosition(vec4 posClip, vec3 posWorld, vec3 normalWorld, vec3 camPosWorld) {
|
|
163
|
-
vec3 camToVert = posWorld - camPosWorld;
|
|
164
|
-
bool isBackface = dot(camToVert, normalWorld) > 0.0;
|
|
165
|
-
if (isBackface) {
|
|
166
|
-
posClip.z += 0.0000003 * posClip.w;
|
|
167
|
-
}
|
|
168
|
-
return posClip;
|
|
169
|
-
}`);
|
|
170
|
-
}
|
|
171
|
-
function Zo(e) {
|
|
172
|
-
e.vertex.code.add(i`
|
|
173
|
-
vec4 decodeSymbolColor(vec4 symbolColor, out int colorMixMode) {
|
|
174
|
-
float symbolAlpha = 0.0;
|
|
175
|
-
|
|
176
|
-
const float maxTint = 85.0;
|
|
177
|
-
const float maxReplace = 170.0;
|
|
178
|
-
const float scaleAlpha = 3.0;
|
|
179
|
-
|
|
180
|
-
if (symbolColor.a > maxReplace) {
|
|
181
|
-
colorMixMode = ${i.int(q.Multiply)};
|
|
182
|
-
symbolAlpha = scaleAlpha * (symbolColor.a - maxReplace);
|
|
183
|
-
} else if (symbolColor.a > maxTint) {
|
|
184
|
-
colorMixMode = ${i.int(q.Replace)};
|
|
185
|
-
symbolAlpha = scaleAlpha * (symbolColor.a - maxTint);
|
|
186
|
-
} else if (symbolColor.a > 0.0) {
|
|
187
|
-
colorMixMode = ${i.int(q.Tint)};
|
|
188
|
-
symbolAlpha = scaleAlpha * symbolColor.a;
|
|
189
|
-
} else {
|
|
190
|
-
colorMixMode = ${i.int(q.Multiply)};
|
|
191
|
-
symbolAlpha = 0.0;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
return vec4(symbolColor.r, symbolColor.g, symbolColor.b, symbolAlpha);
|
|
195
|
-
}
|
|
196
|
-
`);
|
|
197
|
-
}
|
|
198
|
-
function Qt(e, t) {
|
|
199
|
-
t.hasSymbolColors ? (e.include(Zo), e.attributes.add(C.SYMBOLCOLOR, "vec4"), e.varyings.add("colorMixMode", "mediump float"), e.vertex.code.add(i`int symbolColorMixMode;
|
|
200
|
-
vec4 getSymbolColor() {
|
|
201
|
-
return decodeSymbolColor(symbolColor, symbolColorMixMode) * 0.003921568627451;
|
|
202
|
-
}
|
|
203
|
-
void forwardColorMixMode() {
|
|
204
|
-
colorMixMode = float(symbolColorMixMode) + 0.5;
|
|
205
|
-
}`)) : (e.fragment.uniforms.add(new Pt("colorMixMode", (a) => La[a.colorMixMode])), e.vertex.code.add(i`vec4 getSymbolColor() { return vec4(1.0); }
|
|
206
|
-
void forwardColorMixMode() {}`));
|
|
207
|
-
}
|
|
208
|
-
function Ho(e) {
|
|
209
|
-
e.fragment.code.add(i`
|
|
210
|
-
#define discardOrAdjustAlpha(color) { if (color.a < ${i.float(Je)}) { discard; } }
|
|
211
|
-
`);
|
|
212
|
-
}
|
|
213
|
-
function H(e, t) {
|
|
214
|
-
Xo(e, t, new $("textureAlphaCutoff", (a) => a.textureAlphaCutoff));
|
|
215
|
-
}
|
|
216
|
-
function Xo(e, t, a) {
|
|
217
|
-
const o = e.fragment;
|
|
218
|
-
switch (t.alphaDiscardMode !== M.Mask && t.alphaDiscardMode !== M.MaskBlend || o.uniforms.add(a), t.alphaDiscardMode) {
|
|
219
|
-
case M.Blend:
|
|
220
|
-
return e.include(Ho);
|
|
221
|
-
case M.Opaque:
|
|
222
|
-
o.code.add(i`void discardOrAdjustAlpha(inout vec4 color) {
|
|
223
|
-
color.a = 1.0;
|
|
224
|
-
}`);
|
|
225
|
-
break;
|
|
226
|
-
case M.Mask:
|
|
227
|
-
o.code.add(i`#define discardOrAdjustAlpha(color) { if (color.a < textureAlphaCutoff) { discard; } else { color.a = 1.0; } }`);
|
|
228
|
-
break;
|
|
229
|
-
case M.MaskBlend:
|
|
230
|
-
e.fragment.code.add(i`#define discardOrAdjustAlpha(color) { if (color.a < textureAlphaCutoff) { discard; } }`);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
function ea(e, t) {
|
|
234
|
-
const { vertex: a, fragment: o } = e, n = t.hasColorTexture && t.alphaDiscardMode !== M.Opaque;
|
|
235
|
-
switch (t.output) {
|
|
236
|
-
case x.LinearDepth:
|
|
237
|
-
case x.Shadow:
|
|
238
|
-
case x.ShadowHighlight:
|
|
239
|
-
case x.ShadowExcludeHighlight:
|
|
240
|
-
case x.ObjectAndLayerIdColor:
|
|
241
|
-
se(a, t), e.include(le, t), e.include(ce, t), e.include(de, t), e.include(Ba, t), e.include(Z, t), e.include(Fa, t), Ia(e), e.varyings.add("depth", "float"), n && o.uniforms.add(new z("tex", (r) => r.texture)), a.code.add(i`void main(void) {
|
|
242
|
-
vpos = getVertexInLocalOriginSpace();
|
|
243
|
-
vpos = subtractOrigin(vpos);
|
|
244
|
-
vpos = addVerticalOffset(vpos, localOrigin);
|
|
245
|
-
gl_Position = transformPositionWithDepth(proj, view, vpos, nearFar, depth);
|
|
246
|
-
forwardTextureCoordinates();
|
|
247
|
-
forwardObjectAndLayerIdColor();
|
|
248
|
-
}`), e.include(H, t), o.code.add(i`
|
|
249
|
-
void main(void) {
|
|
250
|
-
discardBySlice(vpos);
|
|
251
|
-
${n ? i`
|
|
252
|
-
vec4 texColor = texture(tex, ${t.hasColorTextureTransform ? i`colorUV` : i`vuv0`});
|
|
253
|
-
discardOrAdjustAlpha(texColor);` : ""}
|
|
254
|
-
${t.output === x.ObjectAndLayerIdColor ? i`outputObjectAndLayerIdColor();` : i`outputDepth(depth);`}
|
|
255
|
-
}
|
|
256
|
-
`);
|
|
257
|
-
break;
|
|
258
|
-
case x.Normal: {
|
|
259
|
-
se(a, t), e.include(le, t), e.include(Ze, t), e.include(Gt, t), e.include(ce, t), e.include(de, t), n && o.uniforms.add(new z("tex", (c) => c.texture)), t.normalType === R.ScreenDerivative && e.varyings.add("vPositionView", "vec3");
|
|
260
|
-
const r = t.normalType === R.Attribute || t.normalType === R.Compressed;
|
|
261
|
-
a.code.add(i`
|
|
262
|
-
void main(void) {
|
|
263
|
-
vpos = getVertexInLocalOriginSpace();
|
|
264
|
-
|
|
265
|
-
${r ? i`vNormalWorld = dpNormalView(vvLocalNormal(normalModel()));` : i`
|
|
266
|
-
// Get vertex position in camera space for screen-space derivative normals
|
|
267
|
-
vPositionView = (view * vec4(vpos, 1.0)).xyz;
|
|
268
|
-
`}
|
|
269
|
-
vpos = subtractOrigin(vpos);
|
|
270
|
-
vpos = addVerticalOffset(vpos, localOrigin);
|
|
271
|
-
gl_Position = transformPosition(proj, view, vpos);
|
|
272
|
-
forwardTextureCoordinates();
|
|
273
|
-
}
|
|
274
|
-
`), e.include(Z, t), e.include(H, t), o.code.add(i`
|
|
275
|
-
void main() {
|
|
276
|
-
discardBySlice(vpos);
|
|
277
|
-
${n ? i`
|
|
278
|
-
vec4 texColor = texture(tex, ${t.hasColorTextureTransform ? i`colorUV` : i`vuv0`});
|
|
279
|
-
discardOrAdjustAlpha(texColor);` : ""}
|
|
280
|
-
|
|
281
|
-
${t.normalType === R.ScreenDerivative ? i`vec3 normal = screenDerivativeNormal(vPositionView);` : i`
|
|
282
|
-
vec3 normal = normalize(vNormalWorld);
|
|
283
|
-
if (gl_FrontFacing == false){
|
|
284
|
-
normal = -normal;
|
|
285
|
-
}`}
|
|
286
|
-
fragColor = vec4(0.5 + 0.5 * normal, 1.0);
|
|
287
|
-
}
|
|
288
|
-
`);
|
|
289
|
-
break;
|
|
290
|
-
}
|
|
291
|
-
case x.Highlight:
|
|
292
|
-
se(a, t), e.include(le, t), e.include(ce, t), e.include(de, t), n && o.uniforms.add(new z("tex", (r) => r.texture)), a.code.add(i`void main(void) {
|
|
293
|
-
vpos = getVertexInLocalOriginSpace();
|
|
294
|
-
vpos = subtractOrigin(vpos);
|
|
295
|
-
vpos = addVerticalOffset(vpos, localOrigin);
|
|
296
|
-
gl_Position = transformPosition(proj, view, vpos);
|
|
297
|
-
forwardTextureCoordinates();
|
|
298
|
-
}`), e.include(Z, t), e.include(H, t), e.include(ja, t), o.code.add(i`
|
|
299
|
-
void main() {
|
|
300
|
-
discardBySlice(vpos);
|
|
301
|
-
${n ? i`
|
|
302
|
-
vec4 texColor = texture(tex, ${t.hasColorTextureTransform ? i`colorUV` : i`vuv0`});
|
|
303
|
-
discardOrAdjustAlpha(texColor);` : ""}
|
|
304
|
-
outputHighlight();
|
|
305
|
-
}
|
|
306
|
-
`);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
function Ko(e, t) {
|
|
310
|
-
const a = e.fragment;
|
|
311
|
-
t.hasVertexTangents ? (e.attributes.add(C.TANGENT, "vec4"), e.varyings.add("vTangent", "vec4"), t.doubleSidedMode === N.WindingOrder ? a.code.add(i`mat3 computeTangentSpace(vec3 normal) {
|
|
312
|
-
float tangentHeadedness = gl_FrontFacing ? vTangent.w : -vTangent.w;
|
|
313
|
-
vec3 tangent = normalize(gl_FrontFacing ? vTangent.xyz : -vTangent.xyz);
|
|
314
|
-
vec3 bitangent = cross(normal, tangent) * tangentHeadedness;
|
|
315
|
-
return mat3(tangent, bitangent, normal);
|
|
316
|
-
}`) : a.code.add(i`mat3 computeTangentSpace(vec3 normal) {
|
|
317
|
-
float tangentHeadedness = vTangent.w;
|
|
318
|
-
vec3 tangent = normalize(vTangent.xyz);
|
|
319
|
-
vec3 bitangent = cross(normal, tangent) * tangentHeadedness;
|
|
320
|
-
return mat3(tangent, bitangent, normal);
|
|
321
|
-
}`)) : a.code.add(i`mat3 computeTangentSpace(vec3 normal, vec3 pos, vec2 st) {
|
|
322
|
-
vec3 Q1 = dFdx(pos);
|
|
323
|
-
vec3 Q2 = dFdy(pos);
|
|
324
|
-
vec2 stx = dFdx(st);
|
|
325
|
-
vec2 sty = dFdy(st);
|
|
326
|
-
float det = stx.t * sty.s - sty.t * stx.s;
|
|
327
|
-
vec3 T = stx.t * Q2 - sty.t * Q1;
|
|
328
|
-
T = T - normal * dot(normal, T);
|
|
329
|
-
T *= inversesqrt(max(dot(T,T), 1.e-10));
|
|
330
|
-
vec3 B = sign(det) * cross(normal, T);
|
|
331
|
-
return mat3(T, B, normal);
|
|
332
|
-
}`), t.textureCoordinateType !== k.None && (e.include(Da, t), a.uniforms.add(t.pbrTextureBindType === Re.Pass ? new z("normalTexture", (o) => o.textureNormal) : new Lt("normalTexture", (o) => o.textureNormal)), t.hasNormalTextureTransform && (a.uniforms.add(new ue("scale", (o) => o.scale ?? St)), a.uniforms.add(new te("normalTextureTransformMatrix", (o) => o.normalTextureTransformMatrix ?? ee))), a.code.add(i`vec3 computeTextureNormal(mat3 tangentSpace, vec2 uv) {
|
|
333
|
-
vec3 rawNormal = textureLookup(normalTexture, uv).rgb * 2.0 - 1.0;`), t.hasNormalTextureTransform && a.code.add(i`mat3 normalTextureRotation = mat3(normalTextureTransformMatrix[0][0]/scale[0], normalTextureTransformMatrix[0][1]/scale[1], 0.0,
|
|
334
|
-
normalTextureTransformMatrix[1][0]/scale[0], normalTextureTransformMatrix[1][1]/scale[1], 0.0,
|
|
335
|
-
0.0, 0.0, 0.0 );
|
|
336
|
-
rawNormal.xy = (normalTextureRotation * vec3(rawNormal.x, rawNormal.y, 1.0)).xy;`), a.code.add(i`return tangentSpace * rawNormal;
|
|
337
|
-
}`));
|
|
338
|
-
}
|
|
339
|
-
let Qo = class extends He {
|
|
340
|
-
constructor(t, a) {
|
|
341
|
-
super(t, "vec2", Re.Draw, (o, n, r, c) => o.setUniform2fv(t, a(n, r, c)));
|
|
342
|
-
}
|
|
343
|
-
};
|
|
344
|
-
const Ve = 4;
|
|
345
|
-
function er() {
|
|
346
|
-
const e = new _e(), t = e.fragment;
|
|
347
|
-
e.include(jt);
|
|
348
|
-
const a = (Ve + 1) / 2, o = 1 / (2 * a * a);
|
|
349
|
-
return t.include(Bt), t.uniforms.add(new z("depthMap", (n) => n.depthTexture), new Lt("tex", (n) => n.colorTexture), new Qo("blurSize", (n) => n.blurSize), new $("projScale", (n, r) => {
|
|
350
|
-
const c = xa(r.camera.eye, r.camera.center);
|
|
351
|
-
return c > 5e4 ? Math.max(0, n.projScale - (c - 5e4)) : n.projScale;
|
|
352
|
-
}), new ue("nearFar", (n, r) => r.camera.nearFar)), t.code.add(i`
|
|
353
|
-
void blurFunction(vec2 uv, float r, float center_d, float sharpness, inout float wTotal, inout float bTotal) {
|
|
354
|
-
float c = texture(tex, uv).r;
|
|
355
|
-
float d = linearDepthFromTexture(depthMap, uv, nearFar);
|
|
356
|
-
|
|
357
|
-
float ddiff = d - center_d;
|
|
358
|
-
|
|
359
|
-
float w = exp(-r * r * ${i.float(o)} - ddiff * ddiff * sharpness);
|
|
360
|
-
wTotal += w;
|
|
361
|
-
bTotal += w * c;
|
|
362
|
-
}
|
|
363
|
-
`), e.outputs.add("fragBlur", "float"), t.code.add(i`
|
|
364
|
-
void main(void) {
|
|
365
|
-
float b = 0.0;
|
|
366
|
-
float w_total = 0.0;
|
|
367
|
-
|
|
368
|
-
float center_d = linearDepthFromTexture(depthMap, uv, nearFar);
|
|
369
|
-
|
|
370
|
-
float sharpness = -0.05 * projScale / center_d;
|
|
371
|
-
for (int r = -${i.int(Ve)}; r <= ${i.int(Ve)}; ++r) {
|
|
372
|
-
float rf = float(r);
|
|
373
|
-
vec2 uvOffset = uv + rf * blurSize;
|
|
374
|
-
blurFunction(uvOffset, rf, center_d, sharpness, w_total, b);
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
fragBlur = b / w_total;
|
|
378
|
-
}
|
|
379
|
-
`), e;
|
|
380
|
-
}
|
|
381
|
-
const tr = Object.freeze(Object.defineProperty({ __proto__: null, build: er }, Symbol.toStringTag, { value: "Module" }));
|
|
382
|
-
let ta = class aa extends Xe {
|
|
383
|
-
initializeProgram(t) {
|
|
384
|
-
return new Ke(t.rctx, aa.shader.get().build(), Qe);
|
|
385
|
-
}
|
|
386
|
-
initializePipeline() {
|
|
387
|
-
return et({ colorWrite: tt });
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
ta.shader = new Ae(tr, () => import("./SSAOBlur.glsl-3523d6af.js"));
|
|
391
|
-
const ar = "eXKEvZaUc66cjIKElE1jlJ6MjJ6Ufkl+jn2fcXp5jBx7c6KEflSGiXuXeW6OWs+tfqZ2Yot2Y7Zzfo2BhniEj3xoiXuXj4eGZpqEaHKDWjSMe7palFlzc3BziYOGlFVzg6Zzg7CUY5JrjFF7eYJ4jIKEcyyEonSXe7qUfqZ7j3xofqZ2c4R5lFZ5Y0WUbppoe1l2cIh2ezyUho+BcHN2cG6DbpqJhqp2e1GcezhrdldzjFGUcyxjc3aRjDyEc1h7Sl17c6aMjH92pb6Mjpd4dnqBjMOEhqZleIOBYzB7gYx+fnqGjJuEkWlwnCx7fGl+c4hjfGyRe5qMlNOMfnqGhIWHc6OMi4GDc6aMfqZuc6aMzqJzlKZ+lJ6Me3qRfoFue0WUhoR5UraEa6qMkXiPjMOMlJOGe7JrUqKMjK6MeYRzdod+Sl17boiPc6qEeYBlcIh2c1WEe7GDiWCDa0WMjEmMdod+Y0WcdntzhmN8WjyMjKJjiXtzgYxYaGd+a89zlEV7e2GJfnd+lF1rcK5zc4p5cHuBhL6EcXp5eYB7fnh8iX6HjIKEeaxuiYOGc66RfG2Ja5hzjlGMjEmMe9OEgXuPfHyGhPeEdl6JY02McGuMfnqGhFiMa3WJfnx2l4hwcG1uhmN8c0WMc39og1GBbrCEjE2EZY+JcIh2cIuGhIWHe0mEhIVrc09+gY5+eYBlnCyMhGCDl3drfmmMgX15aGd+gYx+fnuRfnhzY1SMsluJfnd+hm98WtNrcIuGh4SEj0qPdkqOjFF7jNNjdnqBgaqUjMt7boeBhnZ4jDR7c5pze4GGjEFrhLqMjHyMc0mUhKZze4WEa117kWlwbpqJjHZ2eX2Bc09zeId+e0V7WlF7jHJ2l72BfId8l3eBgXyBe897jGl7c66cgW+Xc76EjKNbgaSEjGx4fId8jFFjgZB8cG6DhlFziZhrcIh2fH6HgUqBgXiPY8dahGFzjEmMhEFre2dxhoBzc5SGfleGe6alc7aUeYBlhKqUdlp+cH5za4OEczxza0Gcc4J2jHZ5iXuXjH2Jh5yRjH2JcFx+hImBjH+MpddCl3dreZeJjIt8ZW18bm1zjoSEeIOBlF9oh3N7hlqBY4+UeYFwhLJjeYFwaGd+gUqBYxiEYot2fqZ2ondzhL6EYyiEY02Ea0VjgZB8doaGjHxoc66cjEGEiXuXiXWMiZhreHx8frGMe75rY02Ec5pzfnhzlEp4a3VzjM+EhFFza3mUY7Zza1V5e2iMfGyRcziEhDyEkXZ2Y4OBnCx7g5t2eyBjgV6EhEFrcIh2dod+c4Z+nJ5zjm15jEmUeYxijJp7nL6clIpjhoR5WrZraGd+fnuRa6pzlIiMg6ZzfHx5foh+eX1ufnB5eX1ufnB5aJt7UqKMjIh+e3aBfm5lbYSBhGFze6J4c39oc0mUc4Z+e0V7fKFVe0WEdoaGY02Ec4Z+Y02EZYWBfH6HgU1+gY5+hIWUgW+XjJ57ebWRhFVScHuBfJ6PhBx7WqJzlM+Ujpd4gHZziX6HjHmEgZN+lJt5boiPe2GJgX+GjIGJgHZzeaxufnB5hF2JtdN7jJ57hp57hK6ElFVzg6ZzbmiEbndzhIWHe3uJfoFue3qRhJd2j3xoc65zlE1jc3p8lE1jhniEgXJ7e657vZaUc3qBh52BhIF4aHKDa9drgY5+c52GWqZzbpqJe8tjnM+UhIeMfo2BfGl+hG1zSmmMjKJjZVaGgX15c1lze0mEp4OHa3mUhIWHhDyclJ6MeYOJkXiPc0VzhFiMlKaEboSJa5Jze41re3qRhn+HZYWBe0mEc4p5fnORbox5lEp4hGFjhGGEjJuEc1WEhLZjeHeGa7KlfHx2hLaMeX1ugY5+hIWHhKGPjMN7c1WEho1zhoBzZYx7fnhzlJt5exyUhFFziXtzfmmMa6qMYyiEiXxweV12kZSMeWqXSl17fnhzxmmMrVGEe1mcc4p5eHeGjK6MgY5+doaGa6pzlGV7g1qBh4KHkXiPeW6OaKqafqZ2eXZ5e1V7jGd7boSJc3BzhJd2e0mcYot2h1RoY8dahK6EQmWEWjx7e1l2lL6UgXyBdnR4eU9zc0VreX1umqaBhld7fo2Bc6KEc5Z+hDyEcIeBWtNrfHyGe5qMhMuMe5qMhEGEbVVupcNzg3aHhIF4boeBe0mEdlptc39ofFl5Y8uUlJOGiYt2UmGEcyxjjGx4jFF7a657ZYWBnElzhp57iXtrgZN+tfOEhIOBjE2HgU1+e8tjjKNbiWCDhE15gUqBgYN7fnqGc66ce9d7iYSBj0qPcG6DnGGcT3eGa6qMZY+JlIiMl4hwc3aRdnqBlGV7eHJ2hLZjfnuRhDyEeX6MSk17g6Z+c6aUjHmEhIF4gXyBc76EZW18fGl+fkl+jCxrhoVwhDyUhIqGlL2DlI6EhJd2tdN7eYORhEGMa2Faa6pzc3Bzc4R5lIRznM+UY9eMhDycc5Z+c4p5c4iGY117pb6MgXuPrbJafnx2eYOJeXZ5e657hDyEcziElKZjfoB5eHeGj4WRhGGEe6KGeX1utTStc76EhFGJnCyMa5hzfH6HnNeceYB7hmN8gYuMhIVrczSMgYF8h3N7c5pza5hzjJqEYIRdgYuMlL2DeYRzhGGEeX1uhLaEc4iGeZ1zdl6JhrVteX6Me2iMfm5lWqJzSpqEa6pzdnmchHx2c6OMhNdrhoR5g3aHczxzeW52gV6Ejm15frGMc0Vzc4Z+l3drfniJe+9rWq5rlF1rhGGEhoVwe9OEfoh+e7pac09+c3qBY0lrhDycdnp2lJ6MiYOGhGCDc3aRlL2DlJt5doaGdnp2gYF8gWeOjF2Uc4R5c5Z+jEmMe7KEc4mEeYJ4dmyBe0mcgXiPbqJ7eYB7fmGGiYSJjICGlF1reZ2PnElzbpqJfH6Hc39oe4WEc5eJhK6EhqyJc3qBgZB8c09+hEmEaHKDhFGJc5SGiXWMUpaEa89zc6OMnCyMiXtrho+Be5qMc7KEjJ57dmN+hKGPjICGbmiEe7prdod+hGCDdnmchBx7eX6MkXZ2hGGEa657hm98jFFjY5JreYOJgY2EjHZ2a295Y3FajJ6Mc1J+YzB7e4WBjF2Uc4R5eV12gYxzg1qBeId+c9OUc5pzjFFjgY5+hFiMlIaPhoR5lIpjjIKBlNdSe7KEeX2BfrGMhIqGc65zjE2UhK6EklZ+QmWEeziMWqZza3VzdnR4foh+gYF8n3iJiZhrnKp7gYF8eId+lJ6Me1lrcIuGjKJjhmN8c66MjFF7a6prjJ6UnJ5zezyUfruRWlF7nI5zfHyGe657h4SEe8tjhBx7jFFjc09+c39ojICMeZeJeXt+YzRzjHZ2c0WEcIeBeXZ5onSXkVR+gYJ+eYFwdldzgYF7eX2BjJ6UiXuXlE1jh4SEe1mchLJjc4Z+hqZ7eXZ5bm1zlL6Ue5p7iWeGhKqUY5pzjKJjcIeBe8t7gXyBYIRdlEp4a3mGnK6EfmmMZpqEfFl5gYxzjKZuhGFjhoKGhHx2fnx2eXuMe3aBiWeGvbKMe6KGa5hzYzB7gZOBlGV7hmN8hqZlYot2Y117a6pzc6KEfId8foB5rctrfneJfJ6PcHN2hFiMc5pzjH92c0VzgY2EcElzdmCBlFVzg1GBc65zY4OBboeBcHiBeYJ4ewxzfHx5lIRzlEmEnLKEbk1zfJ6PhmN8eYBljBiEnMOEiXxwezyUcIeBe76EdsKEeX2BdnR4jGWUrXWMjGd7fkl+j4WRlEGMa5Jzho+BhDyEfnqMeXt+g3aHlE1jczClhNN7ZW18eHx8hGFjZW18iXWMjKJjhH57gYuMcIuGWjyMe4ZtjJuExmmMj4WRdntzi4GDhFFzYIRdnGGcjJp7Y0F7e4WEkbCGiX57fnSHa657a6prhBCMe3Z+SmmMjH92eHJ2hK6EY1FzexhrvbKMnI5za4OEfnd+eXuMhImBe897hLaMjN+EfG+BeIOBhF1+eZeJi4GDkXZ2eXKEgZ6Ejpd4c2GHa1V5e5KUfqZuhCx7jKp7lLZrg11+hHx2hFWUoot2nI5zgbh5mo9zvZaUe3qRbqKMfqZ2kbCGhFiM";
|
|
392
|
-
let or = class extends Ht {
|
|
393
|
-
constructor() {
|
|
394
|
-
super(...arguments), this.projScale = 1;
|
|
395
|
-
}
|
|
396
|
-
}, rr = class extends or {
|
|
397
|
-
constructor() {
|
|
398
|
-
super(...arguments), this.intensity = 1;
|
|
399
|
-
}
|
|
400
|
-
}, ir = class extends Ht {
|
|
401
|
-
}, nr = class extends ir {
|
|
402
|
-
constructor() {
|
|
403
|
-
super(...arguments), this.blurSize = Ot();
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
const yt = 16;
|
|
407
|
-
function sr() {
|
|
408
|
-
const e = new _e(), t = e.fragment;
|
|
409
|
-
return e.include(jt), e.include(Va), t.include(Bt), t.uniforms.add(new $("radius", (a, o) => rt(o.camera))), t.code.add(i`vec3 sphere[16] = vec3[16](
|
|
410
|
-
vec3(0.186937, 0.0, 0.0),
|
|
411
|
-
vec3(0.700542, 0.0, 0.0),
|
|
412
|
-
vec3(-0.864858, -0.481795, -0.111713),
|
|
413
|
-
vec3(-0.624773, 0.102853, -0.730153),
|
|
414
|
-
vec3(-0.387172, 0.260319, 0.007229),
|
|
415
|
-
vec3(-0.222367, -0.642631, -0.707697),
|
|
416
|
-
vec3(-0.01336, -0.014956, 0.169662),
|
|
417
|
-
vec3(0.122575, 0.1544, -0.456944),
|
|
418
|
-
vec3(-0.177141, 0.85997, -0.42346),
|
|
419
|
-
vec3(-0.131631, 0.814545, 0.524355),
|
|
420
|
-
vec3(-0.779469, 0.007991, 0.624833),
|
|
421
|
-
vec3(0.308092, 0.209288,0.35969),
|
|
422
|
-
vec3(0.359331, -0.184533, -0.377458),
|
|
423
|
-
vec3(0.192633, -0.482999, -0.065284),
|
|
424
|
-
vec3(0.233538, 0.293706, -0.055139),
|
|
425
|
-
vec3(0.417709, -0.386701, 0.442449)
|
|
426
|
-
);
|
|
427
|
-
float fallOffFunction(float vv, float vn, float bias) {
|
|
428
|
-
float f = max(radius * radius - vv, 0.0);
|
|
429
|
-
return f * f * f * max(vn - bias, 0.0);
|
|
430
|
-
}`), t.code.add(i`float aoValueFromPositionsAndNormal(vec3 C, vec3 n_C, vec3 Q) {
|
|
431
|
-
vec3 v = Q - C;
|
|
432
|
-
float vv = dot(v, v);
|
|
433
|
-
float vn = dot(normalize(v), n_C);
|
|
434
|
-
return fallOffFunction(vv, vn, 0.1);
|
|
435
|
-
}`), t.uniforms.add(new ue("nearFar", (a, o) => o.camera.nearFar), new z("normalMap", (a) => a.normalTexture), new z("depthMap", (a) => a.depthTexture), new $("projScale", (a) => a.projScale), new z("rnm", (a) => a.noiseTexture), new ue("rnmScale", (a, o) => Te(Tt, o.camera.fullWidth / a.noiseTexture.descriptor.width, o.camera.fullHeight / a.noiseTexture.descriptor.height)), new $("intensity", (a) => a.intensity), new ue("screenSize", (a, o) => Te(Tt, o.camera.fullWidth, o.camera.fullHeight))), e.outputs.add("fragOcclusion", "float"), t.code.add(i`
|
|
436
|
-
void main(void) {
|
|
437
|
-
float currentPixelDepth = linearDepthFromTexture(depthMap, uv, nearFar);
|
|
438
|
-
|
|
439
|
-
if (-currentPixelDepth > nearFar.y || -currentPixelDepth < nearFar.x) {
|
|
440
|
-
fragOcclusion = 1.0;
|
|
441
|
-
return;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
// get the normal of current fragment
|
|
445
|
-
vec4 norm4 = texture(normalMap, uv);
|
|
446
|
-
if(norm4.a != 1.0) {
|
|
447
|
-
fragOcclusion = 1.0;
|
|
448
|
-
return;
|
|
449
|
-
}
|
|
450
|
-
vec3 norm = vec3(-1.0) + 2.0 * norm4.xyz;
|
|
451
|
-
|
|
452
|
-
vec3 currentPixelPos = reconstructPosition(gl_FragCoord.xy, currentPixelDepth);
|
|
453
|
-
|
|
454
|
-
float sum = 0.0;
|
|
455
|
-
vec3 tapPixelPos;
|
|
456
|
-
|
|
457
|
-
vec3 fres = normalize(2.0 * texture(rnm, uv * rnmScale).xyz - 1.0);
|
|
458
|
-
|
|
459
|
-
// note: the factor 2.0 should not be necessary, but makes ssao much nicer.
|
|
460
|
-
// bug or deviation from CE somewhere else?
|
|
461
|
-
float ps = projScale / (2.0 * currentPixelPos.z * zScale.x + zScale.y);
|
|
462
|
-
|
|
463
|
-
for(int i = 0; i < ${i.int(yt)}; ++i) {
|
|
464
|
-
vec2 unitOffset = reflect(sphere[i], fres).xy;
|
|
465
|
-
vec2 offset = vec2(-unitOffset * radius * ps);
|
|
466
|
-
|
|
467
|
-
// don't use current or very nearby samples
|
|
468
|
-
if( abs(offset.x) < 2.0 || abs(offset.y) < 2.0){
|
|
469
|
-
continue;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
vec2 tc = vec2(gl_FragCoord.xy + offset);
|
|
473
|
-
if (tc.x < 0.0 || tc.y < 0.0 || tc.x > screenSize.x || tc.y > screenSize.y) continue;
|
|
474
|
-
vec2 tcTap = tc / screenSize;
|
|
475
|
-
float occluderFragmentDepth = linearDepthFromTexture(depthMap, tcTap, nearFar);
|
|
476
|
-
|
|
477
|
-
tapPixelPos = reconstructPosition(tc, occluderFragmentDepth);
|
|
478
|
-
|
|
479
|
-
sum += aoValueFromPositionsAndNormal(currentPixelPos, norm, tapPixelPos);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
// output the result
|
|
483
|
-
float A = max(1.0 - sum * intensity / float(${i.int(yt)}), 0.0);
|
|
484
|
-
|
|
485
|
-
// Anti-tone map to reduce contrast and drag dark region farther: (x^0.2 + 1.2 * x^4) / 2.2
|
|
486
|
-
A = (pow(A, 0.2) + 1.2 * A*A*A*A) / 2.2;
|
|
487
|
-
|
|
488
|
-
fragOcclusion = A;
|
|
489
|
-
}
|
|
490
|
-
`), e;
|
|
491
|
-
}
|
|
492
|
-
function rt(e) {
|
|
493
|
-
return Math.max(10, 20 * e.computeScreenPixelSizeAtDist(Math.abs(4 * e.relativeElevation)));
|
|
494
|
-
}
|
|
495
|
-
const Tt = Ot(), lr = Object.freeze(Object.defineProperty({ __proto__: null, build: sr, getRadius: rt }, Symbol.toStringTag, { value: "Module" }));
|
|
496
|
-
class ze extends Xe {
|
|
497
|
-
initializeProgram(t) {
|
|
498
|
-
return new Ke(t.rctx, ze.shader.get().build(), Qe);
|
|
499
|
-
}
|
|
500
|
-
initializePipeline() {
|
|
501
|
-
return et({ colorWrite: tt });
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
ze.shader = new Ae(lr, () => import("./SSAO.glsl-7670c1fc.js"));
|
|
505
|
-
var Ye;
|
|
506
|
-
(function(e) {
|
|
507
|
-
e[e.Antialiasing = 0] = "Antialiasing", e[e.HighQualityTransparency = 1] = "HighQualityTransparency", e[e.HighResolutionVoxel = 2] = "HighResolutionVoxel", e[e.HighResolutionAtmosphere = 3] = "HighResolutionAtmosphere", e[e.SSAO = 4] = "SSAO", e[e.WaterReflection = 5] = "WaterReflection", e[e.HighResolutionShadows = 6] = "HighResolutionShadows", e[e.PhysicalPixelRendering = 7] = "PhysicalPixelRendering";
|
|
508
|
-
})(Ye || (Ye = {}));
|
|
509
|
-
const ne = 2;
|
|
510
|
-
let ve = class extends Ua {
|
|
511
|
-
constructor(e) {
|
|
512
|
-
super(e), this._context = null, this._passParameters = new rr(), this._drawParameters = new nr(), this.produces = /* @__PURE__ */ new Map([[ye.SSAO, () => this._produces()]]);
|
|
513
|
-
}
|
|
514
|
-
_getCameraElevation() {
|
|
515
|
-
var e;
|
|
516
|
-
return ((e = this._context) == null ? void 0 : e.renderContext.bindParameters.camera.relativeElevation) ?? 1 / 0;
|
|
517
|
-
}
|
|
518
|
-
_produces() {
|
|
519
|
-
return this._enableTime != null && this._context != null && this._getCameraElevation() < De;
|
|
520
|
-
}
|
|
521
|
-
consumes() {
|
|
522
|
-
return this._produces() ? Wa : qa;
|
|
523
|
-
}
|
|
524
|
-
initializeRenderContext(e) {
|
|
525
|
-
this._context = e, this.addHandles([ya(() => {
|
|
526
|
-
var t;
|
|
527
|
-
return this.view.qualitySettings.ambientOcclusion || ((t = this._context) == null ? void 0 : t.isFeatureEnabled(Ye.SSAO));
|
|
528
|
-
}, (t) => t ? this._enable() : this._disable(), Ta)]);
|
|
529
|
-
}
|
|
530
|
-
uninitializeRenderContext() {
|
|
531
|
-
this._disable(), this._context = null;
|
|
532
|
-
}
|
|
533
|
-
_disable() {
|
|
534
|
-
this._passParameters.noiseTexture = wa(this._passParameters.noiseTexture), this._enableTime = null;
|
|
535
|
-
}
|
|
536
|
-
destroy() {
|
|
537
|
-
this._disable();
|
|
538
|
-
}
|
|
539
|
-
_enable() {
|
|
540
|
-
var a;
|
|
541
|
-
if (this._enableTime != null || !this._context)
|
|
542
|
-
return;
|
|
543
|
-
const e = Uint8Array.from(atob(ar), (o) => o.charCodeAt(0)), t = new Fo();
|
|
544
|
-
t.wrapMode = Oe.CLAMP_TO_EDGE, t.pixelFormat = Lo.RGB, t.wrapMode = Oe.REPEAT, t.hasMipmap = !0, t.width = 32, t.height = 32, this._passParameters.noiseTexture = new Io(this._context.renderContext.rctx, t, e), this._ssaoTechnique == null && (this._ssaoTechnique = this._context.techniqueRepository.acquire(ze)), this._blurTechnique == null && (this._blurTechnique = this._context.techniqueRepository.acquire(ta)), this._enableTime = Ma(0), (a = this._context) == null || a.requestRender();
|
|
545
|
-
}
|
|
546
|
-
renderNode(e, t, a) {
|
|
547
|
-
const o = e.bindParameters, n = a == null ? void 0 : a.get("normals"), r = n == null ? void 0 : n.getTexture(), c = n == null ? void 0 : n.getTexture(jo);
|
|
548
|
-
if (this._enableTime == null || this._context == null || !r || !c)
|
|
549
|
-
return;
|
|
550
|
-
if (!this._ssaoTechnique.compiled || !this._blurTechnique.compiled)
|
|
551
|
-
return this._enableTime = e.time, void this._context.requestRender();
|
|
552
|
-
this._enableTime === 0 && (this._enableTime = e.time);
|
|
553
|
-
const l = e.rctx, s = o.camera, p = this.view.qualitySettings.fadeDuration, m = s.relativeElevation, v = Ca((De - m) / (De - Vo), 0, 1), b = p > 0 ? Math.min(p, e.time - this._enableTime) / p : 1, y = b * v;
|
|
554
|
-
this._passParameters.normalTexture = r, this._passParameters.depthTexture = c, this._passParameters.projScale = 1 / s.computeScreenPixelSizeAtDist(1), this._passParameters.intensity = 4 * cr / rt(s) ** 6 * y;
|
|
555
|
-
const w = s.fullViewport[2], g = s.fullViewport[3], T = Math.round(w / ne), S = Math.round(g / ne), E = this._context.fbos, _ = E.acquire(w, g, "ssao input", je.RG);
|
|
556
|
-
l.unbindTexture(_.fbo.colorTexture), l.bindFramebuffer(_.fbo), l.setViewport(0, 0, w, g), l.bindTechnique(this._ssaoTechnique, o, this._passParameters, this._drawParameters), l.screen.draw();
|
|
557
|
-
const B = E.acquire(T, S, "ssao blur", je.RED);
|
|
558
|
-
l.unbindTexture(B.fbo.colorTexture), l.bindFramebuffer(B.fbo), this._drawParameters.colorTexture = _.getTexture(), Te(this._drawParameters.blurSize, 0, ne / g), l.bindTechnique(this._blurTechnique, o, this._passParameters, this._drawParameters), l.setViewport(0, 0, T, S), l.screen.draw(), _.release();
|
|
559
|
-
const F = E.acquire(T, S, "ssao", je.RED);
|
|
560
|
-
return l.unbindTexture(F.fbo.colorTexture), l.bindFramebuffer(F.fbo), l.setViewport(0, 0, w, g), l.setClearColor(1, 1, 1, 0), l.clear(Bo.COLOR_BUFFER_BIT), this._drawParameters.colorTexture = B.getTexture(), Te(this._drawParameters.blurSize, ne / w, 0), l.bindTechnique(this._blurTechnique, o, this._passParameters, this._drawParameters), l.setViewport(0, 0, T, S), l.screen.draw(), l.setViewport4fv(s.fullViewport), B.release(), b < 1 && this._context.requestRender(), F;
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
d([ut({ constructOnly: !0 })], ve.prototype, "view", void 0), d([ut()], ve.prototype, "_context", void 0), ve = d([ba("esri.views.3d.webgl-engine.effects.ssao.SSAO")], ve);
|
|
564
|
-
const cr = 0.5;
|
|
565
|
-
function it(e, t) {
|
|
566
|
-
const a = e.fragment;
|
|
567
|
-
t.receiveAmbientOcclusion ? (a.uniforms.add(new z("ssaoTex", (o, n) => {
|
|
568
|
-
var r;
|
|
569
|
-
return (r = n.ssao) == null ? void 0 : r.getTexture();
|
|
570
|
-
})), a.constants.add("blurSizePixelsInverse", "float", 1 / ne), a.code.add(i`float evaluateAmbientOcclusionInverse() {
|
|
571
|
-
vec2 ssaoTextureSizeInverse = 1.0 / vec2(textureSize(ssaoTex, 0));
|
|
572
|
-
return texture(ssaoTex, gl_FragCoord.xy * blurSizePixelsInverse * ssaoTextureSizeInverse).r;
|
|
573
|
-
}
|
|
574
|
-
float evaluateAmbientOcclusion() {
|
|
575
|
-
return 1.0 - evaluateAmbientOcclusionInverse();
|
|
576
|
-
}`)) : a.code.add(i`float evaluateAmbientOcclusionInverse() { return 1.0; }
|
|
577
|
-
float evaluateAmbientOcclusion() { return 0.0; }`);
|
|
578
|
-
}
|
|
579
|
-
function dr(e, t) {
|
|
580
|
-
const a = e.fragment, o = t.lightingSphericalHarmonicsOrder !== void 0 ? t.lightingSphericalHarmonicsOrder : 2;
|
|
581
|
-
o === 0 ? (a.uniforms.add(new Y("lightingAmbientSH0", (n, r) => we(wt, r.lighting.sh.r[0], r.lighting.sh.g[0], r.lighting.sh.b[0]))), a.code.add(i`vec3 calculateAmbientIrradiance(vec3 normal, float ambientOcclusion) {
|
|
582
|
-
vec3 ambientLight = 0.282095 * lightingAmbientSH0;
|
|
583
|
-
return ambientLight * (1.0 - ambientOcclusion);
|
|
584
|
-
}`)) : o === 1 ? (a.uniforms.add(new L("lightingAmbientSH_R", (n, r) => V(U, r.lighting.sh.r[0], r.lighting.sh.r[1], r.lighting.sh.r[2], r.lighting.sh.r[3])), new L("lightingAmbientSH_G", (n, r) => V(U, r.lighting.sh.g[0], r.lighting.sh.g[1], r.lighting.sh.g[2], r.lighting.sh.g[3])), new L("lightingAmbientSH_B", (n, r) => V(U, r.lighting.sh.b[0], r.lighting.sh.b[1], r.lighting.sh.b[2], r.lighting.sh.b[3]))), a.code.add(i`vec3 calculateAmbientIrradiance(vec3 normal, float ambientOcclusion) {
|
|
585
|
-
vec4 sh0 = vec4(
|
|
586
|
-
0.282095,
|
|
587
|
-
0.488603 * normal.x,
|
|
588
|
-
0.488603 * normal.z,
|
|
589
|
-
0.488603 * normal.y
|
|
590
|
-
);
|
|
591
|
-
vec3 ambientLight = vec3(
|
|
592
|
-
dot(lightingAmbientSH_R, sh0),
|
|
593
|
-
dot(lightingAmbientSH_G, sh0),
|
|
594
|
-
dot(lightingAmbientSH_B, sh0)
|
|
595
|
-
);
|
|
596
|
-
return ambientLight * (1.0 - ambientOcclusion);
|
|
597
|
-
}`)) : o === 2 && (a.uniforms.add(new Y("lightingAmbientSH0", (n, r) => we(wt, r.lighting.sh.r[0], r.lighting.sh.g[0], r.lighting.sh.b[0])), new L("lightingAmbientSH_R1", (n, r) => V(U, r.lighting.sh.r[1], r.lighting.sh.r[2], r.lighting.sh.r[3], r.lighting.sh.r[4])), new L("lightingAmbientSH_G1", (n, r) => V(U, r.lighting.sh.g[1], r.lighting.sh.g[2], r.lighting.sh.g[3], r.lighting.sh.g[4])), new L("lightingAmbientSH_B1", (n, r) => V(U, r.lighting.sh.b[1], r.lighting.sh.b[2], r.lighting.sh.b[3], r.lighting.sh.b[4])), new L("lightingAmbientSH_R2", (n, r) => V(U, r.lighting.sh.r[5], r.lighting.sh.r[6], r.lighting.sh.r[7], r.lighting.sh.r[8])), new L("lightingAmbientSH_G2", (n, r) => V(U, r.lighting.sh.g[5], r.lighting.sh.g[6], r.lighting.sh.g[7], r.lighting.sh.g[8])), new L("lightingAmbientSH_B2", (n, r) => V(U, r.lighting.sh.b[5], r.lighting.sh.b[6], r.lighting.sh.b[7], r.lighting.sh.b[8]))), a.code.add(i`vec3 calculateAmbientIrradiance(vec3 normal, float ambientOcclusion) {
|
|
598
|
-
vec3 ambientLight = 0.282095 * lightingAmbientSH0;
|
|
599
|
-
vec4 sh1 = vec4(
|
|
600
|
-
0.488603 * normal.x,
|
|
601
|
-
0.488603 * normal.z,
|
|
602
|
-
0.488603 * normal.y,
|
|
603
|
-
1.092548 * normal.x * normal.y
|
|
604
|
-
);
|
|
605
|
-
vec4 sh2 = vec4(
|
|
606
|
-
1.092548 * normal.y * normal.z,
|
|
607
|
-
0.315392 * (3.0 * normal.z * normal.z - 1.0),
|
|
608
|
-
1.092548 * normal.x * normal.z,
|
|
609
|
-
0.546274 * (normal.x * normal.x - normal.y * normal.y)
|
|
610
|
-
);
|
|
611
|
-
ambientLight += vec3(
|
|
612
|
-
dot(lightingAmbientSH_R1, sh1),
|
|
613
|
-
dot(lightingAmbientSH_G1, sh1),
|
|
614
|
-
dot(lightingAmbientSH_B1, sh1)
|
|
615
|
-
);
|
|
616
|
-
ambientLight += vec3(
|
|
617
|
-
dot(lightingAmbientSH_R2, sh2),
|
|
618
|
-
dot(lightingAmbientSH_G2, sh2),
|
|
619
|
-
dot(lightingAmbientSH_B2, sh2)
|
|
620
|
-
);
|
|
621
|
-
return ambientLight * (1.0 - ambientOcclusion);
|
|
622
|
-
}`), t.pbrMode !== f.Normal && t.pbrMode !== f.Schematic || a.code.add(i`const vec3 skyTransmittance = vec3(0.9, 0.9, 1.0);
|
|
623
|
-
vec3 calculateAmbientRadiance(float ambientOcclusion)
|
|
624
|
-
{
|
|
625
|
-
vec3 ambientLight = 1.2 * (0.282095 * lightingAmbientSH0) - 0.2;
|
|
626
|
-
return ambientLight *= (1.0 - ambientOcclusion) * skyTransmittance;
|
|
627
|
-
}`));
|
|
628
|
-
}
|
|
629
|
-
const wt = j(), U = Po();
|
|
630
|
-
function nt(e) {
|
|
631
|
-
e.constants.add("ambientBoostFactor", "float", ka);
|
|
632
|
-
}
|
|
633
|
-
function st(e) {
|
|
634
|
-
e.uniforms.add(new $("lightingGlobalFactor", (t, a) => a.lighting.globalFactor));
|
|
635
|
-
}
|
|
636
|
-
function oa(e, t) {
|
|
637
|
-
const a = e.fragment;
|
|
638
|
-
switch (e.include(it, t), t.pbrMode !== f.Disabled && e.include(ot, t), e.include(dr, t), e.include(zt), a.code.add(i`
|
|
639
|
-
const float GAMMA_SRGB = 2.1;
|
|
640
|
-
const float INV_GAMMA_SRGB = 0.4761904;
|
|
641
|
-
${t.pbrMode === f.Disabled ? "" : "const vec3 GROUND_REFLECTANCE = vec3(0.2);"}
|
|
642
|
-
`), nt(a), st(a), at(a), a.code.add(i`
|
|
643
|
-
float additionalDirectedAmbientLight(vec3 vPosWorld) {
|
|
644
|
-
float vndl = dot(${t.spherical ? i`normalize(vPosWorld)` : i`vec3(0.0, 0.0, 1.0)`}, mainLightDirection);
|
|
645
|
-
return smoothstep(0.0, 1.0, clamp(vndl * 2.5, 0.0, 1.0));
|
|
646
|
-
}
|
|
647
|
-
`), Ne(a), a.code.add(i`vec3 evaluateAdditionalLighting(float ambientOcclusion, vec3 vPosWorld) {
|
|
648
|
-
float additionalAmbientScale = additionalDirectedAmbientLight(vPosWorld);
|
|
649
|
-
return (1.0 - ambientOcclusion) * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor * mainLightIntensity;
|
|
650
|
-
}`), t.pbrMode) {
|
|
651
|
-
case f.Disabled:
|
|
652
|
-
case f.WaterOnIntegratedMesh:
|
|
653
|
-
case f.Water:
|
|
654
|
-
e.include(bt), a.code.add(i`vec3 evaluateSceneLighting(vec3 normalWorld, vec3 albedo, float shadow, float ssao, vec3 additionalLight)
|
|
655
|
-
{
|
|
656
|
-
vec3 mainLighting = evaluateMainLighting(normalWorld, shadow);
|
|
657
|
-
vec3 ambientLighting = calculateAmbientIrradiance(normalWorld, ssao);
|
|
658
|
-
vec3 albedoLinear = pow(albedo, vec3(GAMMA_SRGB));
|
|
659
|
-
vec3 totalLight = mainLighting + ambientLighting + additionalLight;
|
|
660
|
-
totalLight = min(totalLight, vec3(PI));
|
|
661
|
-
vec3 outColor = vec3((albedoLinear / PI) * totalLight);
|
|
662
|
-
return pow(outColor, vec3(INV_GAMMA_SRGB));
|
|
663
|
-
}`);
|
|
664
|
-
break;
|
|
665
|
-
case f.Normal:
|
|
666
|
-
case f.Schematic:
|
|
667
|
-
a.code.add(i`const float fillLightIntensity = 0.25;
|
|
668
|
-
const float horizonLightDiffusion = 0.4;
|
|
669
|
-
const float additionalAmbientIrradianceFactor = 0.02;
|
|
670
|
-
vec3 evaluateSceneLightingPBR(vec3 normal, vec3 albedo, float shadow, float ssao, vec3 additionalLight, vec3 viewDir, vec3 normalGround, vec3 mrr, vec3 _emission, float additionalAmbientIrradiance)
|
|
671
|
-
{
|
|
672
|
-
vec3 viewDirection = -viewDir;
|
|
673
|
-
vec3 h = normalize(viewDirection + mainLightDirection);
|
|
674
|
-
PBRShadingInfo inputs;
|
|
675
|
-
inputs.NdotL = clamp(dot(normal, mainLightDirection), 0.001, 1.0);
|
|
676
|
-
inputs.NdotV = clamp(abs(dot(normal, viewDirection)), 0.001, 1.0);
|
|
677
|
-
inputs.NdotH = clamp(dot(normal, h), 0.0, 1.0);
|
|
678
|
-
inputs.VdotH = clamp(dot(viewDirection, h), 0.0, 1.0);
|
|
679
|
-
inputs.NdotNG = clamp(dot(normal, normalGround), -1.0, 1.0);
|
|
680
|
-
vec3 reflectedView = normalize(reflect(viewDirection, normal));
|
|
681
|
-
inputs.RdotNG = clamp(dot(reflectedView, normalGround), -1.0, 1.0);
|
|
682
|
-
inputs.albedoLinear = pow(albedo, vec3(GAMMA_SRGB));
|
|
683
|
-
inputs.ssao = ssao;
|
|
684
|
-
inputs.metalness = mrr[0];
|
|
685
|
-
inputs.roughness = clamp(mrr[1] * mrr[1], 0.001, 0.99);`), a.code.add(i`inputs.f0 = (0.16 * mrr[2] * mrr[2]) * (1.0 - inputs.metalness) + inputs.albedoLinear * inputs.metalness;
|
|
686
|
-
inputs.f90 = vec3(clamp(dot(inputs.f0, vec3(50.0 * 0.33)), 0.0, 1.0));
|
|
687
|
-
inputs.diffuseColor = inputs.albedoLinear * (vec3(1.0) - inputs.f0) * (1.0 - inputs.metalness);`), t.useFillLights ? a.uniforms.add(new Ya("hasFillLights", (o, n) => n.enableFillLights)) : a.constants.add("hasFillLights", "bool", !1), a.code.add(i`vec3 ambientDir = vec3(5.0 * normalGround[1] - normalGround[0] * normalGround[2], - 5.0 * normalGround[0] - normalGround[2] * normalGround[1], normalGround[1] * normalGround[1] + normalGround[0] * normalGround[0]);
|
|
688
|
-
ambientDir = ambientDir != vec3(0.0) ? normalize(ambientDir) : normalize(vec3(5.0, -1.0, 0.0));
|
|
689
|
-
inputs.NdotAmbDir = hasFillLights ? abs(dot(normal, ambientDir)) : 1.0;
|
|
690
|
-
vec3 mainLightIrradianceComponent = inputs.NdotL * (1.0 - shadow) * mainLightIntensity;
|
|
691
|
-
vec3 fillLightsIrradianceComponent = inputs.NdotAmbDir * mainLightIntensity * fillLightIntensity;
|
|
692
|
-
vec3 ambientLightIrradianceComponent = calculateAmbientIrradiance(normal, ssao) + additionalLight;
|
|
693
|
-
inputs.skyIrradianceToSurface = ambientLightIrradianceComponent + mainLightIrradianceComponent + fillLightsIrradianceComponent ;
|
|
694
|
-
inputs.groundIrradianceToSurface = GROUND_REFLECTANCE * ambientLightIrradianceComponent + mainLightIrradianceComponent + fillLightsIrradianceComponent ;`), a.uniforms.add(new $("lightingSpecularStrength", (o, n) => n.lighting.mainLight.specularStrength), new $("lightingEnvironmentStrength", (o, n) => n.lighting.mainLight.environmentStrength)), a.code.add(i`vec3 horizonRingDir = inputs.RdotNG * normalGround - reflectedView;
|
|
695
|
-
vec3 horizonRingH = normalize(viewDirection + horizonRingDir);
|
|
696
|
-
inputs.NdotH_Horizon = dot(normal, horizonRingH);
|
|
697
|
-
vec3 mainLightRadianceComponent = lightingSpecularStrength * normalDistribution(inputs.NdotH, inputs.roughness) * mainLightIntensity * (1.0 - shadow);
|
|
698
|
-
vec3 horizonLightRadianceComponent = lightingEnvironmentStrength * normalDistribution(inputs.NdotH_Horizon, min(inputs.roughness + horizonLightDiffusion, 1.0)) * mainLightIntensity * fillLightIntensity;
|
|
699
|
-
vec3 ambientLightRadianceComponent = lightingEnvironmentStrength * calculateAmbientRadiance(ssao) + additionalLight;
|
|
700
|
-
float normalDirectionModifier = mix(1., min(mix(0.1, 2.0, (inputs.NdotNG + 1.) * 0.5), 1.0), clamp(inputs.roughness * 5.0, 0.0 , 1.0));
|
|
701
|
-
inputs.skyRadianceToSurface = (ambientLightRadianceComponent + horizonLightRadianceComponent) * normalDirectionModifier + mainLightRadianceComponent;
|
|
702
|
-
inputs.groundRadianceToSurface = 0.5 * GROUND_REFLECTANCE * (ambientLightRadianceComponent + horizonLightRadianceComponent) * normalDirectionModifier + mainLightRadianceComponent;
|
|
703
|
-
inputs.averageAmbientRadiance = ambientLightIrradianceComponent[1] * (1.0 + GROUND_REFLECTANCE[1]);`), a.code.add(i`
|
|
704
|
-
vec3 reflectedColorComponent = evaluateEnvironmentIllumination(inputs);
|
|
705
|
-
vec3 additionalMaterialReflectanceComponent = inputs.albedoLinear * additionalAmbientIrradiance;
|
|
706
|
-
vec3 emissionComponent = _emission == vec3(0.0) ? _emission : pow(_emission, vec3(GAMMA_SRGB));
|
|
707
|
-
vec3 outColorLinear = reflectedColorComponent + additionalMaterialReflectanceComponent + emissionComponent;
|
|
708
|
-
${t.pbrMode !== f.Schematic || t.hasColorTexture ? i`vec3 outColor = pow(blackLevelSoftCompression(outColorLinear, inputs), vec3(INV_GAMMA_SRGB));` : i`vec3 outColor = pow(max(vec3(0.0), outColorLinear - 0.005 * inputs.averageAmbientRadiance), vec3(INV_GAMMA_SRGB));`}
|
|
709
|
-
return outColor;
|
|
710
|
-
}
|
|
711
|
-
`);
|
|
712
|
-
break;
|
|
713
|
-
case f.Simplified:
|
|
714
|
-
case f.TerrainWithWater:
|
|
715
|
-
e.include(bt), a.code.add(i`const float roughnessTerrain = 0.5;
|
|
716
|
-
const float specularityTerrain = 0.5;
|
|
717
|
-
const vec3 fresnelReflectionTerrain = vec3(0.04);
|
|
718
|
-
vec3 evaluatePBRSimplifiedLighting(vec3 n, vec3 c, float shadow, float ssao, vec3 al, vec3 vd, vec3 nup) {
|
|
719
|
-
vec3 viewDirection = -vd;
|
|
720
|
-
vec3 h = normalize(viewDirection + mainLightDirection);
|
|
721
|
-
float NdotL = clamp(dot(n, mainLightDirection), 0.001, 1.0);
|
|
722
|
-
float NdotV = clamp(abs(dot(n, viewDirection)), 0.001, 1.0);
|
|
723
|
-
float NdotH = clamp(dot(n, h), 0.0, 1.0);
|
|
724
|
-
float NdotNG = clamp(dot(n, nup), -1.0, 1.0);
|
|
725
|
-
vec3 albedoLinear = pow(c, vec3(GAMMA_SRGB));
|
|
726
|
-
float lightness = 0.3 * albedoLinear[0] + 0.5 * albedoLinear[1] + 0.2 * albedoLinear[2];
|
|
727
|
-
vec3 f0 = (0.85 * lightness + 0.15) * fresnelReflectionTerrain;
|
|
728
|
-
vec3 f90 = vec3(clamp(dot(f0, vec3(50.0 * 0.33)), 0.0, 1.0));
|
|
729
|
-
vec3 mainLightIrradianceComponent = (1. - shadow) * NdotL * mainLightIntensity;
|
|
730
|
-
vec3 ambientLightIrradianceComponent = calculateAmbientIrradiance(n, ssao) + al;
|
|
731
|
-
vec3 ambientSky = ambientLightIrradianceComponent + mainLightIrradianceComponent;
|
|
732
|
-
vec3 indirectDiffuse = ((1.0 - NdotNG) * mainLightIrradianceComponent + (1.0 + NdotNG ) * ambientSky) * 0.5;
|
|
733
|
-
vec3 outDiffColor = albedoLinear * (1.0 - f0) * indirectDiffuse / PI;
|
|
734
|
-
vec3 mainLightRadianceComponent = normalDistribution(NdotH, roughnessTerrain) * mainLightIntensity;
|
|
735
|
-
vec2 dfg = prefilteredDFGAnalytical(roughnessTerrain, NdotV);
|
|
736
|
-
vec3 specularColor = f0 * dfg.x + f90 * dfg.y;
|
|
737
|
-
vec3 specularComponent = specularityTerrain * specularColor * mainLightRadianceComponent;
|
|
738
|
-
vec3 outColorLinear = outDiffColor + specularComponent;
|
|
739
|
-
vec3 outColor = pow(outColorLinear, vec3(INV_GAMMA_SRGB));
|
|
740
|
-
return outColor;
|
|
741
|
-
}`);
|
|
742
|
-
break;
|
|
743
|
-
default:
|
|
744
|
-
Ct(t.pbrMode);
|
|
745
|
-
case f.COUNT:
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
class ur extends He {
|
|
749
|
-
constructor(t, a, o) {
|
|
750
|
-
super(t, "mat4", Re.Draw, (n, r, c, l) => n.setUniformMatrix4fv(t, a(r, c, l)), o);
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
class hr extends He {
|
|
754
|
-
constructor(t, a, o) {
|
|
755
|
-
super(t, "mat4", Re.Pass, (n, r, c) => n.setUniformMatrix4fv(t, a(r, c)), o);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
function ra(e, t) {
|
|
759
|
-
t.receiveShadows && (e.fragment.uniforms.add(new hr("shadowMapMatrix", (a, o) => o.shadowMap.getShadowMapMatrices(a.origin), 4)), na(e));
|
|
760
|
-
}
|
|
761
|
-
function ia(e, t) {
|
|
762
|
-
t.receiveShadows && (e.fragment.uniforms.add(new ur("shadowMapMatrix", (a, o) => o.shadowMap.getShadowMapMatrices(a.origin), 4)), na(e));
|
|
763
|
-
}
|
|
764
|
-
function na(e) {
|
|
765
|
-
const t = e.fragment;
|
|
766
|
-
t.include(Ja), t.uniforms.add(new z("shadowMap", (a, o) => o.shadowMap.depthTexture), new Pt("numCascades", (a, o) => o.shadowMap.numCascades), new L("cascadeDistances", (a, o) => o.shadowMap.cascadeDistances)), t.code.add(i`int chooseCascade(float depth, out mat4 mat) {
|
|
767
|
-
vec4 distance = cascadeDistances;
|
|
768
|
-
int i = depth < distance[1] ? 0 : depth < distance[2] ? 1 : depth < distance[3] ? 2 : 3;
|
|
769
|
-
mat = i == 0 ? shadowMapMatrix[0] : i == 1 ? shadowMapMatrix[1] : i == 2 ? shadowMapMatrix[2] : shadowMapMatrix[3];
|
|
770
|
-
return i;
|
|
771
|
-
}
|
|
772
|
-
vec3 lightSpacePosition(vec3 _vpos, mat4 mat) {
|
|
773
|
-
vec4 lv = mat * vec4(_vpos, 1.0);
|
|
774
|
-
lv.xy /= lv.w;
|
|
775
|
-
return 0.5 * lv.xyz + vec3(0.5);
|
|
776
|
-
}
|
|
777
|
-
vec2 cascadeCoordinates(int i, ivec2 textureSize, vec3 lvpos) {
|
|
778
|
-
float xScale = float(textureSize.y) / float(textureSize.x);
|
|
779
|
-
return vec2((float(i) + lvpos.x) * xScale, lvpos.y);
|
|
780
|
-
}
|
|
781
|
-
float readShadowMapDepth(ivec2 uv, sampler2D _depthTex) {
|
|
782
|
-
return rgba4ToFloat(texelFetch(_depthTex, uv, 0));
|
|
783
|
-
}
|
|
784
|
-
float posIsInShadow(ivec2 uv, vec3 lvpos, sampler2D _depthTex) {
|
|
785
|
-
return readShadowMapDepth(uv, _depthTex) < lvpos.z ? 1.0 : 0.0;
|
|
786
|
-
}
|
|
787
|
-
float filterShadow(vec2 uv, vec3 lvpos, ivec2 texSize, sampler2D _depthTex) {
|
|
788
|
-
vec2 st = fract(uv * vec2(texSize) + vec2(0.5));
|
|
789
|
-
ivec2 base = ivec2(uv * vec2(texSize) - vec2(0.5));
|
|
790
|
-
float s00 = posIsInShadow(ivec2(base.x, base.y), lvpos, _depthTex);
|
|
791
|
-
float s10 = posIsInShadow(ivec2(base.x + 1, base.y), lvpos, _depthTex);
|
|
792
|
-
float s11 = posIsInShadow(ivec2(base.x + 1, base.y + 1), lvpos, _depthTex);
|
|
793
|
-
float s01 = posIsInShadow(ivec2(base.x, base.y + 1), lvpos, _depthTex);
|
|
794
|
-
return mix(mix(s00, s10, st.x), mix(s01, s11, st.x), st.y);
|
|
795
|
-
}
|
|
796
|
-
float readShadowMap(const in vec3 _vpos, float _linearDepth) {
|
|
797
|
-
mat4 mat;
|
|
798
|
-
int i = chooseCascade(_linearDepth, mat);
|
|
799
|
-
if (i >= numCascades) { return 0.0; }
|
|
800
|
-
vec3 lvpos = lightSpacePosition(_vpos, mat);
|
|
801
|
-
if (lvpos.z >= 1.0 || lvpos.x < 0.0 || lvpos.x > 1.0 || lvpos.y < 0.0 || lvpos.y > 1.0) { return 0.0; }
|
|
802
|
-
ivec2 size = textureSize(shadowMap, 0);
|
|
803
|
-
vec2 uv = cascadeCoordinates(i, size, lvpos);
|
|
804
|
-
return filterShadow(uv, lvpos, size, shadowMap);
|
|
805
|
-
}`);
|
|
806
|
-
}
|
|
807
|
-
function mr(e, t) {
|
|
808
|
-
t.hasColorTextureTransform ? (e.vertex.uniforms.add(new te("colorTextureTransformMatrix", (a) => a.colorTextureTransformMatrix ?? ee)), e.varyings.add("colorUV", "vec2"), e.vertex.code.add(i`void forwardColorUV(){
|
|
809
|
-
colorUV = (colorTextureTransformMatrix * vec3(vuv0, 1.0)).xy;
|
|
810
|
-
}`)) : e.vertex.code.add(i`void forwardColorUV(){}`);
|
|
811
|
-
}
|
|
812
|
-
function pr(e, t) {
|
|
813
|
-
t.hasNormalTextureTransform && t.textureCoordinateType !== k.None ? (e.vertex.uniforms.add(new te("normalTextureTransformMatrix", (a) => a.normalTextureTransformMatrix ?? ee)), e.varyings.add("normalUV", "vec2"), e.vertex.code.add(i`void forwardNormalUV(){
|
|
814
|
-
normalUV = (normalTextureTransformMatrix * vec3(vuv0, 1.0)).xy;
|
|
815
|
-
}`)) : e.vertex.code.add(i`void forwardNormalUV(){}`);
|
|
816
|
-
}
|
|
817
|
-
function fr(e, t) {
|
|
818
|
-
t.hasEmissionTextureTransform && t.textureCoordinateType !== k.None ? (e.vertex.uniforms.add(new te("emissiveTextureTransformMatrix", (a) => a.emissiveTextureTransformMatrix ?? ee)), e.varyings.add("emissiveUV", "vec2"), e.vertex.code.add(i`void forwardEmissiveUV(){
|
|
819
|
-
emissiveUV = (emissiveTextureTransformMatrix * vec3(vuv0, 1.0)).xy;
|
|
820
|
-
}`)) : e.vertex.code.add(i`void forwardEmissiveUV(){}`);
|
|
821
|
-
}
|
|
822
|
-
function vr(e, t) {
|
|
823
|
-
t.hasOcclusionTextureTransform && t.textureCoordinateType !== k.None ? (e.vertex.uniforms.add(new te("occlusionTextureTransformMatrix", (a) => a.occlusionTextureTransformMatrix ?? ee)), e.varyings.add("occlusionUV", "vec2"), e.vertex.code.add(i`void forwardOcclusionUV(){
|
|
824
|
-
occlusionUV = (occlusionTextureTransformMatrix * vec3(vuv0, 1.0)).xy;
|
|
825
|
-
}`)) : e.vertex.code.add(i`void forwardOcclusionUV(){}`);
|
|
826
|
-
}
|
|
827
|
-
function gr(e, t) {
|
|
828
|
-
t.hasMetallicRoughnessTextureTransform && t.textureCoordinateType !== k.None ? (e.vertex.uniforms.add(new te("metallicRoughnessTextureTransformMatrix", (a) => a.metallicRoughnessTextureTransformMatrix ?? ee)), e.varyings.add("metallicRoughnessUV", "vec2"), e.vertex.code.add(i`void forwardMetallicRoughnessUV(){
|
|
829
|
-
metallicRoughnessUV = (metallicRoughnessTextureTransformMatrix * vec3(vuv0, 1.0)).xy;
|
|
830
|
-
}`)) : e.vertex.code.add(i`void forwardMetallicRoughnessUV(){}`);
|
|
831
|
-
}
|
|
832
|
-
function $e(e) {
|
|
833
|
-
e.include(Za), e.code.add(i`
|
|
834
|
-
vec3 mixExternalColor(vec3 internalColor, vec3 textureColor, vec3 externalColor, int mode) {
|
|
835
|
-
// workaround for artifacts in OSX using Intel Iris Pro
|
|
836
|
-
// see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/10475
|
|
837
|
-
vec3 internalMixed = internalColor * textureColor;
|
|
838
|
-
vec3 allMixed = internalMixed * externalColor;
|
|
839
|
-
|
|
840
|
-
if (mode == ${i.int(q.Multiply)}) {
|
|
841
|
-
return allMixed;
|
|
842
|
-
}
|
|
843
|
-
if (mode == ${i.int(q.Ignore)}) {
|
|
844
|
-
return internalMixed;
|
|
845
|
-
}
|
|
846
|
-
if (mode == ${i.int(q.Replace)}) {
|
|
847
|
-
return externalColor;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
// tint (or something invalid)
|
|
851
|
-
float vIn = rgb2v(internalMixed);
|
|
852
|
-
vec3 hsvTint = rgb2hsv(externalColor);
|
|
853
|
-
vec3 hsvOut = vec3(hsvTint.x, hsvTint.y, vIn * hsvTint.z);
|
|
854
|
-
return hsv2rgb(hsvOut);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
float mixExternalOpacity(float internalOpacity, float textureOpacity, float externalOpacity, int mode) {
|
|
858
|
-
// workaround for artifacts in OSX using Intel Iris Pro
|
|
859
|
-
// see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/10475
|
|
860
|
-
float internalMixed = internalOpacity * textureOpacity;
|
|
861
|
-
float allMixed = internalMixed * externalOpacity;
|
|
862
|
-
|
|
863
|
-
if (mode == ${i.int(q.Ignore)}) {
|
|
864
|
-
return internalMixed;
|
|
865
|
-
}
|
|
866
|
-
if (mode == ${i.int(q.Replace)}) {
|
|
867
|
-
return externalOpacity;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
// multiply or tint (or something invalid)
|
|
871
|
-
return allMixed;
|
|
872
|
-
}
|
|
873
|
-
`);
|
|
874
|
-
}
|
|
875
|
-
function xr(e) {
|
|
876
|
-
const t = new _e(), { vertex: a, fragment: o, varyings: n } = t;
|
|
877
|
-
if (se(a, e), t.include(Ft), n.add("vpos", "vec3"), t.include(de, e), t.include(It, e), t.include(Dt, e), t.include(mr, e), e.output === x.Color || e.output === x.Alpha) {
|
|
878
|
-
t.include(pr, e), t.include(fr, e), t.include(vr, e), t.include(gr, e), Ce(a, e), t.include(Ze, e), t.include(le, e);
|
|
879
|
-
const r = e.normalType === R.Attribute || e.normalType === R.Compressed;
|
|
880
|
-
r && e.offsetBackfaces && t.include(Kt), t.include(Ko, e), t.include(Gt, e), e.instancedColor && t.attributes.add(C.INSTANCECOLOR, "vec4"), n.add("vPositionLocal", "vec3"), t.include(ce, e), t.include(Vt, e), t.include(Qt, e), t.include(Ut, e), a.uniforms.add(new L("externalColor", (c) => c.externalColor)), n.add("vcolorExt", "vec4"), e.multipassEnabled && n.add("depth", "float"), a.code.add(i`
|
|
881
|
-
void main(void) {
|
|
882
|
-
forwardNormalizedVertexColor();
|
|
883
|
-
vcolorExt = externalColor;
|
|
884
|
-
${e.instancedColor ? "vcolorExt *= instanceColor * 0.003921568627451;" : ""}
|
|
885
|
-
vcolorExt *= vvColor();
|
|
886
|
-
vcolorExt *= getSymbolColor();
|
|
887
|
-
forwardColorMixMode();
|
|
888
|
-
|
|
889
|
-
if (vcolorExt.a < ${i.float(Je)}) {
|
|
890
|
-
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
891
|
-
} else {
|
|
892
|
-
vpos = getVertexInLocalOriginSpace();
|
|
893
|
-
vPositionLocal = vpos - view[3].xyz;
|
|
894
|
-
vpos = subtractOrigin(vpos);
|
|
895
|
-
${r ? i`vNormalWorld = dpNormal(vvLocalNormal(normalModel()));` : ""}
|
|
896
|
-
vpos = addVerticalOffset(vpos, localOrigin);
|
|
897
|
-
${e.hasVertexTangents ? "vTangent = dpTransformVertexTangent(tangent);" : ""}
|
|
898
|
-
gl_Position = transformPosition(proj, view, vpos);
|
|
899
|
-
${r && e.offsetBackfaces ? "gl_Position = offsetBackfacingClipPosition(gl_Position, vpos, vNormalWorld, cameraPosition);" : ""}
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
${e.multipassEnabled ? "depth = (view * vec4(vpos, 1.0)).z;" : ""}
|
|
903
|
-
forwardLinearDepth();
|
|
904
|
-
forwardTextureCoordinates();
|
|
905
|
-
forwardColorUV();
|
|
906
|
-
forwardNormalUV();
|
|
907
|
-
forwardEmissiveUV();
|
|
908
|
-
forwardOcclusionUV();
|
|
909
|
-
forwardMetallicRoughnessUV();
|
|
910
|
-
}
|
|
911
|
-
`);
|
|
912
|
-
}
|
|
913
|
-
switch (e.output) {
|
|
914
|
-
case x.Alpha:
|
|
915
|
-
t.include(Z, e), t.include(H, e), t.include(Se, e), o.uniforms.add(new $("opacity", (r) => r.opacity), new $("layerOpacity", (r) => r.layerOpacity)), e.hasColorTexture && o.uniforms.add(new z("tex", (r) => r.texture)), o.include($e), o.code.add(i`
|
|
916
|
-
void main() {
|
|
917
|
-
discardBySlice(vpos);
|
|
918
|
-
${e.multipassEnabled ? "terrainDepthTest(depth);" : ""}
|
|
919
|
-
${e.hasColorTexture ? i`
|
|
920
|
-
vec4 texColor = texture(tex, ${e.hasColorTextureTransform ? i`colorUV` : i`vuv0`});
|
|
921
|
-
${e.textureAlphaPremultiplied ? "texColor.rgb /= texColor.a;" : ""}
|
|
922
|
-
discardOrAdjustAlpha(texColor);` : i`vec4 texColor = vec4(1.0);`}
|
|
923
|
-
${e.hasVertexColors ? i`float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));` : i`float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));`}
|
|
924
|
-
fragColor = vec4(opacity_);
|
|
925
|
-
}
|
|
926
|
-
`);
|
|
927
|
-
break;
|
|
928
|
-
case x.Color:
|
|
929
|
-
t.include(Z, e), t.include(oa, e), t.include(it, e), t.include(H, e), t.include(e.instancedDoublePrecision ? ra : ia, e), t.include(Se, e), Ce(o, e), o.uniforms.add(a.uniforms.get("localOrigin"), new Y("ambient", (r) => r.ambient), new Y("diffuse", (r) => r.diffuse), new $("opacity", (r) => r.opacity), new $("layerOpacity", (r) => r.layerOpacity)), e.hasColorTexture && o.uniforms.add(new z("tex", (r) => r.texture)), t.include(Wt, e), t.include(ot, e), o.include($e), t.include(qo, e), nt(o), st(o), Ne(o), o.code.add(i`
|
|
930
|
-
void main() {
|
|
931
|
-
discardBySlice(vpos);
|
|
932
|
-
${e.multipassEnabled ? "terrainDepthTest(depth);" : ""}
|
|
933
|
-
${e.hasColorTexture ? i`
|
|
934
|
-
vec4 texColor = texture(tex, ${e.hasColorTextureTransform ? i`colorUV` : i`vuv0`});
|
|
935
|
-
${e.textureAlphaPremultiplied ? "texColor.rgb /= texColor.a;" : ""}
|
|
936
|
-
discardOrAdjustAlpha(texColor);` : i`vec4 texColor = vec4(1.0);`}
|
|
937
|
-
shadingParams.viewDirection = normalize(vpos - cameraPosition);
|
|
938
|
-
${e.normalType === R.ScreenDerivative ? i`
|
|
939
|
-
vec3 normal = screenDerivativeNormal(vPositionLocal);` : i`
|
|
940
|
-
shadingParams.normalView = vNormalWorld;
|
|
941
|
-
vec3 normal = shadingNormal(shadingParams);`}
|
|
942
|
-
${e.pbrMode === f.Normal ? "applyPBRFactors();" : ""}
|
|
943
|
-
float ssao = evaluateAmbientOcclusionInverse() * getBakedOcclusion();
|
|
944
|
-
|
|
945
|
-
vec3 posWorld = vpos + localOrigin;
|
|
946
|
-
|
|
947
|
-
float additionalAmbientScale = additionalDirectedAmbientLight(posWorld);
|
|
948
|
-
float shadow = ${e.receiveShadows ? "readShadowMap(vpos, linearDepth)" : e.spherical ? "lightingGlobalFactor * (1.0 - additionalAmbientScale)" : "0.0"};
|
|
949
|
-
|
|
950
|
-
vec3 matColor = max(ambient, diffuse);
|
|
951
|
-
${e.hasVertexColors ? i`
|
|
952
|
-
vec3 albedo = mixExternalColor(vColor.rgb * matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode));
|
|
953
|
-
float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));` : i`
|
|
954
|
-
vec3 albedo = mixExternalColor(matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode));
|
|
955
|
-
float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));`}
|
|
956
|
-
${e.hasNormalTexture ? i`
|
|
957
|
-
mat3 tangentSpace = ${e.hasVertexTangents ? "computeTangentSpace(normal);" : "computeTangentSpace(normal, vpos, vuv0);"}
|
|
958
|
-
vec3 shadingNormal = computeTextureNormal(tangentSpace, ${e.hasNormalTextureTransform ? i`normalUV` : "vuv0"});` : i`vec3 shadingNormal = normal;`}
|
|
959
|
-
vec3 normalGround = ${e.spherical ? i`normalize(posWorld);` : i`vec3(0.0, 0.0, 1.0);`}
|
|
960
|
-
|
|
961
|
-
${e.snowCover ? i`
|
|
962
|
-
float snow = smoothstep(0.5, 0.55, dot(normal, normalGround));
|
|
963
|
-
albedo = mix(albedo, vec3(1), snow);
|
|
964
|
-
shadingNormal = mix(shadingNormal, normal, snow);
|
|
965
|
-
ssao = mix(ssao, 1.0, snow);` : ""}
|
|
966
|
-
|
|
967
|
-
vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor;
|
|
968
|
-
|
|
969
|
-
${e.pbrMode === f.Normal || e.pbrMode === f.Schematic ? i`
|
|
970
|
-
float additionalAmbientIrradiance = additionalAmbientIrradianceFactor * mainLightIntensity[2];
|
|
971
|
-
${e.snowCover ? i`
|
|
972
|
-
mrr = mix(mrr, vec3(0.0, 1.0, 0.04), snow);
|
|
973
|
-
emission = mix(emission, vec3(0.0), snow);` : ""}
|
|
974
|
-
|
|
975
|
-
vec3 shadedColor = evaluateSceneLightingPBR(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight, shadingParams.viewDirection, normalGround, mrr, emission, additionalAmbientIrradiance);` : i`vec3 shadedColor = evaluateSceneLighting(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight);`}
|
|
976
|
-
fragColor = highlightSlice(vec4(shadedColor, opacity_), vpos);
|
|
977
|
-
${e.transparencyPassType === Q.Color ? i`fragColor = premultiplyAlpha(fragColor);` : ""}
|
|
978
|
-
}
|
|
979
|
-
`);
|
|
980
|
-
}
|
|
981
|
-
return t.include(ea, e), t;
|
|
982
|
-
}
|
|
983
|
-
const br = Object.freeze(Object.defineProperty({ __proto__: null, build: xr }, Symbol.toStringTag, { value: "Module" }));
|
|
984
|
-
let yr = class extends Qa {
|
|
985
|
-
constructor() {
|
|
986
|
-
super(...arguments), this.isSchematic = !1, this.usePBR = !1, this.mrrFactors = ke(Xt), this.hasVertexColors = !1, this.hasSymbolColors = !1, this.doubleSided = !1, this.doubleSidedType = "normal", this.cullFace = J.Back, this.isInstanced = !1, this.hasInstancedColor = !1, this.emissiveFactor = xe(0, 0, 0), this.instancedDoublePrecision = !1, this.normalType = R.Attribute, this.receiveShadows = !0, this.receiveAmbientOcclusion = !0, this.castShadows = !0, this.shadowMappingEnabled = !1, this.ambient = xe(0.2, 0.2, 0.2), this.diffuse = xe(0.8, 0.8, 0.8), this.externalColor = Go(1, 1, 1, 1), this.colorMixMode = "multiply", this.opacity = 1, this.layerOpacity = 1, this.origin = j(), this.hasSlicePlane = !1, this.hasSliceHighlight = !0, this.offsetTransparentBackfaces = !1, this.vvSize = null, this.vvColor = null, this.vvOpacity = null, this.vvSymbolAnchor = null, this.vvSymbolRotationMatrix = null, this.modelTransformation = null, this.transparent = !1, this.writeDepth = !0, this.customDepthTest = he.Less, this.textureAlphaMode = M.Blend, this.textureAlphaCutoff = eo, this.textureAlphaPremultiplied = !1, this.hasOccludees = !1, this.renderOccluded = to.Occlude, this.isDecoration = !1;
|
|
987
|
-
}
|
|
988
|
-
}, lt = class sa extends Xe {
|
|
989
|
-
initializeConfiguration(t, a) {
|
|
990
|
-
a.spherical = t.viewingMode === qe.Global, a.doublePrecisionRequiresObfuscation = t.rctx.driverTest.doublePrecisionRequiresObfuscation.result, a.textureCoordinateType = a.hasColorTexture || a.hasMetallicRoughnessTexture || a.hasEmissionTexture || a.hasOcclusionTexture || a.hasNormalTexture ? k.Default : k.None, a.objectAndLayerIdColorInstanced = a.instanced;
|
|
991
|
-
}
|
|
992
|
-
initializeProgram(t) {
|
|
993
|
-
return this._initializeProgram(t, sa.shader);
|
|
994
|
-
}
|
|
995
|
-
_initializeProgram(t, a) {
|
|
996
|
-
return new Ke(t.rctx, a.get().build(this.configuration), Qe);
|
|
997
|
-
}
|
|
998
|
-
_convertDepthTestFunction(t) {
|
|
999
|
-
return t === he.Lequal ? xt.LEQUAL : xt.LESS;
|
|
1000
|
-
}
|
|
1001
|
-
_makePipeline(t, a) {
|
|
1002
|
-
const o = this.configuration, n = t === Q.NONE, r = t === Q.FrontFace;
|
|
1003
|
-
return et({ blending: o.output !== x.Color && o.output !== x.Alpha || !o.transparent ? null : n ? $o : Eo(t), culling: Tr(o) ? _o(o.cullFace) : null, depthTest: { func: Ao(t, this._convertDepthTestFunction(o.customDepthTest)) }, depthWrite: (n || r) && o.writeDepth ? Ro : null, colorWrite: tt, stencilWrite: o.hasOccludees ? Ha : null, stencilTest: o.hasOccludees ? a ? Xa : Ka : null, polygonOffset: n || r ? null : No(o.enableOffset) });
|
|
1004
|
-
}
|
|
1005
|
-
initializePipeline() {
|
|
1006
|
-
return this._occludeePipelineState = this._makePipeline(this.configuration.transparencyPassType, !0), this._makePipeline(this.configuration.transparencyPassType, !1);
|
|
1007
|
-
}
|
|
1008
|
-
getPipeline(t) {
|
|
1009
|
-
return t ? this._occludeePipelineState : super.getPipeline();
|
|
1010
|
-
}
|
|
1011
|
-
};
|
|
1012
|
-
function Tr(e) {
|
|
1013
|
-
return e.cullFace !== J.None || !e.hasSlicePlane && !e.transparent && !e.doubleSidedMode;
|
|
1014
|
-
}
|
|
1015
|
-
lt.shader = new Ae(br, () => import("./DefaultMaterial.glsl-e7e23b90.js"));
|
|
1016
|
-
class u extends ao {
|
|
1017
|
-
constructor() {
|
|
1018
|
-
super(...arguments), this.output = x.Color, this.alphaDiscardMode = M.Opaque, this.doubleSidedMode = N.None, this.pbrMode = f.Disabled, this.cullFace = J.None, this.transparencyPassType = Q.NONE, this.normalType = R.Attribute, this.textureCoordinateType = k.None, this.customDepthTest = he.Less, this.spherical = !1, this.hasVertexColors = !1, this.hasSymbolColors = !1, this.hasVerticalOffset = !1, this.hasSlicePlane = !1, this.hasSliceHighlight = !0, this.hasColorTexture = !1, this.hasMetallicRoughnessTexture = !1, this.hasEmissionTexture = !1, this.hasOcclusionTexture = !1, this.hasNormalTexture = !1, this.hasScreenSizePerspective = !1, this.hasVertexTangents = !1, this.hasOccludees = !1, this.multipassEnabled = !1, this.hasModelTransformation = !1, this.offsetBackfaces = !1, this.vvSize = !1, this.vvColor = !1, this.receiveShadows = !1, this.receiveAmbientOcclusion = !1, this.textureAlphaPremultiplied = !1, this.instanced = !1, this.instancedColor = !1, this.objectAndLayerIdColorInstanced = !1, this.instancedDoublePrecision = !1, this.doublePrecisionRequiresObfuscation = !1, this.writeDepth = !0, this.transparent = !1, this.enableOffset = !0, this.cullAboveGround = !1, this.snowCover = !1, this.hasColorTextureTransform = !1, this.hasEmissionTextureTransform = !1, this.hasNormalTextureTransform = !1, this.hasOcclusionTextureTransform = !1, this.hasMetallicRoughnessTextureTransform = !1;
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
d([h({ count: x.COUNT })], u.prototype, "output", void 0), d([h({ count: M.COUNT })], u.prototype, "alphaDiscardMode", void 0), d([h({ count: N.COUNT })], u.prototype, "doubleSidedMode", void 0), d([h({ count: f.COUNT })], u.prototype, "pbrMode", void 0), d([h({ count: J.COUNT })], u.prototype, "cullFace", void 0), d([h({ count: Q.COUNT })], u.prototype, "transparencyPassType", void 0), d([h({ count: R.COUNT })], u.prototype, "normalType", void 0), d([h({ count: k.COUNT })], u.prototype, "textureCoordinateType", void 0), d([h({ count: he.COUNT })], u.prototype, "customDepthTest", void 0), d([h()], u.prototype, "spherical", void 0), d([h()], u.prototype, "hasVertexColors", void 0), d([h()], u.prototype, "hasSymbolColors", void 0), d([h()], u.prototype, "hasVerticalOffset", void 0), d([h()], u.prototype, "hasSlicePlane", void 0), d([h()], u.prototype, "hasSliceHighlight", void 0), d([h()], u.prototype, "hasColorTexture", void 0), d([h()], u.prototype, "hasMetallicRoughnessTexture", void 0), d([h()], u.prototype, "hasEmissionTexture", void 0), d([h()], u.prototype, "hasOcclusionTexture", void 0), d([h()], u.prototype, "hasNormalTexture", void 0), d([h()], u.prototype, "hasScreenSizePerspective", void 0), d([h()], u.prototype, "hasVertexTangents", void 0), d([h()], u.prototype, "hasOccludees", void 0), d([h()], u.prototype, "multipassEnabled", void 0), d([h()], u.prototype, "hasModelTransformation", void 0), d([h()], u.prototype, "offsetBackfaces", void 0), d([h()], u.prototype, "vvSize", void 0), d([h()], u.prototype, "vvColor", void 0), d([h()], u.prototype, "receiveShadows", void 0), d([h()], u.prototype, "receiveAmbientOcclusion", void 0), d([h()], u.prototype, "textureAlphaPremultiplied", void 0), d([h()], u.prototype, "instanced", void 0), d([h()], u.prototype, "instancedColor", void 0), d([h()], u.prototype, "objectAndLayerIdColorInstanced", void 0), d([h()], u.prototype, "instancedDoublePrecision", void 0), d([h()], u.prototype, "doublePrecisionRequiresObfuscation", void 0), d([h()], u.prototype, "writeDepth", void 0), d([h()], u.prototype, "transparent", void 0), d([h()], u.prototype, "enableOffset", void 0), d([h()], u.prototype, "cullAboveGround", void 0), d([h()], u.prototype, "snowCover", void 0), d([h()], u.prototype, "hasColorTextureTransform", void 0), d([h()], u.prototype, "hasEmissionTextureTransform", void 0), d([h()], u.prototype, "hasNormalTextureTransform", void 0), d([h()], u.prototype, "hasOcclusionTextureTransform", void 0), d([h()], u.prototype, "hasMetallicRoughnessTextureTransform", void 0), d([h({ constValue: !1 })], u.prototype, "occlusionPass", void 0), d([h({ constValue: !0 })], u.prototype, "hasVvInstancing", void 0), d([h({ constValue: !1 })], u.prototype, "useCustomDTRExponentForWater", void 0), d([h({ constValue: !1 })], u.prototype, "supportsTextureAtlas", void 0), d([h({ constValue: !0 })], u.prototype, "useFillLights", void 0);
|
|
1022
|
-
function wr(e) {
|
|
1023
|
-
const t = new _e(), { vertex: a, fragment: o, varyings: n } = t;
|
|
1024
|
-
return se(a, e), t.include(Ft), n.add("vpos", "vec3"), t.include(de, e), t.include(It, e), t.include(Dt, e), e.output !== x.Color && e.output !== x.Alpha || (Ce(t.vertex, e), t.include(Ze, e), t.include(le, e), e.offsetBackfaces && t.include(Kt), e.instancedColor && t.attributes.add(C.INSTANCECOLOR, "vec4"), n.add("vNormalWorld", "vec3"), n.add("localvpos", "vec3"), e.multipassEnabled && n.add("depth", "float"), t.include(ce, e), t.include(Vt, e), t.include(Qt, e), t.include(Ut, e), a.uniforms.add(new L("externalColor", (r) => r.externalColor)), n.add("vcolorExt", "vec4"), a.code.add(i`
|
|
1025
|
-
void main(void) {
|
|
1026
|
-
forwardNormalizedVertexColor();
|
|
1027
|
-
vcolorExt = externalColor;
|
|
1028
|
-
${e.instancedColor ? "vcolorExt *= instanceColor * 0.003921568627451;" : ""}
|
|
1029
|
-
vcolorExt *= vvColor();
|
|
1030
|
-
vcolorExt *= getSymbolColor();
|
|
1031
|
-
forwardColorMixMode();
|
|
1032
|
-
|
|
1033
|
-
if (vcolorExt.a < ${i.float(Je)}) {
|
|
1034
|
-
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
1035
|
-
} else {
|
|
1036
|
-
vpos = getVertexInLocalOriginSpace();
|
|
1037
|
-
localvpos = vpos - view[3].xyz;
|
|
1038
|
-
vpos = subtractOrigin(vpos);
|
|
1039
|
-
vNormalWorld = dpNormal(vvLocalNormal(normalModel()));
|
|
1040
|
-
vpos = addVerticalOffset(vpos, localOrigin);
|
|
1041
|
-
gl_Position = transformPosition(proj, view, vpos);
|
|
1042
|
-
${e.offsetBackfaces ? "gl_Position = offsetBackfacingClipPosition(gl_Position, vpos, vNormalWorld, cameraPosition);" : ""}
|
|
1043
|
-
}
|
|
1044
|
-
${e.multipassEnabled ? i`depth = (view * vec4(vpos, 1.0)).z;` : ""}
|
|
1045
|
-
forwardLinearDepth();
|
|
1046
|
-
forwardTextureCoordinates();
|
|
1047
|
-
}
|
|
1048
|
-
`)), e.output === x.Alpha && (t.include(Z, e), t.include(H, e), t.include(Se, e), o.uniforms.add(new $("opacity", (r) => r.opacity), new $("layerOpacity", (r) => r.layerOpacity)), e.hasColorTexture && o.uniforms.add(new z("tex", (r) => r.texture)), o.include($e), o.code.add(i`
|
|
1049
|
-
void main() {
|
|
1050
|
-
discardBySlice(vpos);
|
|
1051
|
-
${e.multipassEnabled ? i`terrainDepthTest(depth);` : ""}
|
|
1052
|
-
${e.hasColorTexture ? i`
|
|
1053
|
-
vec4 texColor = texture(tex, ${e.hasColorTextureTransform ? i`colorUV` : i`vuv0`});
|
|
1054
|
-
${e.textureAlphaPremultiplied ? "texColor.rgb /= texColor.a;" : ""}
|
|
1055
|
-
discardOrAdjustAlpha(texColor);` : i`vec4 texColor = vec4(1.0);`}
|
|
1056
|
-
${e.hasVertexColors ? i`float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));` : i`float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));`}
|
|
1057
|
-
|
|
1058
|
-
fragColor = vec4(opacity_);
|
|
1059
|
-
}
|
|
1060
|
-
`)), e.output === x.Color && (t.include(Z, e), t.include(oa, e), t.include(it, e), t.include(H, e), t.include(e.instancedDoublePrecision ? ra : ia, e), t.include(Se, e), Ce(t.fragment, e), at(o), nt(o), st(o), o.uniforms.add(a.uniforms.get("localOrigin"), a.uniforms.get("view"), new Y("ambient", (r) => r.ambient), new Y("diffuse", (r) => r.diffuse), new $("opacity", (r) => r.opacity), new $("layerOpacity", (r) => r.layerOpacity)), e.hasColorTexture && o.uniforms.add(new z("tex", (r) => r.texture)), t.include(Wt, e), t.include(ot, e), o.include($e), Ne(o), o.code.add(i`
|
|
1061
|
-
void main() {
|
|
1062
|
-
discardBySlice(vpos);
|
|
1063
|
-
${e.multipassEnabled ? i`terrainDepthTest(depth);` : ""}
|
|
1064
|
-
${e.hasColorTexture ? i`
|
|
1065
|
-
vec4 texColor = texture(tex, ${e.hasColorTextureTransform ? i`colorUV` : i`vuv0`});
|
|
1066
|
-
${e.textureAlphaPremultiplied ? "texColor.rgb /= texColor.a;" : ""}
|
|
1067
|
-
discardOrAdjustAlpha(texColor);` : i`vec4 texColor = vec4(1.0);`}
|
|
1068
|
-
vec3 viewDirection = normalize(vpos - cameraPosition);
|
|
1069
|
-
${e.pbrMode === f.Normal ? "applyPBRFactors();" : ""}
|
|
1070
|
-
float ssao = evaluateAmbientOcclusionInverse();
|
|
1071
|
-
ssao *= getBakedOcclusion();
|
|
1072
|
-
|
|
1073
|
-
float additionalAmbientScale = additionalDirectedAmbientLight(vpos + localOrigin);
|
|
1074
|
-
vec3 additionalLight = ssao * mainLightIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor;
|
|
1075
|
-
${e.receiveShadows ? "float shadow = readShadowMap(vpos, linearDepth);" : e.spherical ? "float shadow = lightingGlobalFactor * (1.0 - additionalAmbientScale);" : "float shadow = 0.0;"}
|
|
1076
|
-
vec3 matColor = max(ambient, diffuse);
|
|
1077
|
-
${e.hasVertexColors ? i`
|
|
1078
|
-
vec3 albedo = mixExternalColor(vColor.rgb * matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode));
|
|
1079
|
-
float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));` : i`
|
|
1080
|
-
vec3 albedo = mixExternalColor(matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode));
|
|
1081
|
-
float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));`}
|
|
1082
|
-
${e.snowCover ? i`albedo = mix(albedo, vec3(1), 0.9);` : i``}
|
|
1083
|
-
${i`
|
|
1084
|
-
vec3 shadingNormal = normalize(vNormalWorld);
|
|
1085
|
-
albedo *= 1.2;
|
|
1086
|
-
vec3 viewForward = vec3(view[0][2], view[1][2], view[2][2]);
|
|
1087
|
-
float alignmentLightView = clamp(dot(viewForward, -mainLightDirection), 0.0, 1.0);
|
|
1088
|
-
float transmittance = 1.0 - clamp(dot(viewForward, shadingNormal), 0.0, 1.0);
|
|
1089
|
-
float treeRadialFalloff = vColor.r;
|
|
1090
|
-
float backLightFactor = 0.5 * treeRadialFalloff * alignmentLightView * transmittance * (1.0 - shadow);
|
|
1091
|
-
additionalLight += backLightFactor * mainLightIntensity;`}
|
|
1092
|
-
${e.pbrMode === f.Normal || e.pbrMode === f.Schematic ? e.spherical ? i`vec3 normalGround = normalize(vpos + localOrigin);` : i`vec3 normalGround = vec3(0.0, 0.0, 1.0);` : i``}
|
|
1093
|
-
${e.pbrMode === f.Normal || e.pbrMode === f.Schematic ? i`
|
|
1094
|
-
float additionalAmbientIrradiance = additionalAmbientIrradianceFactor * mainLightIntensity[2];
|
|
1095
|
-
${e.snowCover ? i`
|
|
1096
|
-
mrr = vec3(0.0, 1.0, 0.04);
|
|
1097
|
-
emission = vec3(0.0);` : ""}
|
|
1098
|
-
|
|
1099
|
-
vec3 shadedColor = evaluateSceneLightingPBR(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight, viewDirection, normalGround, mrr, emission, additionalAmbientIrradiance);` : i`vec3 shadedColor = evaluateSceneLighting(shadingNormal, albedo, shadow, 1.0 - ssao, additionalLight);`}
|
|
1100
|
-
fragColor = highlightSlice(vec4(shadedColor, opacity_), vpos);
|
|
1101
|
-
${e.transparencyPassType === Q.Color ? i`fragColor = premultiplyAlpha(fragColor);` : i``}
|
|
1102
|
-
}
|
|
1103
|
-
`)), t.include(ea, e), t;
|
|
1104
|
-
}
|
|
1105
|
-
const Mr = Object.freeze(Object.defineProperty({ __proto__: null, build: wr }, Symbol.toStringTag, { value: "Module" }));
|
|
1106
|
-
class Pe extends lt {
|
|
1107
|
-
initializeConfiguration(t, a) {
|
|
1108
|
-
super.initializeConfiguration(t, a), a.hasMetallicRoughnessTexture = !1, a.hasEmissionTexture = !1, a.hasOcclusionTexture = !1, a.hasNormalTexture = !1, a.hasModelTransformation = !1, a.normalType = R.Attribute, a.doubleSidedMode = N.WindingOrder, a.hasVertexTangents = !1;
|
|
1109
|
-
}
|
|
1110
|
-
initializeProgram(t) {
|
|
1111
|
-
return this._initializeProgram(t, Pe.shader);
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
Pe.shader = new Ae(Mr, () => import("./RealisticTree.glsl-adab8e44.js"));
|
|
1115
|
-
let Ee = class extends oo {
|
|
1116
|
-
constructor(t) {
|
|
1117
|
-
super(t, Or), this.supportsEdges = !0, this.produces = /* @__PURE__ */ new Map([[ye.OPAQUE_MATERIAL, (a) => (Be(a) || Fe(a)) && !this.parameters.transparent], [ye.TRANSPARENT_MATERIAL, (a) => (Be(a) || Fe(a)) && this.parameters.transparent && this.parameters.writeDepth], [ye.TRANSPARENT_DEPTH_WRITE_DISABLED_MATERIAL, (a) => (Be(a) || Fe(a)) && this.parameters.transparent && !this.parameters.writeDepth]]), this._configuration = new u(), this._vertexBufferLayout = $r(this.parameters);
|
|
1118
|
-
}
|
|
1119
|
-
isVisibleForOutput(t) {
|
|
1120
|
-
return t !== x.Shadow && t !== x.ShadowExcludeHighlight && t !== x.ShadowHighlight || this.parameters.castShadows;
|
|
1121
|
-
}
|
|
1122
|
-
isVisible() {
|
|
1123
|
-
const t = this.parameters;
|
|
1124
|
-
if (!super.isVisible() || t.layerOpacity === 0)
|
|
1125
|
-
return !1;
|
|
1126
|
-
const { hasInstancedColor: a, hasVertexColors: o, hasSymbolColors: n, vvColor: r } = t, c = t.colorMixMode === "replace", l = t.opacity > 0, s = t.externalColor && t.externalColor[3] > 0, p = a || r || n;
|
|
1127
|
-
return o && p ? c || l : o ? c ? s : l : p ? c || l : c ? s : l;
|
|
1128
|
-
}
|
|
1129
|
-
getConfiguration(t, a) {
|
|
1130
|
-
return this._configuration.output = t, this._configuration.hasNormalTexture = !!this.parameters.normalTextureId, this._configuration.hasColorTexture = !!this.parameters.textureId, this._configuration.hasVertexTangents = this.parameters.hasVertexTangents, this._configuration.instanced = this.parameters.isInstanced, this._configuration.instancedDoublePrecision = this.parameters.instancedDoublePrecision, this._configuration.vvSize = !!this.parameters.vvSize, this._configuration.hasVerticalOffset = this.parameters.verticalOffset != null, this._configuration.hasScreenSizePerspective = this.parameters.screenSizePerspective != null, this._configuration.hasSlicePlane = this.parameters.hasSlicePlane, this._configuration.hasSliceHighlight = this.parameters.hasSliceHighlight, this._configuration.alphaDiscardMode = this.parameters.textureAlphaMode, this._configuration.normalType = this.parameters.normalType, this._configuration.transparent = this.parameters.transparent, this._configuration.writeDepth = this.parameters.writeDepth, this.parameters.customDepthTest != null && (this._configuration.customDepthTest = this.parameters.customDepthTest), this._configuration.hasOccludees = this.parameters.hasOccludees, this._configuration.cullFace = this.parameters.hasSlicePlane ? J.None : this.parameters.cullFace, this._configuration.multipassEnabled = a.multipassEnabled, this._configuration.cullAboveGround = a.multipassTerrain.cullAboveGround, this._configuration.hasModelTransformation = this.parameters.modelTransformation != null, t !== x.Color && t !== x.Alpha || (this._configuration.hasVertexColors = this.parameters.hasVertexColors, this._configuration.hasSymbolColors = this.parameters.hasSymbolColors, this.parameters.treeRendering ? this._configuration.doubleSidedMode = N.WindingOrder : this._configuration.doubleSidedMode = this.parameters.doubleSided && this.parameters.doubleSidedType === "normal" ? N.View : this.parameters.doubleSided && this.parameters.doubleSidedType === "winding-order" ? N.WindingOrder : N.None, this._configuration.instancedColor = this.parameters.hasInstancedColor, this._configuration.receiveShadows = this.parameters.receiveShadows && this.parameters.shadowMappingEnabled, this._configuration.receiveAmbientOcclusion = this.parameters.receiveAmbientOcclusion && a.ssao != null, this._configuration.vvColor = !!this.parameters.vvColor, this._configuration.textureAlphaPremultiplied = !!this.parameters.textureAlphaPremultiplied, this._configuration.pbrMode = this.parameters.usePBR ? this.parameters.isSchematic ? f.Schematic : f.Normal : f.Disabled, this._configuration.hasMetallicRoughnessTexture = !!this.parameters.metallicRoughnessTextureId, this._configuration.hasEmissionTexture = !!this.parameters.emissiveTextureId, this._configuration.hasOcclusionTexture = !!this.parameters.occlusionTextureId, this._configuration.offsetBackfaces = !(!this.parameters.transparent || !this.parameters.offsetTransparentBackfaces), this._configuration.transparencyPassType = a.transparencyPassType, this._configuration.enableOffset = a.camera.relativeElevation < zo, this._configuration.snowCover = this.hasSnowCover(a), this._configuration.hasColorTextureTransform = !!this.parameters.colorTextureTransformMatrix, this._configuration.hasNormalTextureTransform = !!this.parameters.normalTextureTransformMatrix, this._configuration.hasEmissionTextureTransform = !!this.parameters.emissiveTextureTransformMatrix, this._configuration.hasOcclusionTextureTransform = !!this.parameters.occlusionTextureTransformMatrix, this._configuration.hasMetallicRoughnessTextureTransform = !!this.parameters.metallicRoughnessTextureTransformMatrix), this._configuration;
|
|
1131
|
-
}
|
|
1132
|
-
hasSnowCover(t) {
|
|
1133
|
-
return t.weather != null && t.weatherVisible && t.weather.type === "snowy" && t.weather.snowCover === "enabled";
|
|
1134
|
-
}
|
|
1135
|
-
intersect(t, a, o, n, r, c) {
|
|
1136
|
-
if (this.parameters.verticalOffset != null) {
|
|
1137
|
-
const l = o.camera;
|
|
1138
|
-
we(We, a[12], a[13], a[14]);
|
|
1139
|
-
let s = null;
|
|
1140
|
-
switch (o.viewingMode) {
|
|
1141
|
-
case qe.Global:
|
|
1142
|
-
s = $t(Mt, We);
|
|
1143
|
-
break;
|
|
1144
|
-
case qe.Local:
|
|
1145
|
-
s = Sa(Mt, Ar);
|
|
1146
|
-
}
|
|
1147
|
-
let p = 0;
|
|
1148
|
-
const m = be(Rr, We, l.eye), v = Et(m), b = ht(m, m, 1 / v);
|
|
1149
|
-
let y = null;
|
|
1150
|
-
this.parameters.screenSizePerspective && (y = Oa(s, b)), p += ro(l, v, this.parameters.verticalOffset, y ?? 0, this.parameters.screenSizePerspective), ht(s, s, p), $a(Ue, s, o.transform.inverseRotation), n = be(Er, n, Ue), r = be(_r, r, Ue);
|
|
1151
|
-
}
|
|
1152
|
-
io(t, o, n, r, no(o.verticalOffset), c);
|
|
1153
|
-
}
|
|
1154
|
-
createGLMaterial(t) {
|
|
1155
|
-
return new Cr(t);
|
|
1156
|
-
}
|
|
1157
|
-
createBufferWriter() {
|
|
1158
|
-
return new so(this._vertexBufferLayout);
|
|
1159
|
-
}
|
|
1160
|
-
}, Cr = class extends lo {
|
|
1161
|
-
constructor(t) {
|
|
1162
|
-
super({ ...t, ...t.material.parameters });
|
|
1163
|
-
}
|
|
1164
|
-
_updateShadowState(t) {
|
|
1165
|
-
t.shadowMap.enabled !== this._material.parameters.shadowMappingEnabled && this._material.setParameters({ shadowMappingEnabled: t.shadowMap.enabled });
|
|
1166
|
-
}
|
|
1167
|
-
_updateOccludeeState(t) {
|
|
1168
|
-
t.hasOccludees !== this._material.parameters.hasOccludees && this._material.setParameters({ hasOccludees: t.hasOccludees });
|
|
1169
|
-
}
|
|
1170
|
-
beginSlot(t) {
|
|
1171
|
-
this._output !== x.Color && this._output !== x.Alpha || (this._updateShadowState(t), this._updateOccludeeState(t));
|
|
1172
|
-
const a = this._material.parameters;
|
|
1173
|
-
this.updateTexture(a.textureId);
|
|
1174
|
-
const o = t.camera.viewInverseTransposeMatrix;
|
|
1175
|
-
return we(a.origin, o[3], o[7], o[11]), this._material.setParameters(this.textureBindParameters), this.ensureTechnique(a.treeRendering ? Pe : lt, t);
|
|
1176
|
-
}
|
|
1177
|
-
};
|
|
1178
|
-
class Sr extends yr {
|
|
1179
|
-
constructor() {
|
|
1180
|
-
super(...arguments), this.initTextureTransparent = !1, this.treeRendering = !1, this.hasVertexTangents = !1;
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
const Or = new Sr();
|
|
1184
|
-
function $r(e) {
|
|
1185
|
-
const t = Oo().vec3f(C.POSITION);
|
|
1186
|
-
return e.normalType === R.Compressed ? t.vec2i16(C.NORMALCOMPRESSED, { glNormalized: !0 }) : t.vec3f(C.NORMAL), e.hasVertexTangents && t.vec4f(C.TANGENT), (e.textureId || e.normalTextureId || e.metallicRoughnessTextureId || e.emissiveTextureId || e.occlusionTextureId) && t.vec2f(C.UV0), e.hasVertexColors && t.vec4u8(C.COLOR), e.hasSymbolColors && t.vec4u8(C.SYMBOLCOLOR), Ea("enable-feature:objectAndLayerId-rendering") && t.vec4u8(C.OBJECTANDLAYERIDCOLOR), t;
|
|
1187
|
-
}
|
|
1188
|
-
const Er = j(), _r = j(), Ar = xe(0, 0, 1), Mt = j(), Ue = j(), We = j(), Rr = j(), W = () => Na.getLogger("esri.views.3d.layers.graphics.objectResourceUtils");
|
|
1189
|
-
async function Nr(e, t) {
|
|
1190
|
-
const a = await zr(e, t), o = await Br(a.textureDefinitions ?? {}, t);
|
|
1191
|
-
let n = 0;
|
|
1192
|
-
for (const r in o)
|
|
1193
|
-
if (o.hasOwnProperty(r)) {
|
|
1194
|
-
const c = o[r];
|
|
1195
|
-
n += c != null && c.image ? c.image.width * c.image.height * 4 : 0;
|
|
1196
|
-
}
|
|
1197
|
-
return { resource: a, textures: o, size: n + _a(a) };
|
|
1198
|
-
}
|
|
1199
|
-
async function zr(e, t) {
|
|
1200
|
-
const a = t == null ? void 0 : t.streamDataRequester;
|
|
1201
|
-
if (a)
|
|
1202
|
-
return Pr(e, a, t);
|
|
1203
|
-
const o = await _t(Aa(e, t));
|
|
1204
|
-
if (o.ok === !0)
|
|
1205
|
-
return o.value.data;
|
|
1206
|
-
At(o.error), la(o.error);
|
|
1207
|
-
}
|
|
1208
|
-
async function Pr(e, t, a) {
|
|
1209
|
-
const o = await _t(t.request(e, "json", a));
|
|
1210
|
-
if (o.ok === !0)
|
|
1211
|
-
return o.value;
|
|
1212
|
-
At(o.error), la(o.error.details.url);
|
|
1213
|
-
}
|
|
1214
|
-
function la(e) {
|
|
1215
|
-
throw new Ra("", `Request for object resource failed: ${e}`);
|
|
1216
|
-
}
|
|
1217
|
-
function Gr(e) {
|
|
1218
|
-
const t = e.params, a = t.topology;
|
|
1219
|
-
let o = !0;
|
|
1220
|
-
switch (t.vertexAttributes || (W().warn("Geometry must specify vertex attributes"), o = !1), t.topology) {
|
|
1221
|
-
case "PerAttributeArray":
|
|
1222
|
-
break;
|
|
1223
|
-
case "Indexed":
|
|
1224
|
-
case null:
|
|
1225
|
-
case void 0: {
|
|
1226
|
-
const r = t.faces;
|
|
1227
|
-
if (r) {
|
|
1228
|
-
if (t.vertexAttributes)
|
|
1229
|
-
for (const c in t.vertexAttributes) {
|
|
1230
|
-
const l = r[c];
|
|
1231
|
-
l != null && l.values ? (l.valueType != null && l.valueType !== "UInt32" && (W().warn(`Unsupported indexed geometry indices type '${l.valueType}', only UInt32 is currently supported`), o = !1), l.valuesPerElement != null && l.valuesPerElement !== 1 && (W().warn(`Unsupported indexed geometry values per element '${l.valuesPerElement}', only 1 is currently supported`), o = !1)) : (W().warn(`Indexed geometry does not specify face indices for '${c}' attribute`), o = !1);
|
|
1232
|
-
}
|
|
1233
|
-
} else
|
|
1234
|
-
W().warn("Indexed geometries must specify faces"), o = !1;
|
|
1235
|
-
break;
|
|
1236
|
-
}
|
|
1237
|
-
default:
|
|
1238
|
-
W().warn(`Unsupported topology '${a}'`), o = !1;
|
|
1239
|
-
}
|
|
1240
|
-
e.params.material || (W().warn("Geometry requires material"), o = !1);
|
|
1241
|
-
const n = e.params.vertexAttributes;
|
|
1242
|
-
for (const r in n)
|
|
1243
|
-
n[r].values || (W().warn("Geometries with externally defined attributes are not yet supported"), o = !1);
|
|
1244
|
-
return o;
|
|
1245
|
-
}
|
|
1246
|
-
function Lr(e, t) {
|
|
1247
|
-
var w, g;
|
|
1248
|
-
const a = new Array(), o = new Array(), n = new Array(), r = new Mo(), c = e.resource, l = Zt.parse(c.version || "1.0", "wosr");
|
|
1249
|
-
Ir.validate(l);
|
|
1250
|
-
const s = c.model.name, p = c.model.geometries, m = c.materialDefinitions ?? {}, v = e.textures;
|
|
1251
|
-
let b = 0;
|
|
1252
|
-
const y = /* @__PURE__ */ new Map();
|
|
1253
|
-
for (let T = 0; T < p.length; T++) {
|
|
1254
|
-
const S = p[T];
|
|
1255
|
-
if (!Gr(S))
|
|
1256
|
-
continue;
|
|
1257
|
-
const E = Fr(S), _ = S.params.vertexAttributes, B = [], F = (O) => {
|
|
1258
|
-
if (S.params.topology === "PerAttributeArray")
|
|
1259
|
-
return null;
|
|
1260
|
-
const I = S.params.faces;
|
|
1261
|
-
for (const D in I)
|
|
1262
|
-
if (D === O)
|
|
1263
|
-
return I[D].values;
|
|
1264
|
-
return null;
|
|
1265
|
-
}, ae = _[C.POSITION], me = ae.values.length / ae.valuesPerElement;
|
|
1266
|
-
for (const O in _) {
|
|
1267
|
-
const I = _[O], D = I.values, Ge = F(O) ?? Co(me);
|
|
1268
|
-
B.push([O, new K(D, Ge, I.valuesPerElement, !0)]);
|
|
1269
|
-
}
|
|
1270
|
-
const P = E.texture, A = v && v[P];
|
|
1271
|
-
if (A && !y.has(P)) {
|
|
1272
|
-
const { image: O, parameters: I } = A, D = new qt(O, I);
|
|
1273
|
-
o.push(D), y.set(P, D);
|
|
1274
|
-
}
|
|
1275
|
-
const pe = y.get(P), oe = pe ? pe.id : void 0, G = E.material;
|
|
1276
|
-
let re = r.get(G, P);
|
|
1277
|
-
if (re == null) {
|
|
1278
|
-
const O = m[G.substring(G.lastIndexOf("/") + 1)].params;
|
|
1279
|
-
O.transparency === 1 && (O.transparency = 0);
|
|
1280
|
-
const I = A && A.alphaChannelUsage, D = O.transparency > 0 || I === "transparency" || I === "maskAndTransparency", Ge = A ? ca(A.alphaChannelUsage) : void 0, ct = { ambient: ke(O.diffuse), diffuse: ke(O.diffuse), opacity: 1 - (O.transparency || 0), transparent: D, textureAlphaMode: Ge, textureAlphaCutoff: 0.33, textureId: oe, initTextureTransparent: !0, doubleSided: !0, cullFace: J.None, colorMixMode: O.externalColorMixMode || "tint", textureAlphaPremultiplied: (A == null ? void 0 : A.parameters.preMultiplyAlpha) ?? !1 };
|
|
1281
|
-
t != null && t.materialParameters && Object.assign(ct, t.materialParameters), re = new Ee(ct), r.set(G, P, re);
|
|
1282
|
-
}
|
|
1283
|
-
n.push(re);
|
|
1284
|
-
const ha = new kt(re, B);
|
|
1285
|
-
b += ((g = (w = B.find((O) => O[0] === C.POSITION)) == null ? void 0 : w[1]) == null ? void 0 : g.indices.length) ?? 0, a.push(ha);
|
|
1286
|
-
}
|
|
1287
|
-
return { engineResources: [{ name: s, stageResources: { textures: o, materials: n, geometries: a }, pivotOffset: c.model.pivotOffset, numberOfVertices: b, lodThreshold: null }], referenceBoundingBox: jr(a) };
|
|
1288
|
-
}
|
|
1289
|
-
function jr(e) {
|
|
1290
|
-
const t = Rt();
|
|
1291
|
-
return e.forEach((a) => {
|
|
1292
|
-
const o = a.boundingInfo;
|
|
1293
|
-
o != null && (Me(t, o.bbMin), Me(t, o.bbMax));
|
|
1294
|
-
}), t;
|
|
1295
|
-
}
|
|
1296
|
-
async function Br(e, t) {
|
|
1297
|
-
const a = new Array();
|
|
1298
|
-
for (const r in e) {
|
|
1299
|
-
const c = e[r], l = c.images[0].data;
|
|
1300
|
-
if (!l) {
|
|
1301
|
-
W().warn("Externally referenced texture data is not yet supported");
|
|
1302
|
-
continue;
|
|
1303
|
-
}
|
|
1304
|
-
const s = c.encoding + ";base64," + l, p = "/textureDefinitions/" + r, m = c.channels === "rgba" ? c.alphaChannelUsage || "transparency" : "none", v = { noUnpackFlip: !0, wrap: { s: Oe.REPEAT, t: Oe.REPEAT }, preMultiplyAlpha: ca(m) !== M.Opaque }, b = t != null && t.disableTextures ? Promise.resolve(null) : So(s, t);
|
|
1305
|
-
a.push(b.then((y) => ({ refId: p, image: y, parameters: v, alphaChannelUsage: m })));
|
|
1306
|
-
}
|
|
1307
|
-
const o = await Promise.all(a), n = {};
|
|
1308
|
-
for (const r of o)
|
|
1309
|
-
n[r.refId] = r;
|
|
1310
|
-
return n;
|
|
1311
|
-
}
|
|
1312
|
-
function ca(e) {
|
|
1313
|
-
switch (e) {
|
|
1314
|
-
case "mask":
|
|
1315
|
-
return M.Mask;
|
|
1316
|
-
case "maskAndTransparency":
|
|
1317
|
-
return M.MaskBlend;
|
|
1318
|
-
case "none":
|
|
1319
|
-
return M.Opaque;
|
|
1320
|
-
default:
|
|
1321
|
-
return M.Blend;
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
function Fr(e) {
|
|
1325
|
-
const t = e.params;
|
|
1326
|
-
return { id: 1, material: t.material, texture: t.texture, region: t.texture };
|
|
1327
|
-
}
|
|
1328
|
-
const Ir = new Zt(1, 2, "wosr");
|
|
1329
|
-
async function Dr(e, t) {
|
|
1330
|
-
var v;
|
|
1331
|
-
const a = da(ma(e));
|
|
1332
|
-
if (a.fileType === "wosr") {
|
|
1333
|
-
const b = await (t.cache ? t.cache.loadWOSR(a.url, t) : Nr(a.url, t)), { engineResources: y, referenceBoundingBox: w } = Lr(b, t);
|
|
1334
|
-
return { lods: y, referenceBoundingBox: w, isEsriSymbolResource: !1, isWosr: !0 };
|
|
1335
|
-
}
|
|
1336
|
-
const o = await (t.cache ? t.cache.loadGLTF(a.url, t, !!t.usePBR) : vo(new go(t.streamDataRequester), a.url, t, t.usePBR)), n = (v = o.model.meta) == null ? void 0 : v.ESRI_proxyEllipsoid, r = o.meta.isEsriSymbolResource && n != null && o.meta.ESRI_webstyle === "EsriRealisticTreesStyle";
|
|
1337
|
-
r && !o.customMeta.esriTreeRendering && (o.customMeta.esriTreeRendering = !0, qr(o, n));
|
|
1338
|
-
const c = !!t.usePBR, l = o.meta.isEsriSymbolResource ? { usePBR: c, isSchematic: !1, treeRendering: r, mrrFactors: [...Jo] } : { usePBR: c, isSchematic: !1, treeRendering: !1, mrrFactors: [...Xt] }, s = { ...t.materialParameters, treeRendering: r }, { engineResources: p, referenceBoundingBox: m } = ua(o, l, s, t.skipHighLods && a.specifiedLodIndex == null ? { skipHighLods: !0 } : { skipHighLods: !1, singleLodIndex: a.specifiedLodIndex });
|
|
1339
|
-
return { lods: p, referenceBoundingBox: m, isEsriSymbolResource: o.meta.isEsriSymbolResource, isWosr: !1 };
|
|
1340
|
-
}
|
|
1341
|
-
function da(e) {
|
|
1342
|
-
const t = e.match(/(.*\.(gltf|glb))(\?lod=([0-9]+))?$/);
|
|
1343
|
-
return t ? { fileType: "gltf", url: t[1], specifiedLodIndex: t[4] != null ? Number(t[4]) : null } : e.match(/(.*\.(json|json\.gz))$/) ? { fileType: "wosr", url: e, specifiedLodIndex: null } : { fileType: "unknown", url: e, specifiedLodIndex: null };
|
|
1344
|
-
}
|
|
1345
|
-
function ua(e, t, a, o) {
|
|
1346
|
-
const n = e.model, r = new Array(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), s = n.lods.length, p = Rt();
|
|
1347
|
-
return n.lods.forEach((m, v) => {
|
|
1348
|
-
const b = o.skipHighLods === !0 && (s > 1 && v === 0 || s > 3 && v === 1) || o.skipHighLods === !1 && o.singleLodIndex != null && v !== o.singleLodIndex;
|
|
1349
|
-
if (b && v !== 0)
|
|
1350
|
-
return;
|
|
1351
|
-
const y = new Wo(m.name, m.lodThreshold, [0, 0, 0]);
|
|
1352
|
-
m.parts.forEach((w) => {
|
|
1353
|
-
const g = b ? new Ee({}) : Vr(n, w, y, t, a, c, l), { geometry: T, vertexCount: S } = Ur(w, g ?? new Ee({})), E = T.boundingInfo;
|
|
1354
|
-
E != null && v === 0 && (Me(p, E.bbMin), Me(p, E.bbMax)), g != null && (y.stageResources.geometries.push(T), y.numberOfVertices += S);
|
|
1355
|
-
}), b || r.push(y);
|
|
1356
|
-
}), { engineResources: r, referenceBoundingBox: p };
|
|
1357
|
-
}
|
|
1358
|
-
function Vr(e, t, a, o, n, r, c) {
|
|
1359
|
-
var y, w;
|
|
1360
|
-
const l = t.material + (t.attributes.normal ? "_normal" : "") + (t.attributes.color ? "_color" : "") + (t.attributes.texCoord0 ? "_texCoord0" : "") + (t.attributes.tangent ? "_tangent" : ""), s = e.materials.get(t.material), p = t.attributes.texCoord0 != null, m = t.attributes.normal != null;
|
|
1361
|
-
if (s == null)
|
|
1362
|
-
return null;
|
|
1363
|
-
const v = Wr(s.alphaMode);
|
|
1364
|
-
if (!r.has(l)) {
|
|
1365
|
-
if (p) {
|
|
1366
|
-
const P = (A, pe = !1) => {
|
|
1367
|
-
if (A != null && !c.has(A)) {
|
|
1368
|
-
const oe = e.textures.get(A);
|
|
1369
|
-
if (oe != null) {
|
|
1370
|
-
const G = oe.data;
|
|
1371
|
-
c.set(A, new qt(Ie(G) ? G.data : G, { ...oe.parameters, preMultiplyAlpha: !Ie(G) && pe, encoding: Ie(G) && G.encoding != null ? G.encoding : void 0 }));
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
};
|
|
1375
|
-
P(s.textureColor, v !== M.Opaque), P(s.textureNormal), P(s.textureOcclusion), P(s.textureEmissive), P(s.textureMetallicRoughness);
|
|
1376
|
-
}
|
|
1377
|
-
const g = s.color[0] ** (1 / X), T = s.color[1] ** (1 / X), S = s.color[2] ** (1 / X), E = s.emissiveFactor[0] ** (1 / X), _ = s.emissiveFactor[1] ** (1 / X), B = s.emissiveFactor[2] ** (1 / X), F = s.textureColor != null && p ? c.get(s.textureColor) : null, ae = ko({ normalTexture: s.textureNormal, metallicRoughnessTexture: s.textureMetallicRoughness, metallicFactor: s.metallicFactor, roughnessFactor: s.roughnessFactor, emissiveTexture: s.textureEmissive, emissiveFactor: s.emissiveFactor, occlusionTexture: s.textureOcclusion }), me = ((y = s.normalTextureTransform) == null ? void 0 : y.scale) != null ? (w = s.normalTextureTransform) == null ? void 0 : w.scale : St;
|
|
1378
|
-
r.set(l, new Ee({ ...o, transparent: v === M.Blend, customDepthTest: he.Lequal, textureAlphaMode: v, textureAlphaCutoff: s.alphaCutoff, diffuse: [g, T, S], ambient: [g, T, S], opacity: s.opacity, doubleSided: s.doubleSided, doubleSidedType: "winding-order", cullFace: s.doubleSided ? J.None : J.Back, hasVertexColors: !!t.attributes.color, hasVertexTangents: !!t.attributes.tangent, normalType: m ? R.Attribute : R.ScreenDerivative, castShadows: !0, receiveShadows: s.receiveShadows, receiveAmbientOcclusion: s.receiveAmbientOcclustion, textureId: F != null ? F.id : void 0, colorMixMode: s.colorMixMode, normalTextureId: s.textureNormal != null && p ? c.get(s.textureNormal).id : void 0, textureAlphaPremultiplied: F != null && !!F.parameters.preMultiplyAlpha, occlusionTextureId: s.textureOcclusion != null && p ? c.get(s.textureOcclusion).id : void 0, emissiveTextureId: s.textureEmissive != null && p ? c.get(s.textureEmissive).id : void 0, metallicRoughnessTextureId: s.textureMetallicRoughness != null && p ? c.get(s.textureMetallicRoughness).id : void 0, emissiveFactor: [E, _, B], mrrFactors: ae ? [...Yo] : [s.metallicFactor, s.roughnessFactor, o.mrrFactors[2]], isSchematic: ae, colorTextureTransformMatrix: ie(s.colorTextureTransform), normalTextureTransformMatrix: ie(s.normalTextureTransform), scale: [me[0], me[1]], occlusionTextureTransformMatrix: ie(s.occlusionTextureTransform), emissiveTextureTransformMatrix: ie(s.emissiveTextureTransform), metallicRoughnessTextureTransformMatrix: ie(s.metallicRoughnessTextureTransform), ...n }));
|
|
1379
|
-
}
|
|
1380
|
-
const b = r.get(l);
|
|
1381
|
-
if (a.stageResources.materials.push(b), p) {
|
|
1382
|
-
const g = (T) => {
|
|
1383
|
-
T != null && a.stageResources.textures.push(c.get(T));
|
|
1384
|
-
};
|
|
1385
|
-
g(s.textureColor), g(s.textureNormal), g(s.textureOcclusion), g(s.textureEmissive), g(s.textureMetallicRoughness);
|
|
1386
|
-
}
|
|
1387
|
-
return b;
|
|
1388
|
-
}
|
|
1389
|
-
function Ur(e, t) {
|
|
1390
|
-
const a = e.attributes.position.count, o = xo(e.indices || a, e.primitiveType), n = fe(3 * a), { typedBuffer: r, typedBufferStride: c } = e.attributes.position;
|
|
1391
|
-
po(n, r, e.transform, 3, c);
|
|
1392
|
-
const l = [[C.POSITION, new K(n, o, 3, !0)]];
|
|
1393
|
-
if (e.attributes.normal != null) {
|
|
1394
|
-
const s = fe(3 * a), { typedBuffer: p, typedBufferStride: m } = e.attributes.normal;
|
|
1395
|
-
mt(ge, e.transform), fo(s, p, ge, 3, m), l.push([C.NORMAL, new K(s, o, 3, !0)]);
|
|
1396
|
-
}
|
|
1397
|
-
if (e.attributes.tangent != null) {
|
|
1398
|
-
const s = fe(4 * a), { typedBuffer: p, typedBufferStride: m } = e.attributes.tangent;
|
|
1399
|
-
mt(ge, e.transform), bo(s, p, ge, 4, m), l.push([C.TANGENT, new K(s, o, 4, !0)]);
|
|
1400
|
-
}
|
|
1401
|
-
if (e.attributes.texCoord0 != null) {
|
|
1402
|
-
const s = fe(2 * a), { typedBuffer: p, typedBufferStride: m } = e.attributes.texCoord0;
|
|
1403
|
-
yo(s, p, 2, m), l.push([C.UV0, new K(s, o, 2, !0)]);
|
|
1404
|
-
}
|
|
1405
|
-
if (e.attributes.color != null) {
|
|
1406
|
-
const s = new Uint8Array(4 * a);
|
|
1407
|
-
e.attributes.color.elementCount === 4 ? e.attributes.color instanceof co ? gt(s, e.attributes.color, 255) : e.attributes.color instanceof Yt ? To(s, e.attributes.color) : e.attributes.color instanceof uo && gt(s, e.attributes.color, 1 / 256) : (s.fill(255), e.attributes.color instanceof Jt ? vt(s, e.attributes.color, 255, 4) : e.attributes.color instanceof ho ? wo(s, e.attributes.color.typedBuffer, 4, e.attributes.color.typedBufferStride) : e.attributes.color instanceof mo && vt(s, e.attributes.color, 1 / 256, 4)), l.push([C.COLOR, new K(s, o, 4, !0)]);
|
|
1408
|
-
}
|
|
1409
|
-
return { geometry: new kt(t, l), vertexCount: a };
|
|
1410
|
-
}
|
|
1411
|
-
const ge = Nt();
|
|
1412
|
-
function Wr(e) {
|
|
1413
|
-
switch (e) {
|
|
1414
|
-
case "BLEND":
|
|
1415
|
-
return M.Blend;
|
|
1416
|
-
case "MASK":
|
|
1417
|
-
return M.Mask;
|
|
1418
|
-
case "OPAQUE":
|
|
1419
|
-
case null:
|
|
1420
|
-
case void 0:
|
|
1421
|
-
return M.Opaque;
|
|
1422
|
-
}
|
|
1423
|
-
}
|
|
1424
|
-
function qr(e, t) {
|
|
1425
|
-
for (let a = 0; a < e.model.lods.length; ++a) {
|
|
1426
|
-
const o = e.model.lods[a];
|
|
1427
|
-
for (const n of o.parts) {
|
|
1428
|
-
const r = n.attributes.normal;
|
|
1429
|
-
if (r == null)
|
|
1430
|
-
return;
|
|
1431
|
-
const c = n.attributes.position, l = c.count, s = j(), p = j(), m = j(), v = new Uint8Array(4 * l), b = new Float64Array(3 * l), y = za(Ga(), n.transform);
|
|
1432
|
-
let w = 0, g = 0;
|
|
1433
|
-
for (let T = 0; T < l; T++) {
|
|
1434
|
-
c.getVec(T, p), r.getVec(T, s), pt(p, p, n.transform), be(m, p, t.center), ft(m, m, t.radius);
|
|
1435
|
-
const S = m[2], E = Et(m), _ = Math.min(0.45 + 0.55 * E * E, 1);
|
|
1436
|
-
ft(m, m, t.radius), y !== null && pt(m, m, y), $t(m, m), a + 1 !== e.model.lods.length && e.model.lods.length > 1 && Pa(m, m, s, S > -1 ? 0.2 : Math.min(-4 * S - 3.8, 1)), b[w] = m[0], b[w + 1] = m[1], b[w + 2] = m[2], w += 3, v[g] = 255 * _, v[g + 1] = 255 * _, v[g + 2] = 255 * _, v[g + 3] = 255, g += 4;
|
|
1437
|
-
}
|
|
1438
|
-
n.attributes.normal = new Jt(b), n.attributes.color = new Yt(v);
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
const $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1443
|
-
__proto__: null,
|
|
1444
|
-
fetch: Dr,
|
|
1445
|
-
gltfToEngineResources: ua,
|
|
1446
|
-
parseUrl: da
|
|
1447
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1448
|
-
export {
|
|
1449
|
-
xr as H,
|
|
1450
|
-
wr as I,
|
|
1451
|
-
rt as d,
|
|
1452
|
-
sr as f,
|
|
1453
|
-
$i as o,
|
|
1454
|
-
er as u
|
|
1455
|
-
};
|