@egret/engine 0.0.0-stage → 7.0.2
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/LICENSE +201 -0
- package/NOTICE +21 -0
- package/README.md +101 -2
- package/README.zh-CN.md +102 -0
- package/dist/Engine.d.ts +77 -0
- package/dist/Engine.js +469 -0
- package/dist/animation/index.d.ts +6 -0
- package/dist/animation/index.js +5 -0
- package/dist/animation/sequenceController.d.ts +22 -0
- package/dist/animation/sequenceController.js +618 -0
- package/dist/animation/sequenceCoordinator.d.ts +26 -0
- package/dist/animation/sequenceCoordinator.js +161 -0
- package/dist/animation/sequenceInput.d.ts +25 -0
- package/dist/animation/sequenceInput.js +108 -0
- package/dist/animation/sequenceMath.d.ts +35 -0
- package/dist/animation/sequenceMath.js +164 -0
- package/dist/animation/sequenceResetSlot.d.ts +7 -0
- package/dist/animation/sequenceResetSlot.js +367 -0
- package/dist/animation/sequenceResetTypes.d.ts +48 -0
- package/dist/animation/sequenceResetTypes.js +2 -0
- package/dist/animation/types.d.ts +75 -0
- package/dist/animation/types.js +2 -0
- package/dist/assetBundle.d.ts +54 -0
- package/dist/assetBundle.js +173 -0
- package/dist/assetGroup.d.ts +17 -0
- package/dist/assetGroup.js +332 -0
- package/dist/assetGroupTypes.d.ts +17 -0
- package/dist/assetGroupTypes.js +2 -0
- package/dist/audio.d.ts +4 -0
- package/dist/audio.js +4 -0
- package/dist/audioCues.d.ts +47 -0
- package/dist/audioCues.js +127 -0
- package/dist/audioMixer.d.ts +7 -0
- package/dist/audioMixer.js +785 -0
- package/dist/audioTypes.d.ts +246 -0
- package/dist/audioTypes.js +3 -0
- package/dist/bitmapBindingTicket.d.ts +24 -0
- package/dist/bitmapBindingTicket.js +215 -0
- package/dist/bitmapButton.d.ts +4 -0
- package/dist/bitmapButton.js +407 -0
- package/dist/bitmapButtonTypes.d.ts +31 -0
- package/dist/bitmapButtonTypes.js +2 -0
- package/dist/bitmapFontParse.d.ts +10 -0
- package/dist/bitmapFontParse.js +246 -0
- package/dist/bitmapFontTypes.d.ts +112 -0
- package/dist/bitmapFontTypes.js +2 -0
- package/dist/bitmapResourceSlot.d.ts +26 -0
- package/dist/bitmapResourceSlot.js +340 -0
- package/dist/bitmapText.d.ts +6 -0
- package/dist/bitmapText.js +320 -0
- package/dist/bitmapfont.d.ts +5 -0
- package/dist/bitmapfont.js +5 -0
- package/dist/camera.d.ts +4 -0
- package/dist/camera.js +4 -0
- package/dist/camera2d.d.ts +7 -0
- package/dist/camera2d.js +419 -0
- package/dist/cameraTypes.d.ts +126 -0
- package/dist/cameraTypes.js +2 -0
- package/dist/closeHost.d.ts +4 -0
- package/dist/closeHost.js +66 -0
- package/dist/contentArtifacts.d.ts +12 -0
- package/dist/contentArtifacts.js +153 -0
- package/dist/contentAtlasPages.d.ts +13 -0
- package/dist/contentAtlasPages.js +117 -0
- package/dist/contentLoader.d.ts +6 -0
- package/dist/contentLoader.js +327 -0
- package/dist/contentTypes.d.ts +35 -0
- package/dist/contentTypes.js +2 -0
- package/dist/createEngine.d.ts +7 -0
- package/dist/createEngine.js +25 -0
- package/dist/createEngineForProfile.d.ts +5 -0
- package/dist/createEngineForProfile.js +45 -0
- package/dist/displaySubtreeTicket.d.ts +25 -0
- package/dist/displaySubtreeTicket.js +76 -0
- package/dist/fontContentLoader.d.ts +6 -0
- package/dist/fontContentLoader.js +298 -0
- package/dist/fontContentTypes.d.ts +39 -0
- package/dist/fontContentTypes.js +2 -0
- package/dist/gameClock.d.ts +24 -0
- package/dist/gameClock.js +246 -0
- package/dist/gameClockTypes.d.ts +37 -0
- package/dist/gameClockTypes.js +2 -0
- package/dist/gameRun.d.ts +53 -0
- package/dist/gameRun.js +97 -0
- package/dist/gamepad.d.ts +5 -0
- package/dist/gamepad.js +5 -0
- package/dist/gamepadInput.d.ts +4 -0
- package/dist/gamepadInput.js +281 -0
- package/dist/gamepadKeys.d.ts +4 -0
- package/dist/gamepadKeys.js +205 -0
- package/dist/gamepadTypes.d.ts +142 -0
- package/dist/gamepadTypes.js +3 -0
- package/dist/hover.d.ts +4 -0
- package/dist/hover.js +4 -0
- package/dist/hoverInput.d.ts +8 -0
- package/dist/hoverInput.js +503 -0
- package/dist/hoverInputTypes.d.ts +129 -0
- package/dist/hoverInputTypes.js +2 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +21 -0
- package/dist/input.d.ts +6 -0
- package/dist/input.js +5 -0
- package/dist/inputActions.d.ts +86 -0
- package/dist/inputActions.js +330 -0
- package/dist/internal/contentFactoryState.d.ts +19 -0
- package/dist/internal/contentFactoryState.js +42 -0
- package/dist/internal/mouseInputFactoryState.d.ts +57 -0
- package/dist/internal/mouseInputFactoryState.js +125 -0
- package/dist/internal/sequenceControllerFactoryState.d.ts +42 -0
- package/dist/internal/sequenceControllerFactoryState.js +98 -0
- package/dist/internal/textFieldFactoryState.d.ts +11 -0
- package/dist/internal/textFieldFactoryState.js +32 -0
- package/dist/internal/texturedFrameState.d.ts +4 -0
- package/dist/internal/texturedFrameState.js +12 -0
- package/dist/internal/uiFactoryState.d.ts +68 -0
- package/dist/internal/uiFactoryState.js +173 -0
- package/dist/internal/uiRootState.d.ts +67 -0
- package/dist/internal/uiRootState.js +103 -0
- package/dist/keyboardInput.d.ts +13 -0
- package/dist/keyboardInput.js +579 -0
- package/dist/keyboardInputTypes.d.ts +93 -0
- package/dist/keyboardInputTypes.js +2 -0
- package/dist/kit.d.ts +16 -0
- package/dist/kit.js +10 -0
- package/dist/layout.d.ts +5 -0
- package/dist/layout.js +132 -0
- package/dist/layoutTypes.d.ts +28 -0
- package/dist/layoutTypes.js +2 -0
- package/dist/manifestAssetGroup.d.ts +10 -0
- package/dist/manifestAssetGroup.js +477 -0
- package/dist/manifestResourceState.d.ts +17 -0
- package/dist/manifestResourceState.js +58 -0
- package/dist/manifestResourceTypes.d.ts +26 -0
- package/dist/manifestResourceTypes.js +2 -0
- package/dist/motion.d.ts +35 -0
- package/dist/motion.js +206 -0
- package/dist/mouseInput.d.ts +102 -0
- package/dist/mouseInput.js +562 -0
- package/dist/mouseInputTypes.d.ts +41 -0
- package/dist/mouseInputTypes.js +2 -0
- package/dist/paragraph.d.ts +8 -0
- package/dist/paragraph.js +7 -0
- package/dist/particleEmitter.d.ts +4 -0
- package/dist/particleEmitter.js +300 -0
- package/dist/particleTypes.d.ts +115 -0
- package/dist/particleTypes.js +2 -0
- package/dist/particles.d.ts +4 -0
- package/dist/particles.js +4 -0
- package/dist/physics2d.d.ts +4 -0
- package/dist/physics2d.js +4 -0
- package/dist/physics2dGeometry.d.ts +39 -0
- package/dist/physics2dGeometry.js +230 -0
- package/dist/physics2dTypes.d.ts +221 -0
- package/dist/physics2dTypes.js +2 -0
- package/dist/physics2dWorld.d.ts +4 -0
- package/dist/physics2dWorld.js +823 -0
- package/dist/pointerInput.d.ts +12 -0
- package/dist/pointerInput.js +300 -0
- package/dist/pointerInputTypes.d.ts +41 -0
- package/dist/pointerInputTypes.js +2 -0
- package/dist/random.d.ts +30 -0
- package/dist/random.js +131 -0
- package/dist/rendering/ownedPreparationFailure2D.d.ts +5 -0
- package/dist/rendering/ownedPreparationFailure2D.js +33 -0
- package/dist/rendering/packSharedDraws2D.d.ts +50 -0
- package/dist/rendering/packSharedDraws2D.js +379 -0
- package/dist/rendering/packedOrientation.d.ts +4 -0
- package/dist/rendering/packedOrientation.js +7 -0
- package/dist/rendering/prepareRectangles2D.d.ts +92 -0
- package/dist/rendering/prepareRectangles2D.js +481 -0
- package/dist/rendering/prepareSharedDraws2D.d.ts +90 -0
- package/dist/rendering/prepareSharedDraws2D.js +663 -0
- package/dist/rendering/preparedBatches2D.d.ts +17 -0
- package/dist/rendering/preparedBatches2D.js +30 -0
- package/dist/rendering/preparedSharedBatches2D.d.ts +44 -0
- package/dist/rendering/preparedSharedBatches2D.js +247 -0
- package/dist/rendering/sharedColor2D.d.ts +52 -0
- package/dist/rendering/sharedColor2D.js +191 -0
- package/dist/rendering/sharedEffects2D.d.ts +23 -0
- package/dist/rendering/sharedEffects2D.js +126 -0
- package/dist/rendering/sharedPreparationRetention2D.d.ts +120 -0
- package/dist/rendering/sharedPreparationRetention2D.js +357 -0
- package/dist/rendering/srgbBytes.d.ts +3 -0
- package/dist/rendering/srgbBytes.js +64 -0
- package/dist/rendering/texturedPreparationBudget2D.d.ts +31 -0
- package/dist/rendering/texturedPreparationBudget2D.js +81 -0
- package/dist/rendering/world3d/Animation3D.d.ts +104 -0
- package/dist/rendering/world3d/Animation3D.js +384 -0
- package/dist/rendering/world3d/AnimationTexture3D.d.ts +163 -0
- package/dist/rendering/world3d/AnimationTexture3D.js +603 -0
- package/dist/rendering/world3d/Batch3D.d.ts +75 -0
- package/dist/rendering/world3d/Batch3D.js +332 -0
- package/dist/rendering/world3d/Camera3D.d.ts +62 -0
- package/dist/rendering/world3d/Camera3D.js +132 -0
- package/dist/rendering/world3d/Character3D.d.ts +127 -0
- package/dist/rendering/world3d/Character3D.js +305 -0
- package/dist/rendering/world3d/Cloth3D.d.ts +130 -0
- package/dist/rendering/world3d/Cloth3D.js +503 -0
- package/dist/rendering/world3d/Compression3D.d.ts +22 -0
- package/dist/rendering/world3d/Compression3D.js +703 -0
- package/dist/rendering/world3d/Curves3D.d.ts +119 -0
- package/dist/rendering/world3d/Curves3D.js +460 -0
- package/dist/rendering/world3d/Decal3D.d.ts +43 -0
- package/dist/rendering/world3d/Decal3D.js +242 -0
- package/dist/rendering/world3d/Export3D.d.ts +13 -0
- package/dist/rendering/world3d/Export3D.js +263 -0
- package/dist/rendering/world3d/Geometry3D.d.ts +95 -0
- package/dist/rendering/world3d/Geometry3D.js +335 -0
- package/dist/rendering/world3d/GeometryBuilder3D.d.ts +53 -0
- package/dist/rendering/world3d/GeometryBuilder3D.js +196 -0
- package/dist/rendering/world3d/Gizmo3D.d.ts +80 -0
- package/dist/rendering/world3d/Gizmo3D.js +514 -0
- package/dist/rendering/world3d/Gltf3D.d.ts +73 -0
- package/dist/rendering/world3d/Gltf3D.js +996 -0
- package/dist/rendering/world3d/GpuParticles3D.d.ts +109 -0
- package/dist/rendering/world3d/GpuParticles3D.js +401 -0
- package/dist/rendering/world3d/Hdr3D.d.ts +35 -0
- package/dist/rendering/world3d/Hdr3D.js +191 -0
- package/dist/rendering/world3d/Jelly3D.d.ts +77 -0
- package/dist/rendering/world3d/Jelly3D.js +267 -0
- package/dist/rendering/world3d/Ktx23D.d.ts +30 -0
- package/dist/rendering/world3d/Ktx23D.js +112 -0
- package/dist/rendering/world3d/Light3D.d.ts +84 -0
- package/dist/rendering/world3d/Light3D.js +97 -0
- package/dist/rendering/world3d/Material3D.d.ts +253 -0
- package/dist/rendering/world3d/Material3D.js +269 -0
- package/dist/rendering/world3d/Mesh3D.d.ts +112 -0
- package/dist/rendering/world3d/Mesh3D.js +337 -0
- package/dist/rendering/world3d/Meshopt3D.d.ts +15 -0
- package/dist/rendering/world3d/Meshopt3D.js +276 -0
- package/dist/rendering/world3d/Navigation3D.d.ts +213 -0
- package/dist/rendering/world3d/Navigation3D.js +1043 -0
- package/dist/rendering/world3d/Object3D.d.ts +118 -0
- package/dist/rendering/world3d/Object3D.js +315 -0
- package/dist/rendering/world3d/Particles3D.d.ts +90 -0
- package/dist/rendering/world3d/Particles3D.js +277 -0
- package/dist/rendering/world3d/Physics3D.d.ts +430 -0
- package/dist/rendering/world3d/Physics3D.js +2840 -0
- package/dist/rendering/world3d/PhysicsHull3D.d.ts +37 -0
- package/dist/rendering/world3d/PhysicsHull3D.js +229 -0
- package/dist/rendering/world3d/PhysicsMesh3D.d.ts +41 -0
- package/dist/rendering/world3d/PhysicsMesh3D.js +340 -0
- package/dist/rendering/world3d/PhysicsQueries3D.d.ts +24 -0
- package/dist/rendering/world3d/PhysicsQueries3D.js +323 -0
- package/dist/rendering/world3d/PhysicsRemote3D.d.ts +179 -0
- package/dist/rendering/world3d/PhysicsRemote3D.js +536 -0
- package/dist/rendering/world3d/Ragdoll3D.d.ts +74 -0
- package/dist/rendering/world3d/Ragdoll3D.js +202 -0
- package/dist/rendering/world3d/Raycast3D.d.ts +40 -0
- package/dist/rendering/world3d/Raycast3D.js +247 -0
- package/dist/rendering/world3d/RenderList3D.d.ts +91 -0
- package/dist/rendering/world3d/RenderList3D.js +502 -0
- package/dist/rendering/world3d/Retarget3D.d.ts +21 -0
- package/dist/rendering/world3d/Retarget3D.js +185 -0
- package/dist/rendering/world3d/Rig3D.d.ts +57 -0
- package/dist/rendering/world3d/Rig3D.js +219 -0
- package/dist/rendering/world3d/Sdf3D.d.ts +181 -0
- package/dist/rendering/world3d/Sdf3D.js +1136 -0
- package/dist/rendering/world3d/SdfLod3D.d.ts +17 -0
- package/dist/rendering/world3d/SdfLod3D.js +56 -0
- package/dist/rendering/world3d/Serialize3D.d.ts +66 -0
- package/dist/rendering/world3d/Serialize3D.js +629 -0
- package/dist/rendering/world3d/Simplify3D.d.ts +29 -0
- package/dist/rendering/world3d/Simplify3D.js +426 -0
- package/dist/rendering/world3d/StateMachine3D.d.ts +87 -0
- package/dist/rendering/world3d/StateMachine3D.js +280 -0
- package/dist/rendering/world3d/SurfaceMaterial3D.d.ts +26 -0
- package/dist/rendering/world3d/SurfaceMaterial3D.js +138 -0
- package/dist/rendering/world3d/Terrain3D.d.ts +248 -0
- package/dist/rendering/world3d/Terrain3D.js +827 -0
- package/dist/rendering/world3d/Text3D.d.ts +95 -0
- package/dist/rendering/world3d/Text3D.js +560 -0
- package/dist/rendering/world3d/Texture3D.d.ts +148 -0
- package/dist/rendering/world3d/Texture3D.js +270 -0
- package/dist/rendering/world3d/Trail3D.d.ts +62 -0
- package/dist/rendering/world3d/Trail3D.js +195 -0
- package/dist/rendering/world3d/Vehicle3D.d.ts +102 -0
- package/dist/rendering/world3d/Vehicle3D.js +228 -0
- package/dist/rendering/world3d/VolumetricFog3D.d.ts +57 -0
- package/dist/rendering/world3d/VolumetricFog3D.js +230 -0
- package/dist/rendering/world3d/Water3D.d.ts +165 -0
- package/dist/rendering/world3d/Water3D.js +607 -0
- package/dist/rendering/world3d/core3D.d.ts +36 -0
- package/dist/rendering/world3d/core3D.js +99 -0
- package/dist/rendering/world3d/debug3D.d.ts +69 -0
- package/dist/rendering/world3d/debug3D.js +262 -0
- package/dist/rendering/world3d/decoders3D.d.ts +42 -0
- package/dist/rendering/world3d/decoders3D.js +133 -0
- package/dist/rendering/world3d/geometries3D.d.ts +111 -0
- package/dist/rendering/world3d/geometries3D.js +610 -0
- package/dist/rendering/world3d/helpers3D.d.ts +67 -0
- package/dist/rendering/world3d/helpers3D.js +178 -0
- package/dist/rendering/world3d/index.d.ts +103 -0
- package/dist/rendering/world3d/index.js +62 -0
- package/dist/rendering/world3d/math3D.d.ts +114 -0
- package/dist/rendering/world3d/math3D.js +675 -0
- package/dist/rendering/world3d/primitives3D.d.ts +67 -0
- package/dist/rendering/world3d/primitives3D.js +197 -0
- package/dist/resources.d.ts +8 -0
- package/dist/resources.js +6 -0
- package/dist/saveStore.d.ts +71 -0
- package/dist/saveStore.js +182 -0
- package/dist/semanticList.d.ts +126 -0
- package/dist/semanticList.js +175 -0
- package/dist/semanticTree.d.ts +10 -0
- package/dist/semanticTree.js +539 -0
- package/dist/semanticTypes.d.ts +175 -0
- package/dist/semanticTypes.js +2 -0
- package/dist/semantics.d.ts +6 -0
- package/dist/semantics.js +5 -0
- package/dist/sequencePlayback.d.ts +19 -0
- package/dist/sequencePlayback.js +391 -0
- package/dist/sequencePlaybackTypes.d.ts +24 -0
- package/dist/sequencePlaybackTypes.js +2 -0
- package/dist/sequenceTargetClaims.d.ts +10 -0
- package/dist/sequenceTargetClaims.js +31 -0
- package/dist/srgbBytes.d.ts +3 -0
- package/dist/srgbBytes.js +64 -0
- package/dist/startEngine.d.ts +5 -0
- package/dist/startEngine.js +31 -0
- package/dist/surfaceOwnership.d.ts +3 -0
- package/dist/surfaceOwnership.js +15 -0
- package/dist/text.d.ts +24 -0
- package/dist/text.js +4 -0
- package/dist/textField.d.ts +6 -0
- package/dist/textField.js +6 -0
- package/dist/textTable.d.ts +41 -0
- package/dist/textTable.js +114 -0
- package/dist/tileMapDraw.d.ts +7 -0
- package/dist/tileMapDraw.js +310 -0
- package/dist/tiledImport.d.ts +9 -0
- package/dist/tiledImport.js +357 -0
- package/dist/tilemap.d.ts +5 -0
- package/dist/tilemap.js +5 -0
- package/dist/tilemapTypes.d.ts +182 -0
- package/dist/tilemapTypes.js +2 -0
- package/dist/timer.d.ts +34 -0
- package/dist/timer.js +119 -0
- package/dist/tween.d.ts +15 -0
- package/dist/tween.js +329 -0
- package/dist/tweenTypes.d.ts +31 -0
- package/dist/tweenTypes.js +2 -0
- package/dist/ui/controlKeys.d.ts +113 -0
- package/dist/ui/controlKeys.js +250 -0
- package/dist/ui/controls.d.ts +58 -0
- package/dist/ui/controls.js +290 -0
- package/dist/ui/editing.d.ts +3 -0
- package/dist/ui/editing.js +3 -0
- package/dist/ui/index.d.ts +19 -0
- package/dist/ui/index.js +11 -0
- package/dist/ui/keyboardFocus.d.ts +32 -0
- package/dist/ui/keyboardFocus.js +146 -0
- package/dist/ui/layerTypes.d.ts +98 -0
- package/dist/ui/layerTypes.js +2 -0
- package/dist/ui/layers.d.ts +4 -0
- package/dist/ui/layers.js +586 -0
- package/dist/ui/leafContent.d.ts +21 -0
- package/dist/ui/leafContent.js +136 -0
- package/dist/ui/rangeControl.d.ts +53 -0
- package/dist/ui/rangeControl.js +168 -0
- package/dist/ui/scrollControl.d.ts +84 -0
- package/dist/ui/scrollControl.js +222 -0
- package/dist/ui/stateControls.d.ts +90 -0
- package/dist/ui/stateControls.js +331 -0
- package/dist/ui/textEditor.d.ts +54 -0
- package/dist/ui/textEditor.js +371 -0
- package/dist/ui/textEditorTypes.d.ts +85 -0
- package/dist/ui/textEditorTypes.js +2 -0
- package/dist/ui/textFieldControl.d.ts +100 -0
- package/dist/ui/textFieldControl.js +260 -0
- package/dist/ui/theme.d.ts +64 -0
- package/dist/ui/theme.js +166 -0
- package/dist/ui/types.d.ts +285 -0
- package/dist/ui/types.js +2 -0
- package/dist/ui/uiRoot.d.ts +4 -0
- package/dist/ui/uiRoot.js +1526 -0
- package/dist/ui/uiRootDisplay.d.ts +46 -0
- package/dist/ui/uiRootDisplay.js +148 -0
- package/dist/ui/uiRootModel.d.ts +114 -0
- package/dist/ui/uiRootModel.js +66 -0
- package/dist/ui/virtualList.d.ts +20 -0
- package/dist/ui/virtualList.js +105 -0
- package/dist/video.d.ts +4 -0
- package/dist/video.js +4 -0
- package/dist/videoPlayer.d.ts +4 -0
- package/dist/videoPlayer.js +215 -0
- package/dist/videoTypes.d.ts +77 -0
- package/dist/videoTypes.js +2 -0
- package/dist/web/BrowserAssetBundle.d.ts +41 -0
- package/dist/web/BrowserAssetBundle.js +136 -0
- package/dist/web/BrowserAudio.d.ts +74 -0
- package/dist/web/BrowserAudio.js +503 -0
- package/dist/web/BrowserFrameLoop.d.ts +69 -0
- package/dist/web/BrowserFrameLoop.js +125 -0
- package/dist/web/BrowserGame.d.ts +174 -0
- package/dist/web/BrowserGame.js +473 -0
- package/dist/web/BrowserGamepadInput.d.ts +38 -0
- package/dist/web/BrowserGamepadInput.js +134 -0
- package/dist/web/BrowserHoverInput.d.ts +25 -0
- package/dist/web/BrowserHoverInput.js +266 -0
- package/dist/web/BrowserImageTextures.d.ts +72 -0
- package/dist/web/BrowserImageTextures.js +169 -0
- package/dist/web/BrowserInputActions.d.ts +63 -0
- package/dist/web/BrowserInputActions.js +345 -0
- package/dist/web/BrowserKeyboardInput.d.ts +4 -0
- package/dist/web/BrowserKeyboardInput.js +223 -0
- package/dist/web/BrowserPlay.d.ts +417 -0
- package/dist/web/BrowserPlay.js +1648 -0
- package/dist/web/BrowserPointerInput.d.ts +4 -0
- package/dist/web/BrowserPointerInput.js +511 -0
- package/dist/web/BrowserPreferences.d.ts +10 -0
- package/dist/web/BrowserPreferences.js +39 -0
- package/dist/web/BrowserSemantics.d.ts +36 -0
- package/dist/web/BrowserSemantics.js +418 -0
- package/dist/web/BrowserStatsPanel.d.ts +56 -0
- package/dist/web/BrowserStatsPanel.js +143 -0
- package/dist/web/BrowserStorage.d.ts +35 -0
- package/dist/web/BrowserStorage.js +132 -0
- package/dist/web/BrowserTextEditor.d.ts +52 -0
- package/dist/web/BrowserTextEditor.js +839 -0
- package/dist/web/BrowserTextInput.d.ts +89 -0
- package/dist/web/BrowserTextInput.js +524 -0
- package/dist/web/BrowserTextureProvider.d.ts +58 -0
- package/dist/web/BrowserTextureProvider.js +935 -0
- package/dist/web/BrowserVideo.d.ts +40 -0
- package/dist/web/BrowserVideo.js +237 -0
- package/dist/web/CanvasKitFontSetProvider.d.ts +32 -0
- package/dist/web/CanvasKitFontSetProvider.js +215 -0
- package/dist/web/CanvasKitParagraphProvider.d.ts +173 -0
- package/dist/web/CanvasKitParagraphProvider.js +692 -0
- package/dist/web/CanvasTextRasterProvider.d.ts +4 -0
- package/dist/web/CanvasTextRasterProvider.js +312 -0
- package/dist/web/ManifestByteSource.d.ts +151 -0
- package/dist/web/ManifestByteSource.js +975 -0
- package/dist/web/ManifestFontContentLoader.d.ts +13 -0
- package/dist/web/ManifestFontContentLoader.js +30 -0
- package/dist/web/MouseInput.d.ts +4 -0
- package/dist/web/MouseInput.js +218 -0
- package/dist/web/WebGL2Host.d.ts +5 -0
- package/dist/web/WebGL2Host.js +2711 -0
- package/dist/web/WebGPUHost.d.ts +100 -0
- package/dist/web/WebGPUHost.js +3430 -0
- package/dist/web/audio.d.ts +3 -0
- package/dist/web/audio.js +4 -0
- package/dist/web/canvasKitParagraphGeometry.d.ts +27 -0
- package/dist/web/canvasKitParagraphGeometry.js +83 -0
- package/dist/web/editing.d.ts +5 -0
- package/dist/web/editing.js +4 -0
- package/dist/web/editorFonts.d.ts +54 -0
- package/dist/web/editorFonts.js +297 -0
- package/dist/web/game.d.ts +5 -0
- package/dist/web/game.js +6 -0
- package/dist/web/gamepad.d.ts +3 -0
- package/dist/web/gamepad.js +4 -0
- package/dist/web/hover.d.ts +3 -0
- package/dist/web/hover.js +4 -0
- package/dist/web/image.d.ts +4 -0
- package/dist/web/image.js +4 -0
- package/dist/web/imageProjections2D.d.ts +16 -0
- package/dist/web/imageProjections2D.js +2 -0
- package/dist/web/input.d.ts +6 -0
- package/dist/web/input.js +4 -0
- package/dist/web/keyboard.d.ts +3 -0
- package/dist/web/keyboard.js +3 -0
- package/dist/web/kit.d.ts +11 -0
- package/dist/web/kit.js +8 -0
- package/dist/web/loop.d.ts +3 -0
- package/dist/web/loop.js +4 -0
- package/dist/web/paragraph.d.ts +6 -0
- package/dist/web/paragraph.js +4 -0
- package/dist/web/play.d.ts +10 -0
- package/dist/web/play.js +9 -0
- package/dist/web/playMusic.d.ts +33 -0
- package/dist/web/playMusic.js +194 -0
- package/dist/web/playSfx.d.ts +36 -0
- package/dist/web/playSfx.js +112 -0
- package/dist/web/playTouch.d.ts +45 -0
- package/dist/web/playTouch.js +141 -0
- package/dist/web/playWidgets.d.ts +71 -0
- package/dist/web/playWidgets.js +431 -0
- package/dist/web/pointer.d.ts +3 -0
- package/dist/web/pointer.js +3 -0
- package/dist/web/prepareSharedSubmission2D.d.ts +27 -0
- package/dist/web/prepareSharedSubmission2D.js +63 -0
- package/dist/web/resources.d.ts +29 -0
- package/dist/web/resources.js +96 -0
- package/dist/web/semantics.d.ts +3 -0
- package/dist/web/semantics.js +4 -0
- package/dist/web/sharedDeviceSession.d.ts +64 -0
- package/dist/web/sharedDeviceSession.js +2 -0
- package/dist/web/sharedEffectShaders.d.ts +13 -0
- package/dist/web/sharedEffectShaders.js +181 -0
- package/dist/web/sharedFrameUpload.d.ts +25 -0
- package/dist/web/sharedFrameUpload.js +2 -0
- package/dist/web/sharedHostDeferred.d.ts +7 -0
- package/dist/web/sharedHostDeferred.js +12 -0
- package/dist/web/sharedRetentionLedger.d.ts +85 -0
- package/dist/web/sharedRetentionLedger.js +391 -0
- package/dist/web/sharedSubmissionStorage2D.d.ts +56 -0
- package/dist/web/sharedSubmissionStorage2D.js +73 -0
- package/dist/web/sharedWebGL2Arena.d.ts +40 -0
- package/dist/web/sharedWebGL2Arena.js +77 -0
- package/dist/web/sharedWebGL2Options.d.ts +33 -0
- package/dist/web/sharedWebGL2Options.js +102 -0
- package/dist/web/sharedWebGL2Shaders.d.ts +33 -0
- package/dist/web/sharedWebGL2Shaders.js +408 -0
- package/dist/web/sharedWebGPUOptions.d.ts +41 -0
- package/dist/web/sharedWebGPUOptions.js +130 -0
- package/dist/web/text.d.ts +3 -0
- package/dist/web/text.js +3 -0
- package/dist/web/textInput.d.ts +3 -0
- package/dist/web/textInput.js +3 -0
- package/dist/web/video.d.ts +3 -0
- package/dist/web/video.js +4 -0
- package/dist/web/webgl2.d.ts +7 -0
- package/dist/web/webgl2.js +4 -0
- package/dist/web/webgl2LayerState.d.ts +50 -0
- package/dist/web/webgl2LayerState.js +102 -0
- package/dist/web/webgl2Native.d.ts +72 -0
- package/dist/web/webgl2Native.js +572 -0
- package/dist/web/webgl2Types.d.ts +150 -0
- package/dist/web/webgl2Types.js +2 -0
- package/dist/web/webgpu.d.ts +6 -0
- package/dist/web/webgpu.js +2 -0
- package/dist/web/webgpuBindingCache.d.ts +26 -0
- package/dist/web/webgpuBindingCache.js +223 -0
- package/dist/web/webgpuBufferPool.d.ts +51 -0
- package/dist/web/webgpuBufferPool.js +58 -0
- package/dist/web/webgpuImageResidency.d.ts +56 -0
- package/dist/web/webgpuImageResidency.js +65 -0
- package/dist/web/webgpuLifetime.d.ts +45 -0
- package/dist/web/webgpuLifetime.js +64 -0
- package/dist/web/webgpuRetentionPool.d.ts +66 -0
- package/dist/web/webgpuRetentionPool.js +85 -0
- package/dist/web/webgpuSharedPass.d.ts +7 -0
- package/dist/web/webgpuSharedPass.js +293 -0
- package/dist/web/webgpuSharedResolvePass.d.ts +3 -0
- package/dist/web/webgpuSharedResolvePass.js +34 -0
- package/dist/web/world3d/Audio3D.d.ts +85 -0
- package/dist/web/world3d/Audio3D.js +271 -0
- package/dist/web/world3d/BrowserPlay3D.d.ts +295 -0
- package/dist/web/world3d/BrowserPlay3D.js +1256 -0
- package/dist/web/world3d/FlyControls3D.d.ts +59 -0
- package/dist/web/world3d/FlyControls3D.js +162 -0
- package/dist/web/world3d/FollowControls3D.d.ts +31 -0
- package/dist/web/world3d/FollowControls3D.js +119 -0
- package/dist/web/world3d/OrbitControls3D.d.ts +58 -0
- package/dist/web/world3d/OrbitControls3D.js +189 -0
- package/dist/web/world3d/TransformControls3D.d.ts +37 -0
- package/dist/web/world3d/TransformControls3D.js +128 -0
- package/dist/web/world3d/WebGL2Renderer3D.d.ts +136 -0
- package/dist/web/world3d/WebGL2Renderer3D.js +1175 -0
- package/dist/web/world3d/WebGPURenderer3D.d.ts +112 -0
- package/dist/web/world3d/WebGPURenderer3D.js +1916 -0
- package/dist/web/world3d/World3DView.d.ts +54 -0
- package/dist/web/world3d/World3DView.js +79 -0
- package/dist/web/world3d/app3D.d.ts +143 -0
- package/dist/web/world3d/app3D.js +305 -0
- package/dist/web/world3d/assets3D.d.ts +39 -0
- package/dist/web/world3d/assets3D.js +112 -0
- package/dist/web/world3d/atmosphere3D.d.ts +56 -0
- package/dist/web/world3d/atmosphere3D.js +193 -0
- package/dist/web/world3d/canvasFont3D.d.ts +21 -0
- package/dist/web/world3d/canvasFont3D.js +165 -0
- package/dist/web/world3d/frame3D.d.ts +144 -0
- package/dist/web/world3d/frame3D.js +388 -0
- package/dist/web/world3d/gpuResources3D.d.ts +98 -0
- package/dist/web/world3d/gpuResources3D.js +901 -0
- package/dist/web/world3d/host3D.d.ts +24 -0
- package/dist/web/world3d/host3D.js +61 -0
- package/dist/web/world3d/index.d.ts +40 -0
- package/dist/web/world3d/index.js +24 -0
- package/dist/web/world3d/loaders3D.d.ts +27 -0
- package/dist/web/world3d/loaders3D.js +138 -0
- package/dist/web/world3d/markers3D.d.ts +53 -0
- package/dist/web/world3d/markers3D.js +130 -0
- package/dist/web/world3d/materialWebGL23D.d.ts +34 -0
- package/dist/web/world3d/materialWebGL23D.js +218 -0
- package/dist/web/world3d/overlay3D.d.ts +47 -0
- package/dist/web/world3d/overlay3D.js +187 -0
- package/dist/web/world3d/post3D.d.ts +116 -0
- package/dist/web/world3d/post3D.js +462 -0
- package/dist/web/world3d/postWebGL23D.d.ts +24 -0
- package/dist/web/world3d/postWebGL23D.js +237 -0
- package/dist/web/world3d/postWebGPU3D.d.ts +23 -0
- package/dist/web/world3d/postWebGPU3D.js +255 -0
- package/dist/web/world3d/probe3D.d.ts +15 -0
- package/dist/web/world3d/probe3D.js +66 -0
- package/dist/web/world3d/shaders3D.d.ts +43 -0
- package/dist/web/world3d/shaders3D.js +851 -0
- package/dist/web/world3d/stats3D.d.ts +34 -0
- package/dist/web/world3d/stats3D.js +81 -0
- package/dist/web/world3d/webGL2FrameMetrics3D.d.ts +71 -0
- package/dist/web/world3d/webGL2FrameMetrics3D.js +185 -0
- package/dist/web/world3d/webgpu.d.ts +37 -0
- package/dist/web/world3d/webgpu.js +23 -0
- package/dist/web/world3d/webgpuPacking3D.d.ts +13 -0
- package/dist/web/world3d/webgpuPacking3D.js +85 -0
- package/dist/web/world3d/wgsl3D.d.ts +68 -0
- package/dist/web/world3d/wgsl3D.js +781 -0
- package/package.json +220 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Disposable, HostAdapter } from '@egret/contracts';
|
|
2
|
+
/**
|
|
3
|
+
* Host adapter that reserves `canvas` for one Engine. The world3d renderer
|
|
4
|
+
* owns the WebGL context, so this host has no device to start or close.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createWorld3DHost(canvas: HTMLCanvasElement | OffscreenCanvas): HostAdapter;
|
|
7
|
+
/** What drives a 3D view: an Engine's clock and the call that advances it. */
|
|
8
|
+
export interface World3DLoopSource {
|
|
9
|
+
advanceTime(sourceSeconds: number): unknown;
|
|
10
|
+
readonly clock: {
|
|
11
|
+
readonly maxDeltaSeconds: number;
|
|
12
|
+
pause(): void;
|
|
13
|
+
resume(): void;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Advance the Engine clock once per display frame. A gap longer than the
|
|
18
|
+
* clock's delta limit (a hidden tab, a long shader compile) re-anchors the
|
|
19
|
+
* clock instead of producing one oversized step. Dispose the returned handle
|
|
20
|
+
* before disposing the Engine. Failures stop the loop and go to `onError`
|
|
21
|
+
* when given, otherwise they surface as uncaught errors.
|
|
22
|
+
*/
|
|
23
|
+
export declare function startWorld3DLoop(engine: World3DLoopSource, onError?: (cause: unknown) => void): Disposable;
|
|
24
|
+
//# sourceMappingURL=host3D.d.ts.map
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { World3DError } from '../../rendering/world3d/core3D.js';
|
|
2
|
+
/**
|
|
3
|
+
* Host adapter that reserves `canvas` for one Engine. The world3d renderer
|
|
4
|
+
* owns the WebGL context, so this host has no device to start or close.
|
|
5
|
+
*/
|
|
6
|
+
export function createWorld3DHost(canvas) {
|
|
7
|
+
if (typeof canvas !== 'object' || canvas === null)
|
|
8
|
+
throw new World3DError('WORLD3D_INPUT_INVALID', 'canvas');
|
|
9
|
+
return {
|
|
10
|
+
surface: canvas,
|
|
11
|
+
start() { },
|
|
12
|
+
stop() { },
|
|
13
|
+
async close() { },
|
|
14
|
+
setTimeout(callback, delayMs) {
|
|
15
|
+
const timer = setTimeout(callback, delayMs);
|
|
16
|
+
return () => clearTimeout(timer);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Advance the Engine clock once per display frame. A gap longer than the
|
|
22
|
+
* clock's delta limit (a hidden tab, a long shader compile) re-anchors the
|
|
23
|
+
* clock instead of producing one oversized step. Dispose the returned handle
|
|
24
|
+
* before disposing the Engine. Failures stop the loop and go to `onError`
|
|
25
|
+
* when given, otherwise they surface as uncaught errors.
|
|
26
|
+
*/
|
|
27
|
+
export function startWorld3DLoop(engine, onError) {
|
|
28
|
+
if (!engine || typeof engine.advanceTime !== 'function')
|
|
29
|
+
throw new World3DError('WORLD3D_INPUT_INVALID', 'engine');
|
|
30
|
+
let request = 0, stopped = false, previous;
|
|
31
|
+
const frame = (milliseconds) => {
|
|
32
|
+
if (stopped)
|
|
33
|
+
return;
|
|
34
|
+
request = requestAnimationFrame(frame);
|
|
35
|
+
const seconds = milliseconds / 1000;
|
|
36
|
+
try {
|
|
37
|
+
if (previous !== undefined && seconds - previous > engine.clock.maxDeltaSeconds) {
|
|
38
|
+
// Resuming discards the old anchor, so this sample dispatches no tick.
|
|
39
|
+
engine.clock.pause();
|
|
40
|
+
engine.clock.resume();
|
|
41
|
+
}
|
|
42
|
+
previous = seconds;
|
|
43
|
+
engine.advanceTime(seconds);
|
|
44
|
+
}
|
|
45
|
+
catch (cause) {
|
|
46
|
+
stopped = true;
|
|
47
|
+
cancelAnimationFrame(request);
|
|
48
|
+
if (!onError)
|
|
49
|
+
throw cause;
|
|
50
|
+
onError(cause);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
request = requestAnimationFrame(frame);
|
|
54
|
+
return {
|
|
55
|
+
dispose() {
|
|
56
|
+
stopped = true;
|
|
57
|
+
cancelAnimationFrame(request);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=host3D.js.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export { WebGL2Renderer3D, createWebGL2Renderer3D } from './WebGL2Renderer3D.js';
|
|
2
|
+
export type { WebGL2ProgramVariant3D, WebGL2Renderer3DOptions } from './WebGL2Renderer3D.js';
|
|
3
|
+
export type { World3DFrameMetrics, World3DFramePass, World3DGpuTiming, World3DPassKind, World3DViewKind } from './webGL2FrameMetrics3D.js';
|
|
4
|
+
export type { Renderer3D, Renderer3DInfo, ToneMapping3D } from './frame3D.js';
|
|
5
|
+
export { OrbitControls3D, createOrbitControls3D } from './OrbitControls3D.js';
|
|
6
|
+
export type { OrbitControlsOptions3D } from './OrbitControls3D.js';
|
|
7
|
+
export { loadTexture3D, loadCubeTexture3D, loadGltfFromUrl3D } from './loaders3D.js';
|
|
8
|
+
export type { LoadOptions3D, TextureLoadOptions3D, GltfUrlLoadOptions3D } from './loaders3D.js';
|
|
9
|
+
export { GLTF_ASSET_3D, TEXTURE_ASSET_3D, CUBE_TEXTURE_ASSET_3D, SCENE_ASSET_3D, registerWorld3DAssets } from './assets3D.js';
|
|
10
|
+
export type { World3DAssetOptions } from './assets3D.js';
|
|
11
|
+
export { World3DView, createWorld3DView } from './World3DView.js';
|
|
12
|
+
export type { World3DClockSource, World3DViewOptions } from './World3DView.js';
|
|
13
|
+
export { createWorld3DHost, startWorld3DLoop } from './host3D.js';
|
|
14
|
+
export type { World3DLoopSource } from './host3D.js';
|
|
15
|
+
export { POST3D_LIMITS, createPostProcessSettings3D, createCustomPost3D } from './post3D.js';
|
|
16
|
+
export type { PostProcessSettings3D, CustomPost3D } from './post3D.js';
|
|
17
|
+
export { FlyControls3D, createFlyControls3D } from './FlyControls3D.js';
|
|
18
|
+
export type { FlyControlsOptions3D, FlyControlsKeys3D } from './FlyControls3D.js';
|
|
19
|
+
export { AudioListener3D, PositionalAudio3D, createAudioListener3D, createPositionalAudio3D } from './Audio3D.js';
|
|
20
|
+
export type { AudioListenerOptions3D, PositionalAudioOptions3D } from './Audio3D.js';
|
|
21
|
+
export { captureCubeTexture3D } from './probe3D.js';
|
|
22
|
+
export type { CubeCaptureOptions3D } from './probe3D.js';
|
|
23
|
+
export { TransformControls3D, createTransformControls3D } from './TransformControls3D.js';
|
|
24
|
+
export { FollowControls3D, createFollowControls3D } from './FollowControls3D.js';
|
|
25
|
+
export type { FollowControlsOptions3D } from './FollowControls3D.js';
|
|
26
|
+
export { Atmosphere3D, createAtmosphere3D } from './atmosphere3D.js';
|
|
27
|
+
export type { AtmosphereOptions3D } from './atmosphere3D.js';
|
|
28
|
+
export { createCanvasFont3D } from './canvasFont3D.js';
|
|
29
|
+
export type { CanvasFontOptions3D } from './canvasFont3D.js';
|
|
30
|
+
export { WORLD3D_QUALITY_PRESETS, createDynamicResolution3D, createWorld3DApp, pickWorld3DBackend, pickWorld3DQuality, isSoftwareRendered3D } from './app3D.js';
|
|
31
|
+
export type { DynamicResolution3D, DynamicResolutionOptions3D, World3DApp, World3DAppOptions, World3DBackend, World3DDeviceHints, World3DQuality, World3DQualityPreset, World3DShowOptions } from './app3D.js';
|
|
32
|
+
export { createScreenMarkers3D } from './markers3D.js';
|
|
33
|
+
export type { ScreenMarker3D, ScreenMarkerOptions3D, ScreenMarkers3D, ScreenMarkersOptions3D } from './markers3D.js';
|
|
34
|
+
export { createWorld3DStats } from './stats3D.js';
|
|
35
|
+
export type { World3DStats, World3DStatsOptions } from './stats3D.js';
|
|
36
|
+
export { createWorld3DOverlay } from './overlay3D.js';
|
|
37
|
+
export type { World3DOverlay, World3DOverlayOptions } from './overlay3D.js';
|
|
38
|
+
export { play3d, PlayThing3D, PlayLamp3D, PLAY_LOOKS_3D } from './BrowserPlay3D.js';
|
|
39
|
+
export type { Play3DGame, Play3DOptions, PlayBurst3D, PlayCamera3D, PlayFollow3D, PlayLampOptions3D, PlayLook3D, PlayLookName3D, PlayPlace3D, PlayWeather3D, PlayWeatherOptions3D } from './BrowserPlay3D.js';
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Explicit WebGL2 entry for the world3d scene graph: renderer, orbit
|
|
3
|
+
// controls, browser loaders and the Engine clock binding. Nothing here is
|
|
4
|
+
// loaded by the default Engine, Canvas or shared 2D entries.
|
|
5
|
+
export { WebGL2Renderer3D, createWebGL2Renderer3D } from './WebGL2Renderer3D.js';
|
|
6
|
+
export { OrbitControls3D, createOrbitControls3D } from './OrbitControls3D.js';
|
|
7
|
+
export { loadTexture3D, loadCubeTexture3D, loadGltfFromUrl3D } from './loaders3D.js';
|
|
8
|
+
export { GLTF_ASSET_3D, TEXTURE_ASSET_3D, CUBE_TEXTURE_ASSET_3D, SCENE_ASSET_3D, registerWorld3DAssets } from './assets3D.js';
|
|
9
|
+
export { World3DView, createWorld3DView } from './World3DView.js';
|
|
10
|
+
export { createWorld3DHost, startWorld3DLoop } from './host3D.js';
|
|
11
|
+
export { POST3D_LIMITS, createPostProcessSettings3D, createCustomPost3D } from './post3D.js';
|
|
12
|
+
export { FlyControls3D, createFlyControls3D } from './FlyControls3D.js';
|
|
13
|
+
export { AudioListener3D, PositionalAudio3D, createAudioListener3D, createPositionalAudio3D } from './Audio3D.js';
|
|
14
|
+
export { captureCubeTexture3D } from './probe3D.js';
|
|
15
|
+
export { TransformControls3D, createTransformControls3D } from './TransformControls3D.js';
|
|
16
|
+
export { FollowControls3D, createFollowControls3D } from './FollowControls3D.js';
|
|
17
|
+
export { Atmosphere3D, createAtmosphere3D } from './atmosphere3D.js';
|
|
18
|
+
export { createCanvasFont3D } from './canvasFont3D.js';
|
|
19
|
+
export { WORLD3D_QUALITY_PRESETS, createDynamicResolution3D, createWorld3DApp, pickWorld3DBackend, pickWorld3DQuality, isSoftwareRendered3D } from './app3D.js';
|
|
20
|
+
export { createScreenMarkers3D } from './markers3D.js';
|
|
21
|
+
export { createWorld3DStats } from './stats3D.js';
|
|
22
|
+
export { createWorld3DOverlay } from './overlay3D.js';
|
|
23
|
+
export { play3d, PlayThing3D, PlayLamp3D, PLAY_LOOKS_3D } from './BrowserPlay3D.js';
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { GltfAsset3D, GltfLoadOptions3D } from '../../rendering/world3d/Gltf3D.js';
|
|
2
|
+
import type { Ktx2Options3D } from '../../rendering/world3d/Ktx23D.js';
|
|
3
|
+
import { CubeTexture3D, Texture3D } from '../../rendering/world3d/Texture3D.js';
|
|
4
|
+
import type { TextureOptions3D } from '../../rendering/world3d/Texture3D.js';
|
|
5
|
+
/** How a 3D asset is loaded: a signal that cancels it, and the most bytes it reads. */
|
|
6
|
+
export interface LoadOptions3D {
|
|
7
|
+
readonly signal?: AbortSignal;
|
|
8
|
+
/** Upper bound for one downloaded file, in bytes. Defaults to 256 MiB. */
|
|
9
|
+
readonly maxBytes?: number;
|
|
10
|
+
}
|
|
11
|
+
/** Texture loading options; `transcodeKtx2` handles KTX2 payloads the built-in reader cannot use directly. */
|
|
12
|
+
export interface TextureLoadOptions3D extends TextureOptions3D, LoadOptions3D {
|
|
13
|
+
readonly transcodeKtx2?: Ktx2Options3D['transcode'];
|
|
14
|
+
}
|
|
15
|
+
/** glTF loading options: download limits plus the optional KTX2, meshopt and Draco decoders. */
|
|
16
|
+
export interface GltfUrlLoadOptions3D extends LoadOptions3D, Pick<GltfLoadOptions3D, 'transcodeKtx2' | 'decodeMeshopt' | 'decodeDraco'> {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Load an image or KTX2 file as a texture. `flipY` defaults to true so V = 0 is the bottom
|
|
20
|
+
* row, matching the built-in primitives.
|
|
21
|
+
*/
|
|
22
|
+
export declare function loadTexture3D(url: string, options?: TextureLoadOptions3D): Promise<Texture3D>;
|
|
23
|
+
/** Load six square images in +X, -X, +Y, -Y, +Z, -Z order as a cube texture. */
|
|
24
|
+
export declare function loadCubeTexture3D(urls: readonly string[], options?: TextureOptions3D & LoadOptions3D): Promise<CubeTexture3D>;
|
|
25
|
+
/** Load a .glb or .gltf file; relative buffer and image URIs resolve against `url`. */
|
|
26
|
+
export declare function loadGltfFromUrl3D(url: string, options?: GltfUrlLoadOptions3D): Promise<GltfAsset3D>;
|
|
27
|
+
//# sourceMappingURL=loaders3D.d.ts.map
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Browser loaders: fetch and decode images into textures, and load glTF
|
|
3
|
+
// assets with their external buffers and images resolved against the file URL.
|
|
4
|
+
import { World3DError } from '../../rendering/world3d/core3D.js';
|
|
5
|
+
import { loadGltf3D } from '../../rendering/world3d/Gltf3D.js';
|
|
6
|
+
import { isKtx23D, parseKtx23D } from '../../rendering/world3d/Ktx23D.js';
|
|
7
|
+
import { CubeTexture3D, Texture3D } from '../../rendering/world3d/Texture3D.js';
|
|
8
|
+
const DEFAULT_MAX_BYTES = 268435456;
|
|
9
|
+
async function fetchBytes(url, options) {
|
|
10
|
+
let response;
|
|
11
|
+
try {
|
|
12
|
+
response = await fetch(url, options.signal ? { signal: options.signal } : {});
|
|
13
|
+
}
|
|
14
|
+
catch (cause) {
|
|
15
|
+
throw new World3DError('WORLD3D_RESOURCE_FAILED', url, cause);
|
|
16
|
+
}
|
|
17
|
+
if (!response.ok)
|
|
18
|
+
throw new World3DError('WORLD3D_RESOURCE_FAILED', url + ' (HTTP ' + response.status + ')');
|
|
19
|
+
const limit = options.maxBytes ?? DEFAULT_MAX_BYTES, declared = Number(response.headers.get('content-length') ?? 0);
|
|
20
|
+
if (declared > limit)
|
|
21
|
+
throw new World3DError('WORLD3D_BUDGET', url);
|
|
22
|
+
const bytes = new Uint8Array(await response.arrayBuffer());
|
|
23
|
+
if (bytes.byteLength > limit)
|
|
24
|
+
throw new World3DError('WORLD3D_BUDGET', url);
|
|
25
|
+
return bytes;
|
|
26
|
+
}
|
|
27
|
+
async function decode(blob, url, flipY = false) {
|
|
28
|
+
// Decode without color-space conversion or premultiplication: the renderer handles both.
|
|
29
|
+
// Rows are flipped here because WebGL ignores its unpack flip flag for ImageBitmap sources.
|
|
30
|
+
try {
|
|
31
|
+
return await createImageBitmap(blob, {
|
|
32
|
+
colorSpaceConversion: 'none',
|
|
33
|
+
premultiplyAlpha: 'none',
|
|
34
|
+
imageOrientation: flipY ? 'flipY' : 'from-image'
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
catch (cause) {
|
|
38
|
+
throw new World3DError('WORLD3D_RESOURCE_FAILED', 'image decode: ' + url, cause);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
function textureOptions(options) {
|
|
42
|
+
const { signal: _signal, maxBytes: _maxBytes, transcodeKtx2: _transcode, ...rest } = options;
|
|
43
|
+
return rest;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Load an image or KTX2 file as a texture. `flipY` defaults to true so V = 0 is the bottom
|
|
47
|
+
* row, matching the built-in primitives.
|
|
48
|
+
*/
|
|
49
|
+
export async function loadTexture3D(url, options = {}) {
|
|
50
|
+
const bytes = await fetchBytes(url, options);
|
|
51
|
+
if (isKtx23D(bytes)) {
|
|
52
|
+
// KTX2 rows are stored top-down and cannot be flipped once block-compressed.
|
|
53
|
+
const parsed = await parseKtx23D(bytes, options.transcodeKtx2 ? { transcode: options.transcodeKtx2 } : {});
|
|
54
|
+
const levels = 'levels' in parsed.source ? parsed.source.levels.length : 1;
|
|
55
|
+
return new Texture3D(parsed.source, {
|
|
56
|
+
...textureOptions(options),
|
|
57
|
+
colorSpace: options.colorSpace ?? parsed.colorSpace,
|
|
58
|
+
flipY: false,
|
|
59
|
+
mipmaps: levels > 1,
|
|
60
|
+
name: options.name ?? url
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
const bitmap = await decode(new Blob([bytes]), url, options.flipY ?? true);
|
|
64
|
+
// The bitmap is already oriented, so the texture itself must not flip again.
|
|
65
|
+
const texture = new Texture3D(bitmap, { ...textureOptions(options), flipY: false, name: options.name ?? url });
|
|
66
|
+
// The decoded bitmap is owned by the texture from here on.
|
|
67
|
+
texture.onDispose(() => bitmap.close());
|
|
68
|
+
return texture;
|
|
69
|
+
}
|
|
70
|
+
/** Load six square images in +X, -X, +Y, -Y, +Z, -Z order as a cube texture. */
|
|
71
|
+
export async function loadCubeTexture3D(urls, options = {}) {
|
|
72
|
+
if (!Array.isArray(urls) || urls.length !== 6)
|
|
73
|
+
throw new World3DError('WORLD3D_INPUT_INVALID', 'cube urls');
|
|
74
|
+
const settled = await Promise.allSettled(urls.map(async (url) => decode(new Blob([(await fetchBytes(url, options))]), url)));
|
|
75
|
+
const bitmaps = settled.flatMap(result => (result.status === 'fulfilled' ? [result.value] : []));
|
|
76
|
+
const failure = settled.find(result => result.status === 'rejected');
|
|
77
|
+
if (failure) {
|
|
78
|
+
for (const bitmap of bitmaps)
|
|
79
|
+
bitmap.close();
|
|
80
|
+
throw failure.reason;
|
|
81
|
+
}
|
|
82
|
+
const texture = new CubeTexture3D(bitmaps, { ...options, name: options.name ?? urls[0] });
|
|
83
|
+
texture.onDispose(() => {
|
|
84
|
+
for (const bitmap of bitmaps)
|
|
85
|
+
bitmap.close();
|
|
86
|
+
});
|
|
87
|
+
return texture;
|
|
88
|
+
}
|
|
89
|
+
/** Load a .glb or .gltf file; relative buffer and image URIs resolve against `url`. */
|
|
90
|
+
export async function loadGltfFromUrl3D(url, options = {}) {
|
|
91
|
+
const base = new URL(url, typeof location === 'undefined' ? 'http://localhost/' : location.href);
|
|
92
|
+
const resolve = (uri) => new URL(uri, base).href;
|
|
93
|
+
const bitmaps = [];
|
|
94
|
+
let abandoned = false;
|
|
95
|
+
const closeBitmaps = () => {
|
|
96
|
+
for (const bitmap of bitmaps.splice(0))
|
|
97
|
+
bitmap.close();
|
|
98
|
+
};
|
|
99
|
+
const decodeImage = async (request) => {
|
|
100
|
+
const bytes = request.bytes ?? (await fetchBytes(resolve(request.uri ?? ''), options));
|
|
101
|
+
const bitmap = await decode(new Blob([bytes], request.mimeType ? { type: request.mimeType } : {}), request.uri ?? 'embedded image ' + request.index);
|
|
102
|
+
// A sibling decode can reject before this ImageBitmap becomes available.
|
|
103
|
+
if (abandoned) {
|
|
104
|
+
bitmap.close();
|
|
105
|
+
throw new World3DError('WORLD3D_RESOURCE_FAILED', 'asset already failed: ' + base.href);
|
|
106
|
+
}
|
|
107
|
+
bitmaps.push(bitmap);
|
|
108
|
+
return bitmap;
|
|
109
|
+
};
|
|
110
|
+
try {
|
|
111
|
+
const asset = await loadGltf3D(await fetchBytes(base.href, options), {
|
|
112
|
+
decodeImage,
|
|
113
|
+
loadBuffer: uri => fetchBytes(resolve(uri), options),
|
|
114
|
+
...(options.transcodeKtx2 ? { transcodeKtx2: options.transcodeKtx2 } : {}),
|
|
115
|
+
...(options.decodeMeshopt ? { decodeMeshopt: options.decodeMeshopt } : {}),
|
|
116
|
+
...(options.decodeDraco ? { decodeDraco: options.decodeDraco } : {})
|
|
117
|
+
});
|
|
118
|
+
const dispose = asset.dispose.bind(asset);
|
|
119
|
+
// Close decoded bitmaps together with the rest of the asset.
|
|
120
|
+
return {
|
|
121
|
+
...asset,
|
|
122
|
+
dispose: () => {
|
|
123
|
+
try {
|
|
124
|
+
dispose();
|
|
125
|
+
}
|
|
126
|
+
finally {
|
|
127
|
+
closeBitmaps();
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
catch (cause) {
|
|
133
|
+
abandoned = true;
|
|
134
|
+
closeBitmaps();
|
|
135
|
+
throw cause;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=loaders3D.js.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Camera3D } from '../../rendering/world3d/Camera3D.js';
|
|
2
|
+
import type { Object3D } from '../../rendering/world3d/Object3D.js';
|
|
3
|
+
import type { ViewportPoint3D } from '../../rendering/world3d/GeometryBuilder3D.js';
|
|
4
|
+
/** A screen marker to add: what it points at, its offset, whether it sticks to the screen's edge, and how far it shows. */
|
|
5
|
+
export interface ScreenMarkerOptions3D {
|
|
6
|
+
/** What the element follows: a node's world position, or a fixed world point. */
|
|
7
|
+
readonly target: Object3D | readonly [number, number, number];
|
|
8
|
+
/** Added to the target's position in world units, as for a label above a head. */
|
|
9
|
+
readonly offset?: readonly [number, number, number];
|
|
10
|
+
/** Keep the element at the edge of the screen when its target is off it, `margin` pixels in. */
|
|
11
|
+
readonly clampToEdge?: boolean;
|
|
12
|
+
readonly margin?: number;
|
|
13
|
+
/** Hide the element beyond this distance from the camera. */
|
|
14
|
+
readonly maxDistance?: number;
|
|
15
|
+
}
|
|
16
|
+
/** A marker over the screen that follows a point of the scene: its element and where it is. */
|
|
17
|
+
export interface ScreenMarker3D {
|
|
18
|
+
readonly element: HTMLElement;
|
|
19
|
+
/** Where the element was placed last; `onEdge` when it was clamped. */
|
|
20
|
+
readonly point: Readonly<ViewportPoint3D>;
|
|
21
|
+
readonly onEdge: boolean;
|
|
22
|
+
/** The direction from the screen's centre to the target, in radians, for an arrow on a clamped marker. */
|
|
23
|
+
readonly angle: number;
|
|
24
|
+
/** Replaces what the marker follows. */
|
|
25
|
+
retarget(target: Object3D | readonly [number, number, number]): void;
|
|
26
|
+
/** Takes the marker off; the element is removed from its container when the layer added it. */
|
|
27
|
+
dispose(): void;
|
|
28
|
+
}
|
|
29
|
+
/** Screen markers to make: the container they go in, and the camera they follow. */
|
|
30
|
+
export interface ScreenMarkersOptions3D {
|
|
31
|
+
/** The element markers are placed in; it should cover the canvas and have `position: relative` or similar. */
|
|
32
|
+
readonly container: HTMLElement;
|
|
33
|
+
readonly camera: Camera3D;
|
|
34
|
+
}
|
|
35
|
+
/** Elements over the screen that follow points of the scene: add them, and update them each frame. */
|
|
36
|
+
export interface ScreenMarkers3D {
|
|
37
|
+
readonly markers: readonly ScreenMarker3D[];
|
|
38
|
+
/** The camera markers are projected through; may be replaced. */
|
|
39
|
+
camera: Camera3D;
|
|
40
|
+
/** Follows a target with `element`, which is appended to the container when it has no parent. */
|
|
41
|
+
add(element: HTMLElement, options: ScreenMarkerOptions3D): ScreenMarker3D;
|
|
42
|
+
/** Places every marker; call once a frame after the camera moved, before or after drawing. */
|
|
43
|
+
update(): void;
|
|
44
|
+
/** Takes every marker off. */
|
|
45
|
+
dispose(): void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* A layer of page elements that follow scene points. Each element is moved with a CSS transform, so give it
|
|
49
|
+
* `position: absolute; left: 0; top: 0` and centre it with a negative margin or a translate of its own child.
|
|
50
|
+
* A marker gets `data-on-edge` while clamped and `hidden` while its target is behind the camera without clamping.
|
|
51
|
+
*/
|
|
52
|
+
export declare function createScreenMarkers3D(options: ScreenMarkersOptions3D): ScreenMarkers3D;
|
|
53
|
+
//# sourceMappingURL=markers3D.d.ts.map
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
// Page elements that follow points of a World3D scene: names over heads,
|
|
3
|
+
// damage numbers, objective markers that cling to the edge of the screen when
|
|
4
|
+
// their target is off it. The interface of a 3D game is usually ordinary page
|
|
5
|
+
// elements laid over the canvas; this places them each frame.
|
|
6
|
+
import { World3DError } from '../../rendering/world3d/core3D.js';
|
|
7
|
+
import { projectToViewport3D } from '../../rendering/world3d/GeometryBuilder3D.js';
|
|
8
|
+
/**
|
|
9
|
+
* A layer of page elements that follow scene points. Each element is moved with a CSS transform, so give it
|
|
10
|
+
* `position: absolute; left: 0; top: 0` and centre it with a negative margin or a translate of its own child.
|
|
11
|
+
* A marker gets `data-on-edge` while clamped and `hidden` while its target is behind the camera without clamping.
|
|
12
|
+
*/
|
|
13
|
+
export function createScreenMarkers3D(options) {
|
|
14
|
+
if (!options?.container || typeof options.container.appendChild !== 'function' || !options.camera)
|
|
15
|
+
throw new World3DError('WORLD3D_INPUT_INVALID', 'screen markers');
|
|
16
|
+
const container = options.container;
|
|
17
|
+
const markers = [];
|
|
18
|
+
const world = new Float32Array(3);
|
|
19
|
+
const layer = {
|
|
20
|
+
markers,
|
|
21
|
+
camera: options.camera,
|
|
22
|
+
add(element, marker) {
|
|
23
|
+
if (!element || !marker?.target)
|
|
24
|
+
throw new World3DError('WORLD3D_INPUT_INVALID', 'marker');
|
|
25
|
+
let target = marker.target;
|
|
26
|
+
const added = !element.parentNode;
|
|
27
|
+
if (added)
|
|
28
|
+
container.appendChild(element);
|
|
29
|
+
const point = { x: 0, y: 0, depth: 0, inFront: false, onScreen: false };
|
|
30
|
+
let onEdge = false, angle = 0, disposed = false;
|
|
31
|
+
const margin = marker.margin ?? 24;
|
|
32
|
+
const entry = {
|
|
33
|
+
element,
|
|
34
|
+
point,
|
|
35
|
+
get onEdge() {
|
|
36
|
+
return onEdge;
|
|
37
|
+
},
|
|
38
|
+
get angle() {
|
|
39
|
+
return angle;
|
|
40
|
+
},
|
|
41
|
+
retarget(next) {
|
|
42
|
+
if (!next)
|
|
43
|
+
throw new World3DError('WORLD3D_INPUT_INVALID', 'marker target');
|
|
44
|
+
target = next;
|
|
45
|
+
},
|
|
46
|
+
dispose() {
|
|
47
|
+
if (disposed)
|
|
48
|
+
return;
|
|
49
|
+
disposed = true;
|
|
50
|
+
const at = markers.indexOf(entry);
|
|
51
|
+
if (at >= 0)
|
|
52
|
+
markers.splice(at, 1);
|
|
53
|
+
if (added)
|
|
54
|
+
element.remove();
|
|
55
|
+
},
|
|
56
|
+
update(width, height) {
|
|
57
|
+
if (Array.isArray(target))
|
|
58
|
+
world.set(target);
|
|
59
|
+
else {
|
|
60
|
+
const node = target;
|
|
61
|
+
node.updateWorldMatrix();
|
|
62
|
+
const m = node.matrixWorld;
|
|
63
|
+
world[0] = m[12];
|
|
64
|
+
world[1] = m[13];
|
|
65
|
+
world[2] = m[14];
|
|
66
|
+
}
|
|
67
|
+
if (marker.offset)
|
|
68
|
+
for (let i = 0; i < 3; i++)
|
|
69
|
+
world[i] += marker.offset[i];
|
|
70
|
+
const camera = layer.camera;
|
|
71
|
+
projectToViewport3D(camera, world, width, height, point);
|
|
72
|
+
const eye = camera.matrixWorld;
|
|
73
|
+
const far = marker.maxDistance !== undefined &&
|
|
74
|
+
Math.hypot(world[0] - eye[12], world[1] - eye[13], world[2] - eye[14]) > marker.maxDistance;
|
|
75
|
+
let x = point.x, y = point.y;
|
|
76
|
+
angle = Math.atan2(y - height / 2, x - width / 2);
|
|
77
|
+
onEdge = false;
|
|
78
|
+
if (!point.onScreen && marker.clampToEdge) {
|
|
79
|
+
// Push the point out from the centre to the screen's edge along its direction.
|
|
80
|
+
// Behind the camera the projection already keeps the side the target lies on; one straight behind
|
|
81
|
+
// goes to the bottom edge.
|
|
82
|
+
let dx = x - width / 2, dy = y - height / 2;
|
|
83
|
+
if (!point.inFront && Math.hypot(dx, dy) < 1)
|
|
84
|
+
dy = 1;
|
|
85
|
+
if (!point.inFront) {
|
|
86
|
+
// Behind the camera a target is always off the screen, however close to the centre it projects.
|
|
87
|
+
const length = Math.hypot(dx, dy);
|
|
88
|
+
dx /= length;
|
|
89
|
+
dy /= length;
|
|
90
|
+
}
|
|
91
|
+
angle = Math.atan2(dy, dx);
|
|
92
|
+
const halfW = width / 2 - margin, halfH = height / 2 - margin;
|
|
93
|
+
const scale = Math.min(halfW / Math.max(Math.abs(dx), 1e-9), halfH / Math.max(Math.abs(dy), 1e-9));
|
|
94
|
+
x = width / 2 + dx * scale;
|
|
95
|
+
y = height / 2 + dy * scale;
|
|
96
|
+
x = Math.min(width - margin, Math.max(margin, x));
|
|
97
|
+
y = Math.min(height - margin, Math.max(margin, y));
|
|
98
|
+
onEdge = true;
|
|
99
|
+
}
|
|
100
|
+
const hidden = far || (!point.onScreen && !marker.clampToEdge);
|
|
101
|
+
element.hidden = hidden;
|
|
102
|
+
if (onEdge)
|
|
103
|
+
element.dataset['onEdge'] = '';
|
|
104
|
+
else
|
|
105
|
+
delete element.dataset['onEdge'];
|
|
106
|
+
if (!hidden)
|
|
107
|
+
element.style.transform = `translate(${x.toFixed(1)}px, ${y.toFixed(1)}px)`;
|
|
108
|
+
point.x = x;
|
|
109
|
+
point.y = y;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
markers.push(entry);
|
|
113
|
+
return entry;
|
|
114
|
+
},
|
|
115
|
+
update() {
|
|
116
|
+
const width = container.clientWidth, height = container.clientHeight;
|
|
117
|
+
if (!(width > 0 && height > 0))
|
|
118
|
+
return;
|
|
119
|
+
layer.camera.updateViewMatrices();
|
|
120
|
+
for (const marker of [...markers])
|
|
121
|
+
marker.update(width, height);
|
|
122
|
+
},
|
|
123
|
+
dispose() {
|
|
124
|
+
for (const marker of [...markers])
|
|
125
|
+
marker.dispose();
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
return layer;
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=markers3D.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Material3D } from '../../rendering/world3d/Material3D.js';
|
|
2
|
+
import type { GpuResources3D, Program3D } from './gpuResources3D.js';
|
|
3
|
+
export declare const MATERIAL_VARIANT_WEBGL2_3D: Readonly<{
|
|
4
|
+
readonly normal: 1;
|
|
5
|
+
readonly tangent: 2;
|
|
6
|
+
readonly uv: 4;
|
|
7
|
+
readonly color: 8;
|
|
8
|
+
readonly skin: 16;
|
|
9
|
+
readonly morph: 32;
|
|
10
|
+
readonly morphNormals: 64;
|
|
11
|
+
readonly instancing: 128;
|
|
12
|
+
readonly instanceColor: 256;
|
|
13
|
+
readonly receiveShadow: 512;
|
|
14
|
+
readonly fog: 1024;
|
|
15
|
+
readonly toneMapped: 2048;
|
|
16
|
+
readonly environment: 4096;
|
|
17
|
+
readonly points: 8192;
|
|
18
|
+
readonly depthOnly: 16384;
|
|
19
|
+
readonly linearOutput: 32768;
|
|
20
|
+
readonly mapFromTarget: 65536;
|
|
21
|
+
readonly uv1: 131072;
|
|
22
|
+
readonly occlusionSecond: 262144;
|
|
23
|
+
readonly emissiveSecond: 524288;
|
|
24
|
+
readonly lightSecond: 1048576;
|
|
25
|
+
readonly transmission: 2097152;
|
|
26
|
+
readonly skinInstancing: 4194304;
|
|
27
|
+
readonly gpuParticles: 8388608;
|
|
28
|
+
readonly softDepth: 16777216;
|
|
29
|
+
}>;
|
|
30
|
+
/** Preserve define order because the renderer uses it as part of the linked-program key. */
|
|
31
|
+
export declare function buildMaterialDefinesWebGL23D(material: Material3D, variant: number, depthOnly: boolean): string[];
|
|
32
|
+
/** Apply uniforms and textures in draw order using the renderer's existing scratch matrix. */
|
|
33
|
+
export declare function applyMaterialWebGL23D(gl: WebGL2RenderingContext, u: Program3D['uniforms'], resources: GpuResources3D, scratch9: Float32Array, material: Material3D, depthOnly: boolean): void;
|
|
34
|
+
//# sourceMappingURL=materialWebGL23D.d.ts.map
|