@realsee/five-webgpu 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS_READ_ME.md +9 -0
- package/AI_CONTEXT.md +9 -0
- package/README.md +80 -0
- package/TERMS.txt +54 -0
- package/ai_guides/README.md +118 -0
- package/ai_guides/ai-doc-guidelines.md +102 -0
- package/ai_guides/api.md +274 -0
- package/ai_guides/features/3dtile.md +172 -0
- package/ai_guides/features/camera-animation.md +205 -0
- package/ai_guides/features/clipper.md +135 -0
- package/ai_guides/features/coordinate-system.md +128 -0
- package/ai_guides/features/event.md +154 -0
- package/ai_guides/features/five.md +184 -0
- package/ai_guides/features/gesture.md +181 -0
- package/ai_guides/features/get-screen-pixels.md +182 -0
- package/ai_guides/features/image-options.md +164 -0
- package/ai_guides/features/load-external-model.md +350 -0
- package/ai_guides/features/load-progress.md +140 -0
- package/ai_guides/features/material.md +153 -0
- package/ai_guides/features/mode.md +269 -0
- package/ai_guides/features/model.md +186 -0
- package/ai_guides/features/move-pano-effect.md +145 -0
- package/ai_guides/features/multi-work.md +146 -0
- package/ai_guides/features/pano-filter.md +144 -0
- package/ai_guides/features/pano-tile.md +132 -0
- package/ai_guides/features/pano-uv.md +131 -0
- package/ai_guides/features/parameter.md +153 -0
- package/ai_guides/features/raycast.md +175 -0
- package/ai_guides/features/request-proxy.md +112 -0
- package/ai_guides/features/screen-project.md +165 -0
- package/ai_guides/features/state.md +101 -0
- package/ai_guides/features/ultra-hdr.md +204 -0
- package/ai_guides/features/view-layer.md +187 -0
- package/ai_guides/features/work.md +303 -0
- package/ai_guides/glossary.md +93 -0
- package/ai_guides/intro.md +23 -0
- package/ai_guides/quick-start.md +69 -0
- package/ai_guides/release_notes/6.6.md +86 -0
- package/ai_guides/release_notes/6.7.md +401 -0
- package/ai_guides/release_notes/6.8.md +208 -0
- package/ai_guides/support.md +23 -0
- package/ai_guides/template.md +70 -0
- package/docs/.nojekyll +1 -0
- package/docs/00_FOR_AI_AGENTS.md +12 -0
- package/docs/README.md +12 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1633 -0
- package/docs/classes/index.AdaptiveLuminancePass.html +23 -0
- package/docs/classes/index.AnimationFrameLoop.html +18 -0
- package/docs/classes/index.BoundingMesh.html +4 -0
- package/docs/classes/index.Camera.html +42 -0
- package/docs/classes/index.EffectComposer.html +25 -0
- package/docs/classes/index.EyeDomeLightingPass.html +20 -0
- package/docs/classes/index.Fetcher.html +5 -0
- package/docs/classes/index.Five.html +311 -0
- package/docs/classes/index.FivePass.html +17 -0
- package/docs/classes/index.FiveRenderer.html +8 -0
- package/docs/classes/index.FlowingFireworks3DPass.html +22 -0
- package/docs/classes/index.FlowingLight2DPass.html +21 -0
- package/docs/classes/index.FlowingLight3DPass.html +23 -0
- package/docs/classes/index.FullScreenQuad.html +7 -0
- package/docs/classes/index.GaussianBlurPass.html +19 -0
- package/docs/classes/index.Histogram.html +19 -0
- package/docs/classes/index.InternalWebGPURenderer.html +4 -0
- package/docs/classes/index.Model.html +93 -0
- package/docs/classes/index.ModelScene.html +40 -0
- package/docs/classes/index.Motion.html +17 -0
- package/docs/classes/index.NetworkSubscribe.html +41 -0
- package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +37 -0
- package/docs/classes/index.PBMGaussianSplattingObject.html +32 -0
- package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +19 -0
- package/docs/classes/index.PBMGroup.html +5 -0
- package/docs/classes/index.PBMMesh.html +2 -0
- package/docs/classes/index.PBMMeshBasicMaterial.html +70 -0
- package/docs/classes/index.PBMMeshBasicNodeMaterial.html +74 -0
- package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +70 -0
- package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +74 -0
- package/docs/classes/index.PBMMeshPhongMaterial.html +69 -0
- package/docs/classes/index.PBMMeshPhongNodeMaterial.html +73 -0
- package/docs/classes/index.PBMMeshPhysicalMaterial.html +69 -0
- package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +73 -0
- package/docs/classes/index.PBMPanoFilter.html +61 -0
- package/docs/classes/index.PBMPointCloud.html +50 -0
- package/docs/classes/index.PBMSkinnedMesh.html +8 -0
- package/docs/classes/index.PBMUpdateable.html +41 -0
- package/docs/classes/index.PanoCircleMesh.html +30 -0
- package/docs/classes/index.PanoCircleMeshCustom.html +30 -0
- package/docs/classes/index.PanoCircleMeshSolid.html +30 -0
- package/docs/classes/index.Parameter.html +114 -0
- package/docs/classes/index.Scene.html +18 -0
- package/docs/classes/index.Subscribe.html +43 -0
- package/docs/classes/index.TextureLoader.html +4 -0
- package/docs/classes/index.Tile.html +34 -0
- package/docs/classes/index.Tile3D.html +98 -0
- package/docs/classes/index.TileCache.html +8 -0
- package/docs/classes/index.TileNode.html +14 -0
- package/docs/classes/index.TileRequestScheduler.html +4 -0
- package/docs/classes/index.Tileset.html +38 -0
- package/docs/classes/index.Trajectory.html +8 -0
- package/docs/classes/index.TrajectoryNode.html +8 -0
- package/docs/classes/index.Work.html +52 -0
- package/docs/classes/index.WorkResolvedObserver.html +68 -0
- package/docs/documents/README.html +134 -0
- package/docs/documents/ai-doc-guidelines.html +117 -0
- package/docs/documents/api.html +337 -0
- package/docs/documents/features_3dtile.html +216 -0
- package/docs/documents/features_camera-animation.html +157 -0
- package/docs/documents/features_clipper.html +80 -0
- package/docs/documents/features_coordinate-system.html +127 -0
- package/docs/documents/features_event.html +104 -0
- package/docs/documents/features_five.html +147 -0
- package/docs/documents/features_gesture.html +121 -0
- package/docs/documents/features_get-screen-pixels.html +88 -0
- package/docs/documents/features_image-options.html +108 -0
- package/docs/documents/features_load-external-model.html +600 -0
- package/docs/documents/features_load-progress.html +110 -0
- package/docs/documents/features_material.html +341 -0
- package/docs/documents/features_mode.html +114 -0
- package/docs/documents/features_model.html +141 -0
- package/docs/documents/features_move-pano-effect.html +110 -0
- package/docs/documents/features_multi-work.html +97 -0
- package/docs/documents/features_pano-filter.html +119 -0
- package/docs/documents/features_pano-tile.html +100 -0
- package/docs/documents/features_pano-uv.html +82 -0
- package/docs/documents/features_parameter.html +101 -0
- package/docs/documents/features_raycast.html +98 -0
- package/docs/documents/features_request-proxy.html +78 -0
- package/docs/documents/features_screen-project.html +112 -0
- package/docs/documents/features_state.html +71 -0
- package/docs/documents/features_ultra-hdr.html +188 -0
- package/docs/documents/features_view-layer.html +158 -0
- package/docs/documents/features_work.html +129 -0
- package/docs/documents/glossary.html +94 -0
- package/docs/documents/intro.html +24 -0
- package/docs/documents/quick-start.html +32 -0
- package/docs/documents/release_notes_6.6.html +79 -0
- package/docs/documents/release_notes_6.7.html +209 -0
- package/docs/documents/release_notes_6.8.html +189 -0
- package/docs/documents/support.html +49 -0
- package/docs/documents/template.html +80 -0
- package/docs/enums/index.VolumePlaneIntersect.html +4 -0
- package/docs/functions/index.coordinatesToVector.html +2 -0
- package/docs/functions/index.createDebugBoundingMesh.html +1 -0
- package/docs/functions/index.createWorks.html +1 -0
- package/docs/functions/index.defaultImageURLTransform.html +5 -0
- package/docs/functions/index.getViewportScale.html +1 -0
- package/docs/functions/index.headingToLongitude.html +4 -0
- package/docs/functions/index.imageSupport.html +1 -0
- package/docs/functions/index.isBoundingVolume.html +1 -0
- package/docs/functions/index.isPanoId.html +1 -0
- package/docs/functions/index.loadAt3d.html +1 -0
- package/docs/functions/index.loadDome.html +1 -0
- package/docs/functions/index.loadDomez.html +1 -0
- package/docs/functions/index.loadGltf.html +1 -0
- package/docs/functions/index.loadPbm.html +1 -0
- package/docs/functions/index.loadPly.html +1 -0
- package/docs/functions/index.longitudeToHeading.html +4 -0
- package/docs/functions/index.makeBoundingVolume.html +1 -0
- package/docs/functions/index.panoEqual.html +1 -0
- package/docs/functions/index.panoParse.html +1 -0
- package/docs/functions/index.panoStringify.html +1 -0
- package/docs/functions/index.parseWork.html +7 -0
- package/docs/functions/index.registerPBMMaterials.html +3 -0
- package/docs/functions/index.vectorToCoordinates.html +2 -0
- package/docs/functions/index.workToJson.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +134 -0
- package/docs/interfaces/index.AddableObject.html +9 -0
- package/docs/interfaces/index.AjaxOptions.html +9 -0
- package/docs/interfaces/index.AnimationFrame.html +6 -0
- package/docs/interfaces/index.AnimationFrameContext.html +3 -0
- package/docs/interfaces/index.BaseEvent.html +5 -0
- package/docs/interfaces/index.BoundingVolume.html +15 -0
- package/docs/interfaces/index.BoxBoundingVolume.html +18 -0
- package/docs/interfaces/index.CameraPose.html +6 -0
- package/docs/interfaces/index.CullingVolume.html +9 -0
- package/docs/interfaces/index.Draco.html +12 -0
- package/docs/interfaces/index.EventCallback.html +394 -0
- package/docs/interfaces/index.FiveInitArgs.html +104 -0
- package/docs/interfaces/index.FiveLoadOptions.html +12 -0
- package/docs/interfaces/index.FloorplanControllerCustomInitArgs.html +17 -0
- package/docs/interfaces/index.GestureEvent.html +19 -0
- package/docs/interfaces/index.IPBMMaterial.html +64 -0
- package/docs/interfaces/index.ImageOptions.html +21 -0
- package/docs/interfaces/index.ImageURLMappings.html +1 -0
- package/docs/interfaces/index.ImageURLOptions.html +17 -0
- package/docs/interfaces/index.IntersectEvent.html +8 -0
- package/docs/interfaces/index.IntersectMesh.html +2 -0
- package/docs/interfaces/index.IntersectMeshInterface.html +3 -0
- package/docs/interfaces/index.Intersection.html +9 -0
- package/docs/interfaces/index.LoosePanoWork.html +10 -0
- package/docs/interfaces/index.LooseWork.html +15 -0
- package/docs/interfaces/index.LooseWorkInitial.html +11 -0
- package/docs/interfaces/index.LooseWorkModel.html +8 -0
- package/docs/interfaces/index.LooseWorkObserver.html +17 -0
- package/docs/interfaces/index.LooseWorkPanorama.html +22 -0
- package/docs/interfaces/index.LooseWorkVideo.html +4 -0
- package/docs/interfaces/index.LooseWorkWithExtrinsics.html +15 -0
- package/docs/interfaces/index.MapviewControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/index.ModeChangeEvent.html +9 -0
- package/docs/interfaces/index.ModelControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/index.ModelEvent.html +8 -0
- package/docs/interfaces/index.ModelOptions.html +11 -0
- package/docs/interfaces/index.ModelSceneEvent.html +6 -0
- package/docs/interfaces/index.ModelTileEvent.html +8 -0
- package/docs/interfaces/index.MotionKeyframe.html +4 -0
- package/docs/interfaces/index.MovePanoOptions.html +35 -0
- package/docs/interfaces/index.NetworkAbortError.html +1 -0
- package/docs/interfaces/index.NetworkFirbiddenError.html +1 -0
- package/docs/interfaces/index.NetworkOptions.html +7 -0
- package/docs/interfaces/index.NetworkProxyError.html +1 -0
- package/docs/interfaces/index.NetworkResourceEvent.html +9 -0
- package/docs/interfaces/index.NetworkResponseError.html +2 -0
- package/docs/interfaces/index.NetworkTimeoutError.html +1 -0
- package/docs/interfaces/index.ObjectEvent.html +6 -0
- package/docs/interfaces/index.PBMClipperParameter.html +3 -0
- package/docs/interfaces/index.PBMHDRConfig.html +12 -0
- package/docs/interfaces/index.PBMPanoDepth.html +9 -0
- package/docs/interfaces/index.PBMPanoFilterValue.html +6 -0
- package/docs/interfaces/index.PBMPanoPicture.html +14 -0
- package/docs/interfaces/index.PBMRefinedScreen.html +6 -0
- package/docs/interfaces/index.PanoCircleMeshCustomOptions.html +9 -0
- package/docs/interfaces/index.PanoCircleMeshInterface.html +30 -0
- package/docs/interfaces/index.PanoCircleMeshOptions.html +3 -0
- package/docs/interfaces/index.PanoCircleMeshSolidOptions.html +3 -0
- package/docs/interfaces/index.PanoEvent.html +11 -0
- package/docs/interfaces/index.PanoTextureEvent.html +9 -0
- package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +41 -0
- package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/index.ParameterMaterialValue.html +74 -0
- package/docs/interfaces/index.ParameterTilesetValue.html +30 -0
- package/docs/interfaces/index.ParameterValue.html +103 -0
- package/docs/interfaces/index.Pass.html +9 -0
- package/docs/interfaces/index.PointCloudData.html +6 -0
- package/docs/interfaces/index.Pose.html +12 -0
- package/docs/interfaces/index.RegionBoundingVolume.html +21 -0
- package/docs/interfaces/index.RenderEvent.html +6 -0
- package/docs/interfaces/index.ResolvedParameterValue.html +104 -0
- package/docs/interfaces/index.RgbaData.html +7 -0
- package/docs/interfaces/index.SphereBoundingVolume.html +17 -0
- package/docs/interfaces/index.SplatData.html +10 -0
- package/docs/interfaces/index.State.html +23 -0
- package/docs/interfaces/index.StateEvent.html +7 -0
- package/docs/interfaces/index.TextureOptions.html +23 -0
- package/docs/interfaces/index.Tile3DOptions.html +11 -0
- package/docs/interfaces/index.TileCoordinateSystem.html +3 -0
- package/docs/interfaces/index.TileHeader.html +9 -0
- package/docs/interfaces/index.TilesetHeader.html +20 -0
- package/docs/interfaces/index.TilesetOptions.html +7 -0
- package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +13 -0
- package/docs/interfaces/index.TrajectoryHeader.html +5 -0
- package/docs/interfaces/index.ViewLayer.html +97 -0
- package/docs/interfaces/index.Viewport.html +13 -0
- package/docs/interfaces/index.WebXRAxesParams.html +4 -0
- package/docs/interfaces/index.WebXRControllerParams.html +2 -0
- package/docs/interfaces/index.WorkCubeImage.html +15 -0
- package/docs/interfaces/index.WorkImage.html +22 -0
- package/docs/interfaces/index.WorkInitial.html +17 -0
- package/docs/interfaces/index.WorkInitialJson.html +8 -0
- package/docs/interfaces/index.WorkJson.html +11 -0
- package/docs/interfaces/index.WorkModel.html +16 -0
- package/docs/interfaces/index.WorkModelJson.html +6 -0
- package/docs/interfaces/index.WorkModelLayer.html +11 -0
- package/docs/interfaces/index.WorkModelLayerJson.html +5 -0
- package/docs/interfaces/index.WorkObserver.html +63 -0
- package/docs/interfaces/index.WorkObserverJson.html +10 -0
- package/docs/interfaces/index.WorkPanoramaJson.html +14 -0
- package/docs/interfaces/index.WorkPanoramasJson.html +3 -0
- package/docs/interfaces/index.WorkTile.html +21 -0
- package/docs/interfaces/index.WorkVideo.html +9 -0
- package/docs/interfaces/index.WorksEvent.html +8 -0
- package/docs/interfaces/index.XRControllerEvent.html +8 -0
- package/docs/interfaces/index.XRGestureEvent.html +11 -0
- package/docs/interfaces/index.XRSessionEvent.html +7 -0
- package/docs/modules/index.html +1 -0
- package/docs/modules.html +1 -0
- package/docs/types/index.AjaxResponseType.html +1 -0
- package/docs/types/index.AjaxResponseTypeMapping.html +1 -0
- package/docs/types/index.AnimationFrameLoopType.html +1 -0
- package/docs/types/index.BoundingVolumeJson.html +1 -0
- package/docs/types/index.BoxBoundingVolumeJson.html +2 -0
- package/docs/types/index.ControllerCustomInitTypes.html +6 -0
- package/docs/types/index.ControllerEventTypes.html +68 -0
- package/docs/types/index.CubeFace.html +1 -0
- package/docs/types/index.EasingFunction.html +1 -0
- package/docs/types/index.EventTypes.html +28 -0
- package/docs/types/index.FivePlugin.html +4 -0
- package/docs/types/index.FivePluginInit.html +3 -0
- package/docs/types/index.FivePluginInstance.html +3 -0
- package/docs/types/index.FlowingFireworks3DPassLine.html +16 -0
- package/docs/types/index.FlowingLight2DPassLine.html +10 -0
- package/docs/types/index.FlowingLight3DPassLine.html +10 -0
- package/docs/types/index.GestureTypes.html +1 -0
- package/docs/types/index.LegacyEventType.html +282 -0
- package/docs/types/index.LoadResultType.html +12 -0
- package/docs/types/index.Mode.html +15 -0
- package/docs/types/index.Models.html +11 -0
- package/docs/types/index.MotionCircle.html +2 -0
- package/docs/types/index.MotionConfig.html +1 -0
- package/docs/types/index.MotionInitalValue.html +1 -0
- package/docs/types/index.MotionValue.html +1 -0
- package/docs/types/index.MovePanoEffect.html +12 -0
- package/docs/types/index.NetWorkMeta.html +8 -0
- package/docs/types/index.NetworkError.html +1 -0
- package/docs/types/index.NetworkErrorCallback.html +1 -0
- package/docs/types/index.NetworkProgressCallback.html +1 -0
- package/docs/types/index.NetworkResponse.html +3 -0
- package/docs/types/index.NetworkState.html +1 -0
- package/docs/types/index.NetworkSuccessCallback.html +1 -0
- package/docs/types/index.NetworkType.html +1 -0
- package/docs/types/index.OutputTextureDataType.html +1 -0
- package/docs/types/index.PBMAlphaMode.html +1 -0
- package/docs/types/index.PBMColorStyle.html +1 -0
- package/docs/types/index.PBMFloorStyle.html +1 -0
- package/docs/types/index.PBMMeshMaterial.html +1 -0
- package/docs/types/index.PBMPointBack.html +1 -0
- package/docs/types/index.PBMPointCloudShaderType.html +1 -0
- package/docs/types/index.PBMPointShape.html +1 -0
- package/docs/types/index.PBMPointSize.html +1 -0
- package/docs/types/index.PBMTransition.html +1 -0
- package/docs/types/index.Pano.html +3 -0
- package/docs/types/index.PanoId.html +1 -0
- package/docs/types/index.ParseOptions.html +13 -0
- package/docs/types/index.PostProcessingType.html +1 -0
- package/docs/types/index.RegionBoundingVolumeJson.html +2 -0
- package/docs/types/index.RequestAnimationFrameArgs.html +1 -0
- package/docs/types/index.Scissor.html +2 -0
- package/docs/types/index.SphereBoundingVolumeJson.html +2 -0
- package/docs/types/index.SubscribeEventMap.html +1 -0
- package/docs/types/index.TileCacheOptions.html +3 -0
- package/docs/types/index.TileContentData.html +6 -0
- package/docs/types/index.TileRequestOrder.html +1 -0
- package/docs/types/index.TileRequestSchedulerOptions.html +4 -0
- package/docs/types/index.TilesetFrameState.html +21 -0
- package/docs/types/index.TrajectoryContentData.html +7 -0
- package/docs/types/index.WebXRControllerKey.html +1 -0
- package/docs/types/index.WebXRControllerType.html +1 -0
- package/docs/types/index.Works.html +1 -0
- package/docs/variables/index.PROXY_CONTROLLER_EVENT_NAMES.html +1 -0
- package/docs/variables/index.controllersDefaultInitArgs.html +1 -0
- package/docs/variables/index.draco.html +1 -0
- package/five/application/analysis.d.ts +40 -0
- package/five/application/controllers.d.ts +33 -0
- package/five/application/events-legacy.d.ts +454 -0
- package/five/application/events.d.ts +69 -0
- package/five/application/five.d.ts +498 -0
- package/five/application/fiveInitArgs.d.ts +173 -0
- package/five/application/fiveLoadOptions.d.ts +21 -0
- package/five/application/generateDefaultVideoElement.d.ts +2 -0
- package/five/application/getViewportScale.d.ts +2 -0
- package/five/application/initLights.d.ts +3 -0
- package/five/application/mode.d.ts +24 -0
- package/five/application/renderPoweredByRealsee.d.ts +3 -0
- package/five/assets/cardboard-png-data-url.d.ts +2 -0
- package/five/assets/gradient-png-data-url.d.ts +2 -0
- package/five/assets/loading-png-data-url.d.ts +2 -0
- package/five/assets/phone-png-data-url.d.ts +2 -0
- package/five/assets/realsee-pmg-data-url.d.ts +2 -0
- package/five/bvh/bvhMath.d.ts +33 -0
- package/five/bvh/bvhMesh.d.ts +7 -0
- package/five/bvh/bvhNode.d.ts +29 -0
- package/five/bvh/bvhObject.d.ts +19 -0
- package/five/bvh/bvhPoints.d.ts +6 -0
- package/five/bvh/index.d.ts +14 -0
- package/five/bvh/type.d.ts +1 -0
- package/five/bvh/worker.d.ts +36 -0
- package/five/certificates/hardware.d.ts +1 -0
- package/five/controllers/base.d.ts +166 -0
- package/five/controllers/events.d.ts +71 -0
- package/five/controllers/floorplan.d.ts +119 -0
- package/five/controllers/mapview.d.ts +138 -0
- package/five/controllers/model.d.ts +57 -0
- package/five/controllers/panorama.d.ts +143 -0
- package/five/controllers/panoramaLike.d.ts +87 -0
- package/five/controllers/topview.d.ts +42 -0
- package/five/core/camera.d.ts +65 -0
- package/five/core/internalWebGPURenderer.d.ts +13 -0
- package/five/core/panoVideo.d.ts +18 -0
- package/five/core/scene.d.ts +10 -0
- package/five/core/tiling.d.ts +56 -0
- package/five/declare.d.ts +35 -0
- package/five/gaussian-splatting/util/renderData.d.ts +66 -0
- package/five/gaussian-splatting/wasm/data.d.ts +20 -0
- package/five/gaussian-splatting/wasm/sort.d.ts +18 -0
- package/five/gaussian-splatting/worker/dataWorker.d.ts +1 -0
- package/five/gaussian-splatting/worker/sortWorker.d.ts +1 -0
- package/five/index.d.ts +58 -0
- package/five/index.js +1179 -0
- package/five/index.mjs +25111 -0
- package/five/meshes/boundingMesh.d.ts +12 -0
- package/five/meshes/intersectMesh.d.ts +8 -0
- package/five/meshes/panoCircleMesh.d.ts +36 -0
- package/five/meshes/panoCircleMeshCustom.d.ts +40 -0
- package/five/meshes/panoCircleMeshSolid.d.ts +35 -0
- package/five/meshes/panoSphereMesh.d.ts +29 -0
- package/five/model/helpers/coordinate-transform.d.ts +3 -0
- package/five/model/helpers/ellipsoid-coordinates.d.ts +14 -0
- package/five/model/helpers/get-edges-by-sphere.d.ts +8 -0
- package/five/model/helpers/get-recommend-tile3d-parameters.d.ts +8 -0
- package/five/model/index.d.ts +55 -0
- package/five/model/intersection.d.ts +18 -0
- package/five/model/loaders/at3d.d.ts +12 -0
- package/five/model/loaders/b3dm.d.ts +10 -0
- package/five/model/loaders/dome.d.ts +22 -0
- package/five/model/loaders/domez.d.ts +11 -0
- package/five/model/loaders/fbx.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/CESIUM_RTC.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_meshopt_compression.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_texture_webp.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_animation_pointer.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +25 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_draco_mesh_compression.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting.d.ts +26 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +13 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_clearcoat.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_emissive_strength.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_sheen.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_transmission.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_unlit.d.ts +12 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_mesh_quantization.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_node_visibility.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_basisu.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_transform.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/REALSEE_materials_lightmap.d.ts +7 -0
- package/five/model/loaders/glTF-helpers/extensions/base.d.ts +25 -0
- package/five/model/loaders/glTF-helpers/glTF.d.ts +713 -0
- package/five/model/loaders/glTF-helpers/index.d.ts +51 -0
- package/five/model/loaders/glTF-helpers/parser.d.ts +115 -0
- package/five/model/loaders/glTF-helpers/type.d.ts +14 -0
- package/five/model/loaders/gltf.d.ts +10 -0
- package/five/model/loaders/obj.d.ts +9 -0
- package/five/model/loaders/pbm.d.ts +26 -0
- package/five/model/loaders/ply.d.ts +24 -0
- package/five/model/loaders/pnts.d.ts +8 -0
- package/five/model/loaders/protobuf/dome.d.ts +540 -0
- package/five/model/loaders/protobuf/pbm.d.ts +203 -0
- package/five/model/loaders/shared.d.ts +16 -0
- package/five/model/loaders/splat.d.ts +8 -0
- package/five/model/loaders/spz.d.ts +14 -0
- package/five/model/loaders/tile3d-helpers/feature-table.d.ts +15 -0
- package/five/model/loaders/tile3d-helpers/gl-type.d.ts +20 -0
- package/five/model/loaders/tile3d-helpers/parse-gltf-array-buffer.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-header.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.worker.d.ts +6 -0
- package/five/model/loaders/tile3d-helpers/parse-table.d.ts +3 -0
- package/five/model/loaders/tile3d-helpers/tile3d-type.d.ts +36 -0
- package/five/model/loaders/x3p.d.ts +22 -0
- package/five/model/materials/nodes/pbmMeshBasicNodeMaterial.d.ts +14 -0
- package/five/model/materials/nodes/pbmMeshPanoOnlyNodeMaterial.d.ts +14 -0
- package/five/model/materials/nodes/pbmMeshPhongNodeMaterial.d.ts +14 -0
- package/five/model/materials/nodes/pbmMeshPhysicalNodeMaterial.d.ts +14 -0
- package/five/model/materials/nodes/pbmPointCloudNodeMaterial.d.ts +22 -0
- package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +78 -0
- package/five/model/materials/pbmMaterial.d.ts +171 -0
- package/five/model/materials/pbmMaterialRegister.d.ts +6 -0
- package/five/model/materials/pbmMeshMaterial.d.ts +57 -0
- package/five/model/materials/pbmPointCloudMaterial.d.ts +20 -0
- package/five/model/materials/pbmPointCloudNodeMaterial.d.ts +46 -0
- package/five/model/materials/tsl/colorFilter.d.ts +9 -0
- package/five/model/materials/tsl/defines.d.ts +68 -0
- package/five/model/materials/tsl/nodeTypes.d.ts +12 -0
- package/five/model/materials/tsl/outputBuilder.d.ts +26 -0
- package/five/model/materials/tsl/panoColor.d.ts +17 -0
- package/five/model/materials/tsl/panoTransition.d.ts +8 -0
- package/five/model/materials/tsl/utils.d.ts +11 -0
- package/five/model/model-scene.d.ts +172 -0
- package/five/model/model.d.ts +203 -0
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +47 -0
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +73 -0
- package/five/model/objects/pbmGroup.d.ts +8 -0
- package/five/model/objects/pbmMesh.d.ts +10 -0
- package/five/model/objects/pbmPointCloud.d.ts +89 -0
- package/five/model/objects/pbmPointCloudObject.d.ts +81 -0
- package/five/model/parameter.d.ts +138 -0
- package/five/model/tile3d/header.d.ts +88 -0
- package/five/model/tile3d/index.d.ts +213 -0
- package/five/model/tile3d/tile-cache.d.ts +18 -0
- package/five/model/tile3d/tile-content.d.ts +10 -0
- package/five/model/tile3d/tile-node.d.ts +26 -0
- package/five/model/tile3d/tile-request-scheduler.d.ts +17 -0
- package/five/model/tile3d/tile.d.ts +79 -0
- package/five/model/tile3d/tileset-base-traverser.d.ts +59 -0
- package/five/model/tile3d/tileset-most-detail-traverser.d.ts +14 -0
- package/five/model/tile3d/tileset-normal-traverser.d.ts +15 -0
- package/five/model/tile3d/tileset-skip-traverser.d.ts +60 -0
- package/five/model/tile3d/tileset.d.ts +65 -0
- package/five/model/tile3d/trajectory-content.d.ts +0 -0
- package/five/model/tile3d/trajectory-node.d.ts +15 -0
- package/five/model/tile3d/trajectory.d.ts +30 -0
- package/five/model/tile3d/types.d.ts +33 -0
- package/five/model/view-layer.d.ts +20 -0
- package/five/renderer/compute-renderers/pointcloud-compute-renderer.d.ts +154 -0
- package/five/renderer/compute-renderers/rgb565.d.ts +45 -0
- package/five/renderer/compute-renderers/shaders/clear.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/fullscreenQuad.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/rasterize.d.ts +2 -0
- package/five/renderer/five-renderer.d.ts +33 -0
- package/five/renderer/index.d.ts +3 -0
- package/five/renderer/postprocessing/composer.d.ts +45 -0
- package/five/renderer/postprocessing/index.d.ts +8 -0
- package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +27 -0
- package/five/renderer/postprocessing/passes/eye-dome-lighting-pass.d.ts +31 -0
- package/five/renderer/postprocessing/passes/flowing-fireworks-3d-pass.d.ts +71 -0
- package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +26 -0
- package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +75 -0
- package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +22 -0
- package/five/renderer/postprocessing/passes/pass.d.ts +38 -0
- package/five/renderer/scene-renderers/scene-renderer.d.ts +9 -0
- package/five/renderer/tools/full-screen-quad.d.ts +17 -0
- package/five/renderer/tools/postprocess-uv.d.ts +11 -0
- package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
- package/five/renderer/tools/render-full-screen-depth.d.ts +2 -0
- package/five/renderer/tools/render-full-screen.d.ts +2 -0
- package/five/texture/histogram.d.ts +54 -0
- package/five/texture/imageBitmap.d.ts +13 -0
- package/five/texture/initTexture.d.ts +3 -0
- package/five/texture/loader.d.ts +39 -0
- package/five/texture/textureData.d.ts +11 -0
- package/five/thirdparty/fflate.d.ts +1407 -0
- package/five/thirdparty/hammer.d.ts +375 -0
- package/five/thirdparty/jsrsasign.d.ts +753 -0
- package/five/thirdparty/meshopt_decoder.d.ts +15 -0
- package/five/three-version-check.d.ts +1 -0
- package/five/types/addableObject.d.ts +12 -0
- package/five/types/cube.d.ts +2 -0
- package/five/types/gestureInput.d.ts +24 -0
- package/five/types/imageOptions.d.ts +20 -0
- package/five/types/intersectMeshInterface.d.ts +8 -0
- package/five/types/movePanoEffect.d.ts +13 -0
- package/five/types/movePanoOptions.d.ts +36 -0
- package/five/types/panoCircleMeshInterface.d.ts +34 -0
- package/five/types/plugin.d.ts +25 -0
- package/five/types/pose.d.ts +17 -0
- package/five/types/state.d.ts +20 -0
- package/five/types/viewport.d.ts +22 -0
- package/five/utils/ajax.d.ts +66 -0
- package/five/utils/animationFrameLoop.d.ts +45 -0
- package/five/utils/array.d.ts +31 -0
- package/five/utils/asyncTaskQueue.d.ts +8 -0
- package/five/utils/bufferGeometry.d.ts +33 -0
- package/five/utils/calculateProgress.d.ts +39 -0
- package/five/utils/calculateThreeMouse.d.ts +13 -0
- package/five/utils/canplayVideo.d.ts +2 -0
- package/five/utils/clamp.d.ts +2 -0
- package/five/utils/clock.d.ts +30 -0
- package/five/utils/createSymbol.d.ts +5 -0
- package/five/utils/decodeText.d.ts +2 -0
- package/five/utils/deepEqual.d.ts +2 -0
- package/five/utils/deepFreeze.d.ts +2 -0
- package/five/utils/defineProperty.d.ts +9 -0
- package/five/utils/detector.d.ts +14 -0
- package/five/utils/distance.d.ts +10 -0
- package/five/utils/draco.d.ts +26 -0
- package/five/utils/easing.d.ts +63 -0
- package/five/utils/event.d.ts +159 -0
- package/five/utils/face3.d.ts +12 -0
- package/five/utils/formatRad.d.ts +7 -0
- package/five/utils/hdr-data.d.ts +13 -0
- package/five/utils/imageSupport.d.ts +6 -0
- package/five/utils/imageURL.d.ts +42 -0
- package/five/utils/isEmptyObject.d.ts +2 -0
- package/five/utils/isNil.d.ts +6 -0
- package/five/utils/isNumber.d.ts +2 -0
- package/five/utils/isPowerOfTwo.d.ts +2 -0
- package/five/utils/isPromise.d.ts +2 -0
- package/five/utils/isSimilar.d.ts +6 -0
- package/five/utils/json.d.ts +7 -0
- package/five/utils/ktx2.d.ts +30 -0
- package/five/utils/lzma/index.d.ts +2 -0
- package/five/utils/lzma/lzma.d.ts +3 -0
- package/five/utils/lzma/lzmaWASM.d.ts +2 -0
- package/five/utils/lzma/lzmaWorker.d.ts +14 -0
- package/five/utils/memoryUsage.d.ts +37 -0
- package/five/utils/motion.d.ts +38 -0
- package/five/utils/noop.d.ts +6 -0
- package/five/utils/now.d.ts +7 -0
- package/five/utils/pano.d.ts +9 -0
- package/five/utils/pick.d.ts +3 -0
- package/five/utils/poseUtils.d.ts +5 -0
- package/five/utils/renderCubeTextureToCubeRenderTarget.d.ts +3 -0
- package/five/utils/renderDepth.d.ts +2 -0
- package/five/utils/renderTexturesToCubeRenderTarget.d.ts +10 -0
- package/five/utils/requestPermission.d.ts +3 -0
- package/five/utils/shaderContentFix.d.ts +7 -0
- package/five/utils/shaderMaterial.d.ts +20 -0
- package/five/utils/stateUtils.d.ts +5 -0
- package/five/utils/string-pattern.d.ts +8 -0
- package/five/utils/subscribe.d.ts +67 -0
- package/five/utils/tileCube.d.ts +19 -0
- package/five/utils/toFastProperties.d.ts +1 -0
- package/five/utils/typedCache.d.ts +10 -0
- package/five/utils/uniform.d.ts +15 -0
- package/five/utils/url.d.ts +35 -0
- package/five/utils/uuid.d.ts +5 -0
- package/five/utils/values.d.ts +2 -0
- package/five/utils/vectorCoordinates.d.ts +29 -0
- package/five/utils/volume.d.ts +111 -0
- package/five/utils/worker.d.ts +26 -0
- package/five/work/_ALLOW_HOST.d.ts +2 -0
- package/five/work/index.d.ts +6 -0
- package/five/work/keychain.d.ts +5 -0
- package/five/work/looseWorkType.d.ts +128 -0
- package/five/work/verify.d.ts +7 -0
- package/five/work/work.d.ts +246 -0
- package/five/work/workFetcher.d.ts +4 -0
- package/five/work/workJson.d.ts +3 -0
- package/five/work/workJsonType.d.ts +73 -0
- package/five/work/workObserverUtils.d.ts +36 -0
- package/five/work/workParser.d.ts +6 -0
- package/five/work/workResolvedObserver.d.ts +12 -0
- package/five/work/workVerify.d.ts +2 -0
- package/five/work/works.d.ts +10 -0
- package/llms.txt +66 -0
- package/package.json +56 -0
- package/plugins/BasePlugin/index.d.ts +96 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +66 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.d.ts +5 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/typing.d.ts +32 -0
- package/plugins/index.d.ts +2 -0
- package/plugins/index.js +255 -0
- package/plugins/index.mjs +539 -0
- package/plugins/utils/absoluteUrl.d.ts +5 -0
- package/react/autoCanvas.d.ts +9 -0
- package/react/canvas.d.ts +19 -0
- package/react/context.d.ts +12 -0
- package/react/createProvider.d.ts +98 -0
- package/react/createStore.d.ts +144 -0
- package/react/fiveApp.d.ts +22 -0
- package/react/hooks/unsafe__useFiveInstance.d.ts +9 -0
- package/react/hooks/useFiveAction.d.ts +147 -0
- package/react/hooks/useFiveCameraDirection.d.ts +7 -0
- package/react/hooks/useFiveCameraRaycaster.d.ts +7 -0
- package/react/hooks/useFiveCurrentObserver.d.ts +11 -0
- package/react/hooks/useFiveCurrentState.d.ts +15 -0
- package/react/hooks/useFiveEventCallback.d.ts +12 -0
- package/react/hooks/useFiveFloor.d.ts +15 -0
- package/react/hooks/useFiveHelper.d.ts +14 -0
- package/react/hooks/useFiveModelBounding.d.ts +5 -0
- package/react/hooks/useFiveModelEffect.d.ts +14 -0
- package/react/hooks/useFiveModelIntersectRaycaster.d.ts +22 -0
- package/react/hooks/useFiveModelReadyState.d.ts +8 -0
- package/react/hooks/useFivePlugin.d.ts +22 -0
- package/react/hooks/useFiveProject2d.d.ts +21 -0
- package/react/hooks/useFiveSceneEffect.d.ts +21 -0
- package/react/hooks/useFiveState.d.ts +6 -0
- package/react/hooks/useFiveWork.d.ts +29 -0
- package/react/index.d.ts +28 -0
- package/react/index.js +255 -0
- package/react/index.mjs +896 -0
- package/react/withFive.d.ts +213 -0
- package/resource/basis/1.16/basis_transcoder.js +22 -0
- package/resource/basis/1.16/basis_transcoder.wasm +0 -0
- package/resource/basis/README.md +5 -0
- package/resource/draco/1.5.6/draco_decoder.js +34 -0
- package/resource/draco/1.5.6/draco_decoder.wasm +0 -0
- package/resource/draco/1.5.6/draco_decoder_gltf.js +33 -0
- package/resource/draco/1.5.6/draco_decoder_gltf.wasm +0 -0
- package/resource/draco/1.5.6/draco_encoder.js +35 -0
- package/resource/draco/1.5.6/draco_encoder.wasm +0 -0
- package/resource/draco/1.5.6/draco_encoder_wrapper.js +97 -0
- package/resource/draco/1.5.6/draco_wasm_wrapper.js +117 -0
- package/resource/draco/1.5.6/draco_wasm_wrapper_gltf.js +116 -0
- package/resource/draco/README.md +5 -0
- package/umd/five-plugins.js +255 -0
- package/umd/five-react.js +255 -0
- package/umd/five.js +1579 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { PBMMesh } from "../model";
|
|
3
|
+
import { type Camera } from '../core/camera';
|
|
4
|
+
import { type ModelScene } from '../model';
|
|
5
|
+
declare class BoundingMesh extends PBMMesh {
|
|
6
|
+
constructor(options?: {
|
|
7
|
+
name?: string;
|
|
8
|
+
});
|
|
9
|
+
update(renderer: THREE.WebGPURenderer, camera: Camera, modelScene: ModelScene): boolean;
|
|
10
|
+
dispose(): void;
|
|
11
|
+
}
|
|
12
|
+
export { BoundingMesh };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { IntersectMeshInterface } from "../types/intersectMeshInterface";
|
|
3
|
+
declare class IntersectMesh extends THREE.Object3D implements IntersectMeshInterface {
|
|
4
|
+
private ringMesh;
|
|
5
|
+
constructor();
|
|
6
|
+
dispose(): void;
|
|
7
|
+
}
|
|
8
|
+
export { IntersectMesh };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { PanoCircleMeshInterface } from "../types/panoCircleMeshInterface";
|
|
3
|
+
interface PanoCircleMeshOptions {
|
|
4
|
+
scale?: number;
|
|
5
|
+
color?: number;
|
|
6
|
+
}
|
|
7
|
+
declare class PanoCircleMesh extends THREE.Object3D implements PanoCircleMeshInterface {
|
|
8
|
+
needsRender: boolean;
|
|
9
|
+
private currentStartTime;
|
|
10
|
+
private currentMotion;
|
|
11
|
+
private ringMotion;
|
|
12
|
+
private tapMotion;
|
|
13
|
+
private loadingOpacityMotion;
|
|
14
|
+
private progressMotion;
|
|
15
|
+
private progressOpacityMotion;
|
|
16
|
+
private opacityMotion;
|
|
17
|
+
private disableMotion;
|
|
18
|
+
progress: number;
|
|
19
|
+
opacity: number;
|
|
20
|
+
current: boolean;
|
|
21
|
+
loading: boolean;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
private panoMesh;
|
|
24
|
+
private panoU;
|
|
25
|
+
constructor(options?: PanoCircleMeshOptions);
|
|
26
|
+
setProgress(progress: number): void;
|
|
27
|
+
setOpacity(opacity: number): void;
|
|
28
|
+
setCurrent(current: boolean): void;
|
|
29
|
+
setLoading(loading: boolean): void;
|
|
30
|
+
setDisabled(disabled: boolean): void;
|
|
31
|
+
tap(): Promise<void>;
|
|
32
|
+
updateTime(time: number, deltaTime: number): void;
|
|
33
|
+
dispose(): void;
|
|
34
|
+
}
|
|
35
|
+
export { PanoCircleMesh };
|
|
36
|
+
export type { PanoCircleMeshOptions };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { PanoCircleMeshInterface } from "../types/panoCircleMeshInterface";
|
|
3
|
+
interface PanoCircleMeshCustomOptions {
|
|
4
|
+
scale?: number;
|
|
5
|
+
color?: number;
|
|
6
|
+
map?: THREE.Texture;
|
|
7
|
+
mapAlpha?: number;
|
|
8
|
+
borderWidth?: number;
|
|
9
|
+
borderColor?: number;
|
|
10
|
+
mapUseColor?: boolean;
|
|
11
|
+
mapUseReverse?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare class PanoCircleMeshCustom extends THREE.Object3D implements PanoCircleMeshInterface {
|
|
14
|
+
needsRender: boolean;
|
|
15
|
+
private currentStartTime;
|
|
16
|
+
private currentMotion;
|
|
17
|
+
private tapMotion;
|
|
18
|
+
private loadingOpacityMotion;
|
|
19
|
+
private progressMotion;
|
|
20
|
+
private progressOpacityMotion;
|
|
21
|
+
private opacityMotion;
|
|
22
|
+
private disableMotion;
|
|
23
|
+
progress: number;
|
|
24
|
+
opacity: number;
|
|
25
|
+
current: boolean;
|
|
26
|
+
loading: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
private panoMesh;
|
|
29
|
+
constructor(options?: PanoCircleMeshCustomOptions);
|
|
30
|
+
setProgress(progress: number): void;
|
|
31
|
+
setOpacity(opacity: number): void;
|
|
32
|
+
setCurrent(current: boolean): void;
|
|
33
|
+
setLoading(loading: boolean): void;
|
|
34
|
+
setDisabled(disabled: boolean): void;
|
|
35
|
+
tap(): Promise<void>;
|
|
36
|
+
updateTime(time: number, deltaTime: number): void;
|
|
37
|
+
dispose(): void;
|
|
38
|
+
}
|
|
39
|
+
export { PanoCircleMeshCustom };
|
|
40
|
+
export type { PanoCircleMeshCustomOptions };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { PanoCircleMeshInterface } from "../types/panoCircleMeshInterface";
|
|
3
|
+
interface PanoCircleMeshSolidOptions {
|
|
4
|
+
scale?: number;
|
|
5
|
+
color?: number;
|
|
6
|
+
}
|
|
7
|
+
declare class PanoCircleMeshSolid extends THREE.Object3D implements PanoCircleMeshInterface {
|
|
8
|
+
needsRender: boolean;
|
|
9
|
+
private currentStartTime;
|
|
10
|
+
private currentMotion;
|
|
11
|
+
private tapMotion;
|
|
12
|
+
private loadingOpacityMotion;
|
|
13
|
+
private progressMotion;
|
|
14
|
+
private progressOpacityMotion;
|
|
15
|
+
private opacityMotion;
|
|
16
|
+
private disableMotion;
|
|
17
|
+
progress: number;
|
|
18
|
+
opacity: number;
|
|
19
|
+
current: boolean;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
private panoMesh;
|
|
23
|
+
private panoU;
|
|
24
|
+
constructor(options?: PanoCircleMeshSolidOptions);
|
|
25
|
+
setProgress(progress: number): void;
|
|
26
|
+
setOpacity(opacity: number): void;
|
|
27
|
+
setCurrent(current: boolean): void;
|
|
28
|
+
setLoading(loading: boolean): void;
|
|
29
|
+
setDisabled(disabled: boolean): void;
|
|
30
|
+
tap(): Promise<void>;
|
|
31
|
+
updateTime(time: number, deltaTime: number): void;
|
|
32
|
+
dispose(): void;
|
|
33
|
+
}
|
|
34
|
+
export { PanoCircleMeshSolid };
|
|
35
|
+
export type { PanoCircleMeshSolidOptions };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { PanoCircleMeshInterface } from "../types/panoCircleMeshInterface";
|
|
3
|
+
declare class PanoSphereMesh extends THREE.Object3D implements PanoCircleMeshInterface {
|
|
4
|
+
needsRender: boolean;
|
|
5
|
+
hitTestMesh: THREE.Mesh<THREE.BufferGeometry, THREE.MeshBasicMaterial>;
|
|
6
|
+
private ringMesh;
|
|
7
|
+
private panoMesh;
|
|
8
|
+
private ringU;
|
|
9
|
+
private panoU;
|
|
10
|
+
private currentMotion;
|
|
11
|
+
private opacityMotion;
|
|
12
|
+
private loadingMotion;
|
|
13
|
+
private disableMotion;
|
|
14
|
+
progress: number;
|
|
15
|
+
opacity: number;
|
|
16
|
+
current: boolean;
|
|
17
|
+
loading: boolean;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
constructor();
|
|
20
|
+
setProgress(progress: number): void;
|
|
21
|
+
setOpacity(opacity: number): void;
|
|
22
|
+
setCurrent(current: boolean): void;
|
|
23
|
+
setLoading(loading: boolean): void;
|
|
24
|
+
setDisabled(disabled: boolean): void;
|
|
25
|
+
tap(): Promise<void>;
|
|
26
|
+
updateTime(time: number, deltaTime: number): void;
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}
|
|
29
|
+
export { PanoSphereMesh };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
/**
|
|
3
|
+
* 坐标转化 ecef -> lla
|
|
4
|
+
* @param vector x: lat, y: lon, z: alt
|
|
5
|
+
* @returns ecef 坐标系下的 xyz
|
|
6
|
+
*/
|
|
7
|
+
export declare function ecefToLla(vector: THREE.Vector3): THREE.Vector3;
|
|
8
|
+
/**
|
|
9
|
+
* 坐标转化 lla -> ecef
|
|
10
|
+
* @param vector ecef 坐标系下的 xyz
|
|
11
|
+
* @returns x: lat, y: lon, z: alt
|
|
12
|
+
*/
|
|
13
|
+
export declare function llaToEcef(vector: THREE.Vector3): THREE.Vector3;
|
|
14
|
+
export declare function getEcefToEnuMatrix(vector: THREE.Vector3, target: THREE.Matrix4): THREE.Matrix4;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export { PBMGroup } from "./objects/pbmGroup";
|
|
2
|
+
export { PBMMesh, PBMSkinnedMesh, } from "./objects/pbmMesh";
|
|
3
|
+
export { PBMGaussianSplattingObject, type SplatData, } from "./objects/pbmGaussianSplattingObject";
|
|
4
|
+
export { PBMGaussianSplattingObject as PBMGSObject, } from "./objects/pbmGaussianSplattingObject";
|
|
5
|
+
export { PBMPointCloud, type PointCloudData, } from "./objects/pbmPointCloud";
|
|
6
|
+
export { PBMGaussianSplattingRenderMesh, } from "./objects/pbmGaussianSplattingRenderMesh";
|
|
7
|
+
export { PBMGaussianSplattingNodeMaterial, } from "./materials/pbmGaussianSplattingNodeMaterial";
|
|
8
|
+
export { PBMUpdateable, PBMPanoFilter, type IPBMMaterial, type PBMPanoFilterValue, type PBMAlphaMode, type PBMClipperParameter, type PBMColorStyle, type PBMFloorStyle, type PBMPanoPicture, type PBMHDRConfig, type PBMPanoDepth, type PBMPointBack, type PBMPointCloudShaderType, type PBMPointShape, type PBMPointSize, type PBMRefinedScreen, type PBMTransition, } from "./materials/pbmMaterial";
|
|
9
|
+
export { type PBMMeshMaterial, PBMMeshBasicMaterial, PBMMeshPhongMaterial, PBMMeshPhysicalMaterial, PBMMeshPanoOnlyMaterial } from './materials/pbmMeshMaterial';
|
|
10
|
+
export { registerPBMMaterials, } from './materials/pbmMaterialRegister';
|
|
11
|
+
export { PBMMeshBasicNodeMaterial, } from './materials/nodes/pbmMeshBasicNodeMaterial';
|
|
12
|
+
export { PBMMeshPhongNodeMaterial, } from './materials/nodes/pbmMeshPhongNodeMaterial';
|
|
13
|
+
export { PBMMeshPhysicalNodeMaterial, } from './materials/nodes/pbmMeshPhysicalNodeMaterial';
|
|
14
|
+
export { PBMMeshPanoOnlyNodeMaterial, } from './materials/nodes/pbmMeshPanoOnlyNodeMaterial';
|
|
15
|
+
export { type LoadResultType } from "./loaders/shared";
|
|
16
|
+
export { loadPbm } from "./loaders/pbm";
|
|
17
|
+
export { loadAt3d } from "./loaders/at3d";
|
|
18
|
+
export { loadDome } from "./loaders/dome";
|
|
19
|
+
export { loadDomez } from "./loaders/domez";
|
|
20
|
+
export { loadPly } from "./loaders/ply";
|
|
21
|
+
export { loadGltf } from "./loaders/gltf";
|
|
22
|
+
export { type TilesetHeader, type TileHeader, type TrajectoryHeader } from './tile3d/header';
|
|
23
|
+
export { Tile, type TileContentData } from './tile3d/tile';
|
|
24
|
+
export { TileNode } from './tile3d/tile-node';
|
|
25
|
+
export { Trajectory, type TrajectoryContentData, } from './tile3d/trajectory';
|
|
26
|
+
export { TrajectoryNode } from './tile3d/trajectory-node';
|
|
27
|
+
export { Tileset, type TilesetOptions } from './tile3d/tileset';
|
|
28
|
+
export { TileCache, type TileCacheOptions, } from './tile3d/tile-cache';
|
|
29
|
+
export { TileRequestScheduler, type TileRequestSchedulerOptions, } from './tile3d/tile-request-scheduler';
|
|
30
|
+
export { type FrameState as TilesetFrameState, type TileRequestOrder, } from './tile3d/types';
|
|
31
|
+
export { Tile3D,
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
* use Tile3D insread.
|
|
35
|
+
*/
|
|
36
|
+
Tile3D as Tile3DModel, type Tile3DOptions,
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated
|
|
39
|
+
* use Tile3DOptions insread.
|
|
40
|
+
*/
|
|
41
|
+
type Tile3DOptions as Tile3DModelLoaderOptions, type TileCoordinateSystem, } from './tile3d';
|
|
42
|
+
export { type ViewLayer } from './view-layer';
|
|
43
|
+
export { Model, } from './model';
|
|
44
|
+
export { ModelScene, type ModelOptions, type Models } from './model-scene';
|
|
45
|
+
export { Parameter, type ParameterValue,
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated
|
|
48
|
+
* use ParameterValue instead
|
|
49
|
+
*/
|
|
50
|
+
type ParameterValue as PBMParameters, type ResolvedParameterValue, type ParameterMaterialValue,
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated
|
|
53
|
+
* use ParameterMaterialValue instead
|
|
54
|
+
*/
|
|
55
|
+
type ParameterMaterialValue as ModelMaterialValues, type ParameterTilesetValue } from './parameter';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { type ViewLayer } from './view-layer';
|
|
3
|
+
import { type Model } from './model';
|
|
4
|
+
import { type Tile } from './tile3d/tile';
|
|
5
|
+
export interface Intersection extends THREE.Intersection {
|
|
6
|
+
/** 楼层 */
|
|
7
|
+
floorIndex: number;
|
|
8
|
+
/**
|
|
9
|
+
* 楼层
|
|
10
|
+
* @deprecated
|
|
11
|
+
* use floorIndex instead.
|
|
12
|
+
*/
|
|
13
|
+
floor: number;
|
|
14
|
+
model?: Model;
|
|
15
|
+
viewLayer?: ViewLayer;
|
|
16
|
+
tile?: Tile;
|
|
17
|
+
}
|
|
18
|
+
export declare function sortIntersects(intersects: Intersection[], sortByDistance?: boolean, firstHitOnly?: boolean): Intersection[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Fetcher } from "../../utils/ajax";
|
|
2
|
+
import { LoadResultType } from './shared';
|
|
3
|
+
import { TextureOptions } from "../../types/imageOptions";
|
|
4
|
+
export declare function loadAt3d(url: string, options?: {
|
|
5
|
+
upAxis?: 'Y' | 'Z';
|
|
6
|
+
light?: boolean;
|
|
7
|
+
textureOptions?: TextureOptions;
|
|
8
|
+
textureBaseUri?: string;
|
|
9
|
+
textureArray?: string[];
|
|
10
|
+
fetcher?: Fetcher;
|
|
11
|
+
onDownloadProgress?: (percent: number, loaded?: number, total?: number) => void;
|
|
12
|
+
}): Promise<LoadResultType>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Fetcher } from '../../utils/ajax';
|
|
2
|
+
import { LoadResultType } from './shared';
|
|
3
|
+
export declare function loadB3dm(url: string, options?: {
|
|
4
|
+
modelUpAxis?: 'Y' | 'Z';
|
|
5
|
+
upAxis?: 'Y' | 'Z';
|
|
6
|
+
light?: boolean;
|
|
7
|
+
fetcher?: Fetcher;
|
|
8
|
+
onDownloadProgress?: (percent: number, loaded?: number, total?: number) => void;
|
|
9
|
+
jsonModify?: (json: any) => any;
|
|
10
|
+
}): Promise<LoadResultType>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { LoadResultType } from './shared';
|
|
3
|
+
import { Fetcher } from "../../utils/ajax";
|
|
4
|
+
import { WorkModel } from "../../work";
|
|
5
|
+
import { PBMMesh } from "../objects/pbmMesh";
|
|
6
|
+
import { TextureOptions } from "../../types/imageOptions";
|
|
7
|
+
export declare function loadDome(url: string, options?: {
|
|
8
|
+
upAxis?: 'Y' | 'Z';
|
|
9
|
+
light?: boolean;
|
|
10
|
+
textureOptions?: TextureOptions;
|
|
11
|
+
textureBaseUri?: string;
|
|
12
|
+
fetcher?: Fetcher;
|
|
13
|
+
onDownloadProgress?: (percent: number, loaded?: number, total?: number) => void;
|
|
14
|
+
}): Promise<LoadResultType>;
|
|
15
|
+
declare function parse(domeBuffer: ArrayLike<number>, light: boolean, textureBase: WorkModel["textureBase"], textureOptions: TextureOptions, fetcher: Fetcher): Promise<{
|
|
16
|
+
createAt: number;
|
|
17
|
+
description: string;
|
|
18
|
+
objects: (THREE.Group<THREE.Object3DEventMap> | PBMMesh)[];
|
|
19
|
+
textures: THREE.Texture<unknown>[];
|
|
20
|
+
dispose: () => void;
|
|
21
|
+
}>;
|
|
22
|
+
export { parse };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LoadResultType } from "./shared";
|
|
2
|
+
import { Fetcher } from "../../utils/ajax";
|
|
3
|
+
import { TextureOptions } from "../../types/imageOptions";
|
|
4
|
+
export declare function loadDomez(url: string, options?: {
|
|
5
|
+
upAxis?: 'Y' | 'Z';
|
|
6
|
+
light?: boolean;
|
|
7
|
+
textureOptions?: TextureOptions;
|
|
8
|
+
textureBaseUri?: string;
|
|
9
|
+
fetcher?: Fetcher;
|
|
10
|
+
onDownloadProgress?: (percent: number, loaded?: number, total?: number) => void;
|
|
11
|
+
}): Promise<LoadResultType>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Fetcher } from "../../utils/ajax";
|
|
2
|
+
import { LoadResultType } from './shared';
|
|
3
|
+
export declare function loadFbx(url: string, options?: {
|
|
4
|
+
upAxis?: 'Y' | 'Z';
|
|
5
|
+
light?: boolean;
|
|
6
|
+
fetcher?: Fetcher;
|
|
7
|
+
onDownloadProgress?: (percent: number, loaded?: number, total?: number) => void;
|
|
8
|
+
}): Promise<LoadResultType>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseExtension } from './base';
|
|
2
|
+
import type { Parser } from '../parser';
|
|
3
|
+
import type { GlTFResult } from '../type';
|
|
4
|
+
/**
|
|
5
|
+
* Specification https://github.com/KhronosGroup/glTF/blob/main/extensions/1.0/Vendor/CESIUM_RTC/README.md
|
|
6
|
+
*/
|
|
7
|
+
export declare class CESIUM_RTC extends BaseExtension {
|
|
8
|
+
emitResult(result: GlTFResult, parser: Parser): void | Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseExtension } from './base';
|
|
2
|
+
import type { Parser } from '../parser';
|
|
3
|
+
/**
|
|
4
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_meshopt_compression
|
|
5
|
+
*/
|
|
6
|
+
export declare class EXT_meshopt_compression extends BaseExtension {
|
|
7
|
+
loadBufferView(index: number, parser: Parser): Promise<ArrayBuffer> | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
/**
|
|
5
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_texture_webp
|
|
6
|
+
*/
|
|
7
|
+
export declare class EXT_texture_webp extends BaseExtension {
|
|
8
|
+
private supportsWep;
|
|
9
|
+
prepare(parser: Parser): void | Promise<void>;
|
|
10
|
+
loadTexture(index: number, parser: Parser): null | Promise<THREE.Texture>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseExtension } from './base';
|
|
2
|
+
import type { Parser } from '../parser';
|
|
3
|
+
/**
|
|
4
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/main/extensions/1.0/Khronos/KHR_binary_glTF
|
|
5
|
+
*/
|
|
6
|
+
export declare class KHR_binary_glTF extends BaseExtension {
|
|
7
|
+
static HEADER_MAGIC: string;
|
|
8
|
+
static HEADER_LENGTH: number;
|
|
9
|
+
static CHUNK_TYPES: {
|
|
10
|
+
JSON: number;
|
|
11
|
+
BIN: number;
|
|
12
|
+
};
|
|
13
|
+
static getMagic(data: ArrayBuffer): string;
|
|
14
|
+
header: {
|
|
15
|
+
magic: string;
|
|
16
|
+
version: number;
|
|
17
|
+
length: number;
|
|
18
|
+
};
|
|
19
|
+
content: string;
|
|
20
|
+
body: ArrayBuffer | null;
|
|
21
|
+
constructor();
|
|
22
|
+
loadGlbBinary(data: ArrayBuffer): void;
|
|
23
|
+
loadBuffer(index: number, parser: Parser): Promise<ArrayBuffer> | null;
|
|
24
|
+
clear(): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { MeshPrimitive } from '../glTF';
|
|
5
|
+
/**
|
|
6
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_draco_mesh_compression
|
|
7
|
+
*/
|
|
8
|
+
export declare class KHR_draco_mesh_compression extends BaseExtension {
|
|
9
|
+
loadGeometry(primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.BufferGeometry>;
|
|
10
|
+
private decodePrimitive;
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { Mesh, MeshPrimitive } from '../glTF';
|
|
5
|
+
import type { GaussianSplattingExtensionSpz2 } from './KHR_gaussian_splatting_compression_spz_2';
|
|
6
|
+
export interface GaussianSplattingExtensionOld {
|
|
7
|
+
antialiased: boolean;
|
|
8
|
+
bufferView: number;
|
|
9
|
+
compression: {
|
|
10
|
+
extension: "KHR_gaussian_splatting_compression_spz";
|
|
11
|
+
};
|
|
12
|
+
count: number;
|
|
13
|
+
}
|
|
14
|
+
export interface GaussianSplattingExtension {
|
|
15
|
+
colorSpace: "srgb_rec709_display" | "lin_rec709_display";
|
|
16
|
+
kernel: "ellipse";
|
|
17
|
+
sortingMethod: "cameraDistance";
|
|
18
|
+
projection: "perspective";
|
|
19
|
+
extensions: {
|
|
20
|
+
KHR_gaussian_splatting_compression_spz_2?: GaussianSplattingExtensionSpz2;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare class KHR_gaussian_splatting extends BaseExtension {
|
|
24
|
+
loadMeshPrimitive(meshDef: Mesh, primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.Points | THREE.Line | THREE.Mesh>;
|
|
25
|
+
private loadGaussianSplating;
|
|
26
|
+
}
|
package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { PBMGaussianSplattingObject } from '../../../objects/pbmGaussianSplattingObject';
|
|
5
|
+
export declare const EXTENSION_NAME = "KHR_gaussian_splatting_compression_spz";
|
|
6
|
+
export declare class KHR_gaussian_splatting_compression_spz extends BaseExtension {
|
|
7
|
+
load(gaussianSplattingExtension: {
|
|
8
|
+
bufferView: number;
|
|
9
|
+
}, parser: Parser): Promise<THREE.Points>;
|
|
10
|
+
loadSpz(buffer: Uint8Array): Promise<PBMGaussianSplattingObject>;
|
|
11
|
+
}
|
package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { PBMGaussianSplattingObject } from '../../../objects/pbmGaussianSplattingObject';
|
|
5
|
+
export interface GaussianSplattingExtensionSpz2 {
|
|
6
|
+
bufferView: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const EXTENSION_NAME = "KHR_gaussian_splatting_compression_spz_2";
|
|
9
|
+
export declare class KHR_gaussian_splatting_compression_spz_2 extends BaseExtension {
|
|
10
|
+
constructor();
|
|
11
|
+
load(gaussianSplattingExtension: GaussianSplattingExtensionSpz2, parser: Parser): Promise<THREE.Points>;
|
|
12
|
+
loadSpz(buffer: Uint8Array): Promise<PBMGaussianSplattingObject>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { MeshPrimitive } from '../glTF';
|
|
5
|
+
/**
|
|
6
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_clearcoat
|
|
7
|
+
*/
|
|
8
|
+
export declare class KHR_materials_clearcoat extends BaseExtension {
|
|
9
|
+
extendMaterial(material: THREE.Material, primitiveDef: MeshPrimitive, parser: Parser): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { MeshPrimitive } from '../glTF';
|
|
5
|
+
/**
|
|
6
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_emissive_strength
|
|
7
|
+
*/
|
|
8
|
+
export declare class KHR_materials_emissive_strength extends BaseExtension {
|
|
9
|
+
extendMaterial(material: THREE.Material, primitiveDef: MeshPrimitive, parser: Parser): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { MeshPrimitive } from '../glTF';
|
|
5
|
+
/**
|
|
6
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_sheen
|
|
7
|
+
*/
|
|
8
|
+
export declare class KHR_materials_sheen extends BaseExtension {
|
|
9
|
+
extendMaterial(material: THREE.Material, primitiveDef: MeshPrimitive, parser: Parser): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { MeshPrimitive } from '../glTF';
|
|
5
|
+
/**
|
|
6
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_transmission
|
|
7
|
+
*/
|
|
8
|
+
export declare class KHR_materials_transmission extends BaseExtension {
|
|
9
|
+
extendMaterial(material: THREE.Material, primitiveDef: MeshPrimitive, parser: Parser): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseExtension } from './base';
|
|
2
|
+
declare const EXTENSION_NAME = "KHR_materials_unlit";
|
|
3
|
+
/**
|
|
4
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_unlit
|
|
5
|
+
*
|
|
6
|
+
* WebGPU 下:material 类已在 parser.loadMaterialAsPBMMeshMaterial 阶段根据是否带
|
|
7
|
+
* `KHR_materials_unlit` 预先选择了 PBMMeshBasicNodeMaterial / PBMMeshPhysicalMaterial,
|
|
8
|
+
* 因此这里无需再做 shaderType 切换(旧 WebGL 版本的逻辑),保持空实现即可。
|
|
9
|
+
*/
|
|
10
|
+
export declare class KHR_materials_unlit extends BaseExtension {
|
|
11
|
+
}
|
|
12
|
+
export { EXTENSION_NAME };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { Node } from '../glTF';
|
|
5
|
+
/**
|
|
6
|
+
* Specification: https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_node_visibility
|
|
7
|
+
*/
|
|
8
|
+
export declare class KHR_node_visibility extends BaseExtension {
|
|
9
|
+
extendNode(node: THREE.Object3D, nodeDef: Node, parser: Parser): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
/**
|
|
5
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_basisu
|
|
6
|
+
*/
|
|
7
|
+
export declare class KHR_texture_basisu extends BaseExtension {
|
|
8
|
+
loadTexture(index: number, parser: Parser): Promise<THREE.Texture> | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { TextureInfo } from '../glTF';
|
|
5
|
+
/**
|
|
6
|
+
* Specification: https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_texture_transform
|
|
7
|
+
*/
|
|
8
|
+
export declare class KHR_texture_transform extends BaseExtension {
|
|
9
|
+
extendTexture(texture: THREE.Texture, mapDef: TextureInfo, parser: Parser): null | THREE.Texture;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { MeshPrimitive } from '../glTF';
|
|
5
|
+
export declare class REALSEE_materials_lightmap extends BaseExtension {
|
|
6
|
+
extendMaterial(material: THREE.Material, primitiveDef: MeshPrimitive, parser: Parser): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import type { Mesh, MeshPrimitive, TextureInfo, Node } from '../glTF';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import type { GlTFResult } from '../type';
|
|
5
|
+
import type { ImageBitmapLike } from '../../../../texture/imageBitmap';
|
|
6
|
+
export declare class BaseExtension {
|
|
7
|
+
markDefs(parser: Parser): void;
|
|
8
|
+
prepare(parser: Parser): void | Promise<void>;
|
|
9
|
+
emitResult(result: GlTFResult, parser: Parser): void | Promise<void>;
|
|
10
|
+
createPrimitiveKey(primitiveDef: MeshPrimitive, parser: Parser): void | string;
|
|
11
|
+
extendTexture(texture: THREE.Texture, mapDef: TextureInfo, parser: Parser): null | THREE.Texture;
|
|
12
|
+
loadBuffer(index: number, parser: Parser): null | Promise<ArrayBuffer>;
|
|
13
|
+
loadBufferView(index: number, parser: Parser): null | Promise<ArrayBuffer>;
|
|
14
|
+
loadImage(index: number, parser: Parser): null | Promise<ImageBitmapLike>;
|
|
15
|
+
loadTexture(index: number, parser: Parser): null | Promise<THREE.Texture>;
|
|
16
|
+
loadGeometry(primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.BufferGeometry>;
|
|
17
|
+
loadMaterial(primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.Material>;
|
|
18
|
+
loadMeshPrimitive(meshDef: Mesh, primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.Points | THREE.Line | THREE.Mesh>;
|
|
19
|
+
extendMaterial(material: THREE.Material, primitiveDef: MeshPrimitive, parser: Parser): Promise<void>;
|
|
20
|
+
loadMesh(index: number, parser: Parser): null | Promise<THREE.Object3D>;
|
|
21
|
+
extendNode(node: THREE.Object3D, nodeDef: Node, parser: Parser): Promise<void>;
|
|
22
|
+
loadNodeAttachments(index: number, parser: Parser): null | Promise<THREE.Object3D>;
|
|
23
|
+
loadCamera(index: number, parser: Parser): null | Promise<THREE.Camera>;
|
|
24
|
+
loadAnimation(index: number, parser: Parser): null | Promise<THREE.AnimationClip>;
|
|
25
|
+
}
|