ris-framework 0.1.0 → 0.2.0-dev.12
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/CHANGELOG.md +42 -1
- package/README.md +27 -4
- package/dist/Framework.d.ts +34 -10
- package/dist/Framework.d.ts.map +1 -1
- package/dist/api/IFramework.d.ts +50 -6
- package/dist/api/IFramework.d.ts.map +1 -1
- package/dist/api/_export.d.ts +3 -1
- package/dist/api/_export.d.ts.map +1 -1
- package/dist/api/camera/CameraFactory.d.ts +3 -2
- package/dist/api/camera/CameraFactory.d.ts.map +1 -1
- package/dist/api/camera/ICamera.d.ts +5 -0
- package/dist/api/camera/ICamera.d.ts.map +1 -1
- package/dist/api/camera/ICameraFactory.d.ts +5 -6
- package/dist/api/camera/ICameraFactory.d.ts.map +1 -1
- package/dist/api/camera/OrthographicCamera.d.ts +7 -0
- package/dist/api/camera/OrthographicCamera.d.ts.map +1 -1
- package/dist/api/camera/PerspectiveCamera.d.ts +30 -6
- package/dist/api/camera/PerspectiveCamera.d.ts.map +1 -1
- package/dist/api/content/ContentManager.d.ts +15 -2
- package/dist/api/content/ContentManager.d.ts.map +1 -1
- package/dist/api/content/IContentManager.d.ts +35 -1
- package/dist/api/content/IContentManager.d.ts.map +1 -1
- package/dist/api/content/ShaderModuleContent.d.ts.map +1 -1
- package/dist/api/data/Color.d.ts +5 -0
- package/dist/api/data/Color.d.ts.map +1 -1
- package/dist/api/geometry/BaseGeometry.d.ts +9 -0
- package/dist/api/geometry/BaseGeometry.d.ts.map +1 -1
- package/dist/api/geometry/GeometryBuilder.d.ts +3 -1
- package/dist/api/geometry/GeometryBuilder.d.ts.map +1 -1
- package/dist/api/geometry/IGeometryBuilder.d.ts +24 -0
- package/dist/api/geometry/IGeometryBuilder.d.ts.map +1 -1
- package/dist/api/geometry/_export-geometry.d.ts +1 -0
- package/dist/api/geometry/_export-geometry.d.ts.map +1 -1
- package/dist/api/input/InputManager.d.ts +4 -0
- package/dist/api/input/InputManager.d.ts.map +1 -1
- package/dist/api/lights/AmbientLight.d.ts +35 -0
- package/dist/api/lights/AmbientLight.d.ts.map +1 -0
- package/dist/api/lights/DirectionalLight.d.ts +40 -0
- package/dist/api/lights/DirectionalLight.d.ts.map +1 -0
- package/dist/api/lights/LightFactory.d.ts +18 -0
- package/dist/api/lights/LightFactory.d.ts.map +1 -0
- package/dist/api/lights/LightId.d.ts +6 -0
- package/dist/api/lights/LightId.d.ts.map +1 -0
- package/dist/api/lights/LightsBuffer.d.ts +77 -0
- package/dist/api/lights/LightsBuffer.d.ts.map +1 -0
- package/dist/api/lights/PointLight.d.ts +59 -0
- package/dist/api/lights/PointLight.d.ts.map +1 -0
- package/dist/api/lights/_export.d.ts +6 -0
- package/dist/api/lights/_export.d.ts.map +1 -0
- package/dist/api/loaders/ObjGeometryMapper.d.ts +19 -0
- package/dist/api/loaders/ObjGeometryMapper.d.ts.map +1 -0
- package/dist/api/loaders/ObjLoader.d.ts +61 -0
- package/dist/api/loaders/ObjLoader.d.ts.map +1 -0
- package/dist/api/loaders/_export.d.ts +2 -0
- package/dist/api/loaders/_export.d.ts.map +1 -1
- package/dist/api/loaders/obj/ObjParser.d.ts +44 -0
- package/dist/api/loaders/obj/ObjParser.d.ts.map +1 -0
- package/dist/api/loaders/obj/ObjTypes.d.ts +119 -0
- package/dist/api/loaders/obj/ObjTypes.d.ts.map +1 -0
- package/dist/api/loaders/obj/index.d.ts +3 -0
- package/dist/api/loaders/obj/index.d.ts.map +1 -0
- package/dist/api/material/ForwardBlinnPhongMaterial.d.ts +138 -0
- package/dist/api/material/ForwardBlinnPhongMaterial.d.ts.map +1 -0
- package/dist/api/material/ICameraMaterial.d.ts +18 -0
- package/dist/api/material/ICameraMaterial.d.ts.map +1 -0
- package/dist/api/material/ILightsMaterial.d.ts +26 -0
- package/dist/api/material/ILightsMaterial.d.ts.map +1 -0
- package/dist/api/material/IMaterial.d.ts +13 -10
- package/dist/api/material/IMaterial.d.ts.map +1 -1
- package/dist/api/material/IMaterialFactory.d.ts +17 -2
- package/dist/api/material/IMaterialFactory.d.ts.map +1 -1
- package/dist/api/material/InspectTextureMipsMaterial.d.ts +18 -9
- package/dist/api/material/InspectTextureMipsMaterial.d.ts.map +1 -1
- package/dist/api/material/MaterialFactory.d.ts +6 -0
- package/dist/api/material/MaterialFactory.d.ts.map +1 -1
- package/dist/api/material/SpriteMaterial.d.ts +51 -0
- package/dist/api/material/SpriteMaterial.d.ts.map +1 -0
- package/dist/api/material/UnlitMaterial.d.ts +32 -13
- package/dist/api/material/UnlitMaterial.d.ts.map +1 -1
- package/dist/api/material/_export.d.ts +4 -0
- package/dist/api/material/_export.d.ts.map +1 -1
- package/dist/api/meshes/IMesh.d.ts +31 -6
- package/dist/api/meshes/IMesh.d.ts.map +1 -1
- package/dist/api/meshes/IMeshFactory.d.ts +30 -4
- package/dist/api/meshes/IMeshFactory.d.ts.map +1 -1
- package/dist/api/meshes/IRenderableMesh.d.ts +47 -0
- package/dist/api/meshes/IRenderableMesh.d.ts.map +1 -0
- package/dist/api/meshes/Mesh.d.ts +14 -8
- package/dist/api/meshes/Mesh.d.ts.map +1 -1
- package/dist/api/meshes/MeshFactory.d.ts +10 -3
- package/dist/api/meshes/MeshFactory.d.ts.map +1 -1
- package/dist/api/meshes/QuadMesh.d.ts +5 -3
- package/dist/api/meshes/QuadMesh.d.ts.map +1 -1
- package/dist/api/meshes/RenderableMesh.d.ts +95 -0
- package/dist/api/meshes/RenderableMesh.d.ts.map +1 -0
- package/dist/api/meshes/_export.d.ts +2 -0
- package/dist/api/meshes/_export.d.ts.map +1 -1
- package/dist/api/rendering/IGraphicsDeviceFeatures.d.ts +8 -2
- package/dist/api/rendering/IGraphicsDeviceFeatures.d.ts.map +1 -1
- package/dist/api/rendering/IRenderer.d.ts +28 -1
- package/dist/api/rendering/IRenderer.d.ts.map +1 -1
- package/dist/api/rendering/enums.d.ts +7 -0
- package/dist/api/rendering/enums.d.ts.map +1 -1
- package/dist/api/rendering/render-pipelines/IForwardBlinnPhongRenderPipeline.d.ts +56 -0
- package/dist/api/rendering/render-pipelines/IForwardBlinnPhongRenderPipeline.d.ts.map +1 -0
- package/dist/api/rendering/render-pipelines/IRenderPipeline.d.ts +3 -0
- package/dist/api/rendering/render-pipelines/IRenderPipeline.d.ts.map +1 -1
- package/dist/api/rendering/render-pipelines/IRenderPipelineFactory.d.ts +29 -0
- package/dist/api/rendering/render-pipelines/IRenderPipelineFactory.d.ts.map +1 -1
- package/dist/api/rendering/render-pipelines/_export-render-pipelines.d.ts +1 -0
- package/dist/api/rendering/render-pipelines/_export-render-pipelines.d.ts.map +1 -1
- package/dist/api/rendering/renderer-interface.d.ts +1 -31
- package/dist/api/rendering/renderer-interface.d.ts.map +1 -1
- package/dist/api/rendering/renderpass/RenderPassDescriptor.d.ts +2 -6
- package/dist/api/rendering/renderpass/RenderPassDescriptor.d.ts.map +1 -1
- package/dist/api/rendering/swapchain/ISwapChain.d.ts +1 -3
- package/dist/api/rendering/swapchain/ISwapChain.d.ts.map +1 -1
- package/dist/api/rendering/texture/TextureFormat.d.ts +88 -14
- package/dist/api/rendering/texture/TextureFormat.d.ts.map +1 -1
- package/dist/api/rendering/texture/TextureUtilities.d.ts +23 -0
- package/dist/api/rendering/texture/TextureUtilities.d.ts.map +1 -1
- package/dist/api/scene/Scene.d.ts +113 -0
- package/dist/api/scene/Scene.d.ts.map +1 -0
- package/dist/api/scene/SceneMesh.d.ts +27 -0
- package/dist/api/scene/SceneMesh.d.ts.map +1 -0
- package/dist/api/shader/IShaderModuleLoader.d.ts +4 -1
- package/dist/api/shader/IShaderModuleLoader.d.ts.map +1 -1
- package/dist/api/shader/{shader-loader.d.ts → ShaderLoader.d.ts} +1 -1
- package/dist/api/shader/ShaderLoader.d.ts.map +1 -0
- package/dist/api/sprites/SpriteBatchDrawable.d.ts +1 -1
- package/dist/api/sprites/SpriteBatchDrawable.d.ts.map +1 -1
- package/dist/api/sprites/SpriteBatchMesh.d.ts +14 -1
- package/dist/api/sprites/SpriteBatchMesh.d.ts.map +1 -1
- package/dist/api/utilities/AlignUtilities.d.ts.map +1 -1
- package/dist/api/utilities/GeometryUtilities.d.ts.map +1 -1
- package/dist/api/window/WindowManager.d.ts +4 -0
- package/dist/api/window/WindowManager.d.ts.map +1 -1
- package/dist/core/rendering/ARenderer.d.ts +5 -5
- package/dist/core/rendering/ARenderer.d.ts.map +1 -1
- package/dist/core/rendering/vertex-buffer-layout.d.ts +1 -0
- package/dist/core/rendering/vertex-buffer-layout.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9238 -4595
- package/dist/webgl/WebGLGraphicsDeviceFeatures.d.ts +4 -0
- package/dist/webgl/WebGLGraphicsDeviceFeatures.d.ts.map +1 -1
- package/dist/webgl/WebGlGraphicsDevice.d.ts.map +1 -1
- package/dist/webgl/WebGlRenderer.d.ts +1 -3
- package/dist/webgl/WebGlRenderer.d.ts.map +1 -1
- package/dist/webgl/lights/WebGlAmbientLightFactory.d.ts +17 -0
- package/dist/webgl/lights/WebGlAmbientLightFactory.d.ts.map +1 -0
- package/dist/webgl/lights/WebGlLightsBuffer.d.ts +59 -0
- package/dist/webgl/lights/WebGlLightsBuffer.d.ts.map +1 -0
- package/dist/webgl/render-pipelines/AWebGlRenderPipeline.d.ts +3 -1
- package/dist/webgl/render-pipelines/AWebGlRenderPipeline.d.ts.map +1 -1
- package/dist/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.d.ts +5 -0
- package/dist/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.d.ts.map +1 -1
- package/dist/webgl/render-pipelines/WebGlRenderPipelineFactory.d.ts +3 -1
- package/dist/webgl/render-pipelines/WebGlRenderPipelineFactory.d.ts.map +1 -1
- package/dist/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.d.ts +3 -1
- package/dist/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.d.ts.map +1 -1
- package/dist/webgl/render-pipelines/material/WebGlBlinnPhongRenderPipeline.d.ts +88 -0
- package/dist/webgl/render-pipelines/material/WebGlBlinnPhongRenderPipeline.d.ts.map +1 -0
- package/dist/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.d.ts +3 -1
- package/dist/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.d.ts.map +1 -1
- package/dist/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.d.ts +3 -1
- package/dist/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.d.ts.map +1 -1
- package/dist/webgl/shader/WebGlShaderModule.d.ts +4 -1
- package/dist/webgl/shader/WebGlShaderModule.d.ts.map +1 -1
- package/dist/webgl/shader/WebGlShaderModuleLoader.d.ts +16 -5
- package/dist/webgl/shader/WebGlShaderModuleLoader.d.ts.map +1 -1
- package/dist/webgl/swap-chain/WebGlSwapChain.d.ts +3 -2
- package/dist/webgl/swap-chain/WebGlSwapChain.d.ts.map +1 -1
- package/dist/webgl/texture/WebGlTexture2D.d.ts +8 -1
- package/dist/webgl/texture/WebGlTexture2D.d.ts.map +1 -1
- package/dist/webgl/texture/WebGlTextureFactory.d.ts +7 -0
- package/dist/webgl/texture/WebGlTextureFactory.d.ts.map +1 -1
- package/dist/webgl/utilities/WebGlConstants.d.ts +91 -0
- package/dist/webgl/utilities/WebGlConstants.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlConverter.d.ts +0 -7
- package/dist/webgl/utilities/WebGlConverter.d.ts.map +1 -1
- package/dist/webgl/utilities/WebGlErrorUtilities.d.ts +10 -0
- package/dist/webgl/utilities/WebGlErrorUtilities.d.ts.map +1 -0
- package/dist/webgl/utilities/WebGlTextureUtilities.d.ts.map +1 -1
- package/dist/webgl/utilities/WebGlUtilities.d.ts +3 -0
- package/dist/webgl/utilities/WebGlUtilities.d.ts.map +1 -1
- package/dist/webgl/utilities/webgl-filter-anisotropic-utilities.d.ts +0 -1
- package/dist/webgl/utilities/webgl-filter-anisotropic-utilities.d.ts.map +1 -1
- package/dist/webgpu/WebGpuGpuInfo.d.ts +28 -0
- package/dist/webgpu/WebGpuGpuInfo.d.ts.map +1 -0
- package/dist/webgpu/WebGpuGraphicsDevice.d.ts +80 -0
- package/dist/webgpu/WebGpuGraphicsDevice.d.ts.map +1 -0
- package/dist/webgpu/WebGpuGraphicsDeviceFeatures.d.ts +26 -0
- package/dist/webgpu/WebGpuGraphicsDeviceFeatures.d.ts.map +1 -0
- package/dist/webgpu/WebGpuRenderer.d.ts +26 -0
- package/dist/webgpu/WebGpuRenderer.d.ts.map +1 -0
- package/dist/webgpu/WebGpuTypes.d.ts +355 -0
- package/dist/webgpu/WebGpuTypes.d.ts.map +1 -0
- package/dist/webgpu/blending/WebGpuBlendState.d.ts +30 -0
- package/dist/webgpu/blending/WebGpuBlendState.d.ts.map +1 -0
- package/dist/webgpu/buffers/WebGpuBuffersFactory.d.ts +20 -0
- package/dist/webgpu/buffers/WebGpuBuffersFactory.d.ts.map +1 -0
- package/dist/webgpu/buffers/WebGpuIndexBuffer.d.ts +46 -0
- package/dist/webgpu/buffers/WebGpuIndexBuffer.d.ts.map +1 -0
- package/dist/webgpu/buffers/WebGpuUniformBuffer.d.ts +43 -0
- package/dist/webgpu/buffers/WebGpuUniformBuffer.d.ts.map +1 -0
- package/dist/webgpu/buffers/WebGpuVertexBuffer.d.ts +49 -0
- package/dist/webgpu/buffers/WebGpuVertexBuffer.d.ts.map +1 -0
- package/dist/webgpu/primitive/WebGpuPrimitiveState.d.ts +32 -0
- package/dist/webgpu/primitive/WebGpuPrimitiveState.d.ts.map +1 -0
- package/dist/webgpu/render-pass/WebGpuRenderPass.d.ts +28 -0
- package/dist/webgpu/render-pass/WebGpuRenderPass.d.ts.map +1 -0
- package/dist/webgpu/render-pipelines/AWebGpuRenderPipeline.d.ts +50 -0
- package/dist/webgpu/render-pipelines/AWebGpuRenderPipeline.d.ts.map +1 -0
- package/dist/webgpu/render-pipelines/WebGpuMainRenderTargetRenderPipeline.d.ts +34 -0
- package/dist/webgpu/render-pipelines/WebGpuMainRenderTargetRenderPipeline.d.ts.map +1 -0
- package/dist/webgpu/render-pipelines/WebGpuRenderPipelineFactory.d.ts +26 -0
- package/dist/webgpu/render-pipelines/WebGpuRenderPipelineFactory.d.ts.map +1 -0
- package/dist/webgpu/render-pipelines/material/AWebGpuMeshRenderPipeline.d.ts +72 -0
- package/dist/webgpu/render-pipelines/material/AWebGpuMeshRenderPipeline.d.ts.map +1 -0
- package/dist/webgpu/render-pipelines/material/WebGpuUnlitRenderPipeline.d.ts +40 -0
- package/dist/webgpu/render-pipelines/material/WebGpuUnlitRenderPipeline.d.ts.map +1 -0
- package/dist/webgpu/sampler/WebGpuSampler.d.ts +39 -0
- package/dist/webgpu/sampler/WebGpuSampler.d.ts.map +1 -0
- package/dist/webgpu/shader/WebGpuShaderModule.d.ts +29 -0
- package/dist/webgpu/shader/WebGpuShaderModule.d.ts.map +1 -0
- package/dist/webgpu/shader/WebGpuShaderModuleLoader.d.ts +21 -0
- package/dist/webgpu/shader/WebGpuShaderModuleLoader.d.ts.map +1 -0
- package/dist/webgpu/shader/WgslShaderContent.d.ts +9 -0
- package/dist/webgpu/shader/WgslShaderContent.d.ts.map +1 -0
- package/dist/webgpu/swap-chain/WebGpuSwapChain.d.ts +41 -0
- package/dist/webgpu/swap-chain/WebGpuSwapChain.d.ts.map +1 -0
- package/dist/webgpu/texture/WebGpuTexture2D.d.ts +47 -0
- package/dist/webgpu/texture/WebGpuTexture2D.d.ts.map +1 -0
- package/dist/webgpu/texture/WebGpuTextureFactory.d.ts +21 -0
- package/dist/webgpu/texture/WebGpuTextureFactory.d.ts.map +1 -0
- package/dist/webgpu/texture/WebGpuTextureView.d.ts +25 -0
- package/dist/webgpu/texture/WebGpuTextureView.d.ts.map +1 -0
- package/dist/webgpu/utilities/WebGpuConverter.d.ts +45 -0
- package/dist/webgpu/utilities/WebGpuConverter.d.ts.map +1 -0
- package/package.json +4 -4
- package/shaders/glsl/forward_blinn_phong_material_fs.glsl +110 -0
- package/shaders/glsl/forward_blinn_phong_material_vs.glsl +32 -0
- package/shaders/glsl/main_render_target_flip_y_fs.glsl +35 -1
- package/shaders/glsl/sprite_fs.glsl +1 -1
- package/shaders/glsl/unlit_material_fs.glsl +1 -1
- package/shaders/wgsl/forward_blinn_phong_material.wgsl +150 -0
- package/shaders/wgsl/inspect_texture_mips.wgsl +51 -0
- package/shaders/wgsl/main_frame_buffer.wgsl +35 -0
- package/shaders/wgsl/main_render_target_flip_y.wgsl +35 -0
- package/shaders/wgsl/sprite.wgsl +40 -0
- package/shaders/wgsl/unlit_material.wgsl +49 -0
- package/src/Framework.ts +156 -48
- package/src/api/IFramework.ts +63 -6
- package/src/api/_export.ts +3 -1
- package/src/api/camera/CameraFactory.ts +6 -6
- package/src/api/camera/ICamera.ts +6 -0
- package/src/api/camera/ICameraFactory.ts +5 -10
- package/src/api/camera/OrthographicCamera.ts +23 -1
- package/src/api/camera/PerspectiveCamera.ts +60 -15
- package/src/api/content/ContentManager.ts +78 -16
- package/src/api/content/IContentManager.ts +37 -1
- package/src/api/content/ShaderModuleContent.ts +9 -0
- package/src/api/data/Color.ts +7 -1
- package/src/api/geometry/BaseGeometry.ts +23 -0
- package/src/api/geometry/GeometryBuilder.ts +14 -2
- package/src/api/geometry/IGeometryBuilder.ts +31 -1
- package/src/api/geometry/_export-geometry.ts +2 -1
- package/src/api/input/InputManager.ts +14 -5
- package/src/api/lights/AmbientLight.ts +53 -0
- package/src/api/lights/DirectionalLight.ts +60 -0
- package/src/api/lights/LightFactory.ts +21 -0
- package/src/api/lights/LightId.ts +9 -0
- package/src/api/lights/LightsBuffer.ts +94 -0
- package/src/api/lights/PointLight.ts +91 -0
- package/src/api/lights/_export.ts +5 -0
- package/src/api/loaders/ObjGeometryMapper.ts +28 -0
- package/src/api/loaders/ObjLoader.ts +126 -0
- package/src/api/loaders/_export.ts +3 -1
- package/src/api/loaders/obj/ObjParser.ts +301 -0
- package/src/api/loaders/obj/ObjTypes.ts +142 -0
- package/src/api/loaders/obj/index.ts +5 -0
- package/src/api/material/ForwardBlinnPhongMaterial.ts +328 -0
- package/src/api/material/ICameraMaterial.ts +22 -0
- package/src/api/material/ILightsMaterial.ts +32 -0
- package/src/api/material/IMaterial.ts +13 -10
- package/src/api/material/IMaterialFactory.ts +19 -2
- package/src/api/material/InspectTextureMipsMaterial.ts +65 -26
- package/src/api/material/MaterialFactory.ts +12 -0
- package/src/api/material/SpriteMaterial.ts +83 -0
- package/src/api/material/UnlitMaterial.ts +105 -32
- package/src/api/material/_export.ts +5 -1
- package/src/api/meshes/IMesh.ts +40 -6
- package/src/api/meshes/IMeshFactory.ts +33 -4
- package/src/api/meshes/IRenderableMesh.ts +58 -0
- package/src/api/meshes/Mesh.ts +50 -43
- package/src/api/meshes/MeshFactory.ts +37 -4
- package/src/api/meshes/QuadMesh.ts +6 -4
- package/src/api/meshes/RenderableMesh.ts +207 -0
- package/src/api/meshes/_export.ts +6 -4
- package/src/api/rendering/IGraphicsDeviceFeatures.ts +28 -21
- package/src/api/rendering/IRenderer.ts +34 -1
- package/src/api/rendering/enums.ts +10 -0
- package/src/api/rendering/render-pipelines/IForwardBlinnPhongRenderPipeline.ts +66 -0
- package/src/api/rendering/render-pipelines/IRenderPipeline.ts +4 -0
- package/src/api/rendering/render-pipelines/IRenderPipelineFactory.ts +39 -0
- package/src/api/rendering/render-pipelines/_export-render-pipelines.ts +2 -1
- package/src/api/rendering/renderer-interface.ts +1 -36
- package/src/api/rendering/renderpass/RenderPassDescriptor.ts +10 -14
- package/src/api/rendering/swapchain/ISwapChain.ts +1 -3
- package/src/api/rendering/texture/TextureFormat.ts +128 -14
- package/src/api/rendering/texture/TextureUtilities.ts +225 -10
- package/src/api/scene/Scene.ts +297 -0
- package/src/api/scene/SceneMesh.ts +61 -0
- package/src/api/shader/IShaderModuleLoader.ts +2 -1
- package/src/api/sprites/SpriteBatchDrawable.ts +12 -16
- package/src/api/sprites/SpriteBatchMesh.ts +22 -3
- package/src/api/utilities/AlignUtilities.ts +2 -1
- package/src/api/utilities/GeometryUtilities.ts +2 -0
- package/src/api/window/WindowManager.ts +23 -3
- package/src/core/rendering/ARenderer.ts +24 -15
- package/src/core/rendering/vertex-buffer-layout.ts +32 -1
- package/src/index.ts +0 -1
- package/src/main.ts +2 -4
- package/src/webgl/WebGLGraphicsDeviceFeatures.ts +12 -2
- package/src/webgl/WebGlGpuInfo.ts +1 -1
- package/src/webgl/WebGlGraphicsDevice.ts +0 -1
- package/src/webgl/WebGlRenderer.ts +2 -5
- package/src/webgl/lights/WebGlAmbientLightFactory.ts +35 -0
- package/src/webgl/lights/WebGlLightsBuffer.ts +225 -0
- package/src/webgl/render-pipelines/AWebGlRenderPipeline.ts +7 -1
- package/src/webgl/render-pipelines/WebGlMainRenderTargetRenderPipeline.ts +21 -1
- package/src/webgl/render-pipelines/WebGlRenderPipelineFactory.ts +24 -2
- package/src/webgl/render-pipelines/inspect/WebGlInspectTextureMipsRenderPipeline.ts +16 -6
- package/src/webgl/render-pipelines/material/WebGlBlinnPhongRenderPipeline.ts +300 -0
- package/src/webgl/render-pipelines/material/WebGlUnlitRenderPipeline.ts +16 -6
- package/src/webgl/render-pipelines/sprite/WebGlSpriteRenderPipeline.ts +11 -7
- package/src/webgl/shader/WebGlShaderModule.ts +11 -4
- package/src/webgl/shader/WebGlShaderModuleLoader.ts +29 -10
- package/src/webgl/swap-chain/WebGlSwapChain.ts +7 -6
- package/src/webgl/texture/WebGlTexture2D.ts +19 -5
- package/src/webgl/texture/WebGlTextureFactory.ts +49 -7
- package/src/webgl/utilities/WebGlConstants.ts +136 -0
- package/src/webgl/utilities/WebGlConverter.ts +91 -22
- package/src/webgl/utilities/WebGlErrorUtilities.ts +15 -0
- package/src/webgl/utilities/WebGlTextureUtilities.ts +5 -2
- package/src/webgl/utilities/WebGlUtilities.ts +4 -0
- package/src/webgl/utilities/webgl-filter-anisotropic-utilities.ts +9 -6
- package/src/webgpu/WebGpuGpuInfo.ts +61 -0
- package/src/webgpu/WebGpuGraphicsDevice.ts +199 -0
- package/src/webgpu/WebGpuGraphicsDeviceFeatures.ts +41 -0
- package/src/webgpu/WebGpuRenderer.ts +49 -0
- package/src/webgpu/WebGpuTypes.ts +288 -0
- package/src/webgpu/blending/WebGpuBlendState.ts +53 -0
- package/src/webgpu/buffers/WebGpuBuffersFactory.ts +46 -0
- package/src/webgpu/buffers/WebGpuIndexBuffer.ts +118 -0
- package/src/webgpu/buffers/WebGpuUniformBuffer.ts +102 -0
- package/src/webgpu/buffers/WebGpuVertexBuffer.ts +119 -0
- package/src/webgpu/primitive/WebGpuPrimitiveState.ts +52 -0
- package/src/webgpu/render-pass/WebGpuRenderPass.ts +131 -0
- package/src/webgpu/render-pipelines/AWebGpuRenderPipeline.ts +123 -0
- package/src/webgpu/render-pipelines/WebGpuMainRenderTargetRenderPipeline.ts +119 -0
- package/src/webgpu/render-pipelines/WebGpuRenderPipelineFactory.ts +66 -0
- package/src/webgpu/render-pipelines/material/AWebGpuMeshRenderPipeline.ts +249 -0
- package/src/webgpu/render-pipelines/material/WebGpuUnlitRenderPipeline.ts +101 -0
- package/src/webgpu/sampler/WebGpuSampler.ts +84 -0
- package/src/webgpu/shader/WebGpuShaderModule.ts +65 -0
- package/src/webgpu/shader/WebGpuShaderModuleLoader.ts +38 -0
- package/src/webgpu/shader/WgslShaderContent.ts +20 -0
- package/src/webgpu/swap-chain/WebGpuSwapChain.ts +93 -0
- package/src/webgpu/texture/WebGpuTexture2D.ts +197 -0
- package/src/webgpu/texture/WebGpuTextureFactory.ts +118 -0
- package/src/webgpu/texture/WebGpuTextureView.ts +43 -0
- package/src/webgpu/utilities/WebGpuConverter.ts +299 -0
- package/src/wgsl-raw.d.ts +4 -0
- package/dist/api/FrameworkConfiguration.d.ts +0 -23
- package/dist/api/FrameworkConfiguration.d.ts.map +0 -1
- package/dist/api/IFrameworkConfiguration.d.ts +0 -25
- package/dist/api/IFrameworkConfiguration.d.ts.map +0 -1
- package/dist/api/shader/shader-loader.d.ts.map +0 -1
- package/src/api/FrameworkConfiguration.ts +0 -29
- package/src/api/IFrameworkConfiguration.ts +0 -30
- /package/src/api/shader/{shader-loader.ts → ShaderLoader.ts} +0 -0
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import type { ICamera } from "../camera/ICamera.js";
|
|
2
|
+
import type { GeometryFormat } from "../geometry/GeometryFormat.js";
|
|
3
|
+
import type { IRenderableMesh } from "../meshes/IRenderableMesh.js";
|
|
1
4
|
import type { IShaderModuleLoader } from "../shader/IShaderModuleLoader.js";
|
|
2
5
|
import type { IShaderModule } from "../shader/IShaderModule.js";
|
|
3
6
|
import type { ITexture2D } from "../rendering/texture/ITexture2D.js";
|
|
4
7
|
import { TextureDescriptor } from "../rendering/texture/TextureDescriptor.js";
|
|
5
8
|
import { ContentConfig } from "./ContentConfig.js";
|
|
6
9
|
import type { IKtx2Texture } from "ris-ktx2";
|
|
10
|
+
import type { IMesh } from "../meshes/IMesh.js";
|
|
7
11
|
/**
|
|
8
12
|
* The content manager.
|
|
9
13
|
*/
|
|
@@ -22,9 +26,12 @@ export interface IContentManager {
|
|
|
22
26
|
/**
|
|
23
27
|
* Loads a shader module.
|
|
24
28
|
* @param shaderAssetId - The id of a shader asset.
|
|
29
|
+
* @param keyValueDictionary - If present, tries to find key in shader such that it replaced ##DIRECTIONAL_LIGHT_COUNT## by given value for key DIRECTIONAL_LIGHST_COUNT.
|
|
25
30
|
* @returns The shader module.
|
|
26
31
|
*/
|
|
27
|
-
loadShaderModule(shaderAssetId: string
|
|
32
|
+
loadShaderModule(shaderAssetId: string, keyValueDictionary?: {
|
|
33
|
+
[id: string]: number;
|
|
34
|
+
}): IShaderModule;
|
|
28
35
|
/**
|
|
29
36
|
* Loads a texture2D.
|
|
30
37
|
* @param path - The file path to the texture.
|
|
@@ -33,5 +40,32 @@ export interface IContentManager {
|
|
|
33
40
|
* @returns The Texture2D.
|
|
34
41
|
*/
|
|
35
42
|
loadTexture2DAsync(path: string, desc?: TextureDescriptor, contentConfig?: ContentConfig): Promise<ITexture2D>;
|
|
43
|
+
/**
|
|
44
|
+
* Loads a plain mesh (geometry and buffers only, no material or transform) from an OBJ (Wavefront) file,
|
|
45
|
+
* like C# `ContentManager.LoadMesh`. Materials (.mtl) are not loaded.
|
|
46
|
+
* @param path The path or url to the .obj file.
|
|
47
|
+
* @param geometryFormat The vertex layout of the buffers, e.g. the format of the material it will be drawn with.
|
|
48
|
+
* @return The mesh.
|
|
49
|
+
*/
|
|
50
|
+
loadMeshAsync(path: string, geometryFormat: GeometryFormat): Promise<IMesh>;
|
|
51
|
+
/**
|
|
52
|
+
* Loads an OBJ mesh with unlit materials, through `framework.objLoader`.
|
|
53
|
+
* The root mesh has no material; each `usemtl` range is a sub mesh with an unlit material
|
|
54
|
+
* (`Kd` as diffuse colour, `d` as alpha, white when missing). Add it with `scene.add(mesh)`.
|
|
55
|
+
* @param path The path or url to the .obj file.
|
|
56
|
+
* @param camera The optional camera; `scene.update()` assigns the scene camera anyway.
|
|
57
|
+
* @return The root mesh.
|
|
58
|
+
*/
|
|
59
|
+
loadUnlitMeshAsync(path: string, camera?: ICamera): Promise<IRenderableMesh>;
|
|
60
|
+
/**
|
|
61
|
+
* Loads an OBJ mesh with Blinn-Phong materials: shorthand for
|
|
62
|
+
* `framework.objLoader.loadAsync(path, {projectionViewBuffer: camera.projectionViewBuffer, cameraPositionBuffer: camera.positionBuffer})`.
|
|
63
|
+
* See `ObjLoader.loadAsync` for the .mtl mapping. Add it with `scene.add(mesh)`; the scene assigns its camera and lights.
|
|
64
|
+
* @param path The path or url to the .obj file. A relative `mtllib` is resolved against it.
|
|
65
|
+
* @param camera An initialized camera (e.g. `scene.camera`).
|
|
66
|
+
* @return The root mesh.
|
|
67
|
+
* @throws Error when the camera has no buffers.
|
|
68
|
+
*/
|
|
69
|
+
loadBlinnPhongMeshAsync(path: string, camera: ICamera): Promise<IRenderableMesh>;
|
|
36
70
|
}
|
|
37
71
|
//# sourceMappingURL=IContentManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IContentManager.d.ts","sourceRoot":"","sources":["../../../src/api/content/IContentManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"IContentManager.d.ts","sourceRoot":"","sources":["../../../src/api/content/IContentManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAC,iBAAiB,EAAC,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,oBAAoB,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,eAAe;IAE5B;;OAEG;IACH,QAAQ,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IAEjD;;;;;OAKG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE3E;;;;;OAKG;IACH,gBAAgB,CAAC,aAAa,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE;QAAE,CAAC,EAAE,EAAC,MAAM,GAAG,MAAM,CAAA;KAAC,GAAG,aAAa,CAAC;IAEpG;;;;;;OAMG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAE/G;;;;;;OAMG;IACH,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAE5E;;;;;;;OAOG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAE7E;;;;;;;;OAQG;IACH,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAEpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShaderModuleContent.d.ts","sourceRoot":"","sources":["../../../src/api/content/ShaderModuleContent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ShaderModuleContent.d.ts","sourceRoot":"","sources":["../../../src/api/content/ShaderModuleContent.ts"],"names":[],"mappings":"AAYA;;;;;;;;;GASG;AAGH,eAAO,MAAM,mBAAmB,EAAG;IAAC,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG,CAAA;CA+BpD,CAAA"}
|
package/dist/api/data/Color.d.ts
CHANGED
|
@@ -115,5 +115,10 @@ export declare class Color implements Iterable<number> {
|
|
|
115
115
|
* @param o - The color that receives value.
|
|
116
116
|
*/
|
|
117
117
|
lerp(a: Color, b: Color, t: number, o: Color): void;
|
|
118
|
+
/**
|
|
119
|
+
* Copy self and return new instance with same values.
|
|
120
|
+
* @return Color
|
|
121
|
+
* */
|
|
122
|
+
copy(): Color;
|
|
118
123
|
}
|
|
119
124
|
//# sourceMappingURL=Color.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../src/api/data/Color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,qBAAa,KAAM,YAAW,QAAQ,CAAC,MAAM,CAAC;IAE1C,OAAO,CAAC,OAAO,CAAa;IAE5B;;;;;;OAMG;gBAEE,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,SAAI;IAQV,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC;IAI/C;;OAEG;IACH,IAAW,CAAC,IAAK,MAAM,CAEtB;IAED,IAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;IACH,IAAW,CAAC,IAAK,MAAM,CAEtB;IAED,IAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;IACH,IAAW,CAAC,IAAK,MAAM,CAEtB;IAED,IAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;IACH,IAAW,CAAC,IAAK,MAAM,CAEtB;IAED,IAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;WACW,KAAK,IAAI,KAAK;IAI5B;;OAEG;WACW,KAAK,IAAI,KAAK;IAI5B,6BAA6B;WACf,WAAW;IAIzB;;OAEG;WACW,SAAS,IAAI,KAAK;IAIhC;;OAEG;WACW,GAAG,IAAI,KAAK;IAI1B;;OAEG;WACW,KAAK,IAAI,KAAK;IAI5B;;OAEG;WACW,IAAI,IAAI,KAAK;IAI3B;;OAEG;WACW,IAAI,IAAI,KAAK;IAI3B;;OAEG;WACW,MAAM,IAAI,KAAK;IAI7B;;OAEG;WACW,KAAK,IAAI,KAAK;IAI5B;;OAEG;WACW,UAAU,IAAI,KAAK;IAIjC;;OAEG;WACW,SAAS,IAAI,KAAK;IAIhC;;OAEG;WACW,gBAAgB,IAAI,KAAK;IAIvC;;OAEG;WACW,MAAM,IAAI,KAAK;IAI7B;;;OAGG;IACI,GAAG,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAO9B;;;OAGG;IACI,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAOpC;;;OAGG;IACI,SAAS,IAAI,IAAI;IAIxB;;;OAGG;IACI,SAAS,IAAI,IAAI;IAIxB;;;;;;OAMG;IACI,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"Color.d.ts","sourceRoot":"","sources":["../../../src/api/data/Color.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,qBAAa,KAAM,YAAW,QAAQ,CAAC,MAAM,CAAC;IAE1C,OAAO,CAAC,OAAO,CAAa;IAE5B;;;;;;OAMG;gBAEE,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,SAAI;IAQV,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE,GAAG,CAAC;IAI/C;;OAEG;IACH,IAAW,CAAC,IAAK,MAAM,CAEtB;IAED,IAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;IACH,IAAW,CAAC,IAAK,MAAM,CAEtB;IAED,IAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;IACH,IAAW,CAAC,IAAK,MAAM,CAEtB;IAED,IAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;IACH,IAAW,CAAC,IAAK,MAAM,CAEtB;IAED,IAAW,CAAC,CAAC,KAAK,EAAE,MAAM,EAEzB;IAED;;OAEG;WACW,KAAK,IAAI,KAAK;IAI5B;;OAEG;WACW,KAAK,IAAI,KAAK;IAI5B,6BAA6B;WACf,WAAW;IAIzB;;OAEG;WACW,SAAS,IAAI,KAAK;IAIhC;;OAEG;WACW,GAAG,IAAI,KAAK;IAI1B;;OAEG;WACW,KAAK,IAAI,KAAK;IAI5B;;OAEG;WACW,IAAI,IAAI,KAAK;IAI3B;;OAEG;WACW,IAAI,IAAI,KAAK;IAI3B;;OAEG;WACW,MAAM,IAAI,KAAK;IAI7B;;OAEG;WACW,KAAK,IAAI,KAAK;IAI5B;;OAEG;WACW,UAAU,IAAI,KAAK;IAIjC;;OAEG;WACW,SAAS,IAAI,KAAK;IAIhC;;OAEG;WACW,gBAAgB,IAAI,KAAK;IAIvC;;OAEG;WACW,MAAM,IAAI,KAAK;IAI7B;;;OAGG;IACI,GAAG,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAO9B;;;OAGG;IACI,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAOpC;;;OAGG;IACI,SAAS,IAAI,IAAI;IAIxB;;;OAGG;IACI,SAAS,IAAI,IAAI;IAIxB;;;;;;OAMG;IACI,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK;IAOnD;;;SAGK;IACE,IAAI,IAAI,KAAK;CAGvB"}
|
|
@@ -5,6 +5,15 @@ import type { IGeometry } from "../index.js";
|
|
|
5
5
|
* The default IGeometry implementation. GeometryBuilder fills it with vertex data.
|
|
6
6
|
*/
|
|
7
7
|
export declare class BaseGeometry implements IGeometry {
|
|
8
|
+
/**
|
|
9
|
+
* Initializes a new instance of the BaseGeometry class.
|
|
10
|
+
* @param positions The optional positions of the geometry.
|
|
11
|
+
* @param indices The optional indices of the geometry.
|
|
12
|
+
* @param normals The optional normals of the geometry.
|
|
13
|
+
* @param textureCoords The optional texture coordinates of the geometry.
|
|
14
|
+
* @param colors The optional colors of the geometry.
|
|
15
|
+
*/
|
|
16
|
+
constructor(positions?: number[], indices?: number[], normals?: number[], textureCoords?: number[], colors?: number[]);
|
|
8
17
|
/** @inheritdoc */
|
|
9
18
|
vertexCount: number;
|
|
10
19
|
/** @inheritdoc */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseGeometry.d.ts","sourceRoot":"","sources":["../../../src/api/geometry/BaseGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseGeometry.d.ts","sourceRoot":"","sources":["../../../src/api/geometry/BaseGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAG3C;;GAEG;AACH,qBAAa,YAAa,YAAW,SAAS;IAE1C;;;;;;;OAOG;gBACS,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE;IAcrH,kBAAkB;IACX,WAAW,EAAE,MAAM,CAAK;IAE/B,kBAAkB;IACX,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B,kBAAkB;IACX,eAAe,EAAE,YAAY,CAA2B;IAE/D,kBAAkB;IACX,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAEzB,kBAAkB;IACX,WAAW,EAAE,YAAY,CAA2B;IAE3D,kBAAkB;IACX,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC,kBAAkB;IACX,aAAa,EAAE,YAAY,CAA2B;IAE7D,kBAAkB;IACX,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B,kBAAkB;IACX,aAAa,EAAE,YAAY,CAA2B;IAE7D,+BAA+B;IACxB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAE1B;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU;IA6ClB;;;;OAIG;IACI,aAAa,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,EAAE;CA+DzD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { vec2 } from "gl-matrix";
|
|
2
|
-
import type { IGeometry, IGeometryBuilder } from "../index.js";
|
|
2
|
+
import type { IGeometry, IGeometryBuilder, GeometryDescriptor } from "../index.js";
|
|
3
3
|
/**
|
|
4
4
|
* The GeometryBuilder class provides methods for creating various types of geometries, such as quads, with specified parameters like scale and winding order.
|
|
5
5
|
*/
|
|
@@ -7,5 +7,7 @@ export declare class GeometryBuilder implements IGeometryBuilder {
|
|
|
7
7
|
static DEFAULT_SCALE: vec2;
|
|
8
8
|
/** @inheritdoc */
|
|
9
9
|
quadGeometry(scale?: vec2 | null, counterClockwise?: boolean): IGeometry;
|
|
10
|
+
/** @inheritdoc */
|
|
11
|
+
create(descriptor: GeometryDescriptor): IGeometry;
|
|
10
12
|
}
|
|
11
13
|
//# sourceMappingURL=GeometryBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GeometryBuilder.d.ts","sourceRoot":"","sources":["../../../src/api/geometry/GeometryBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,KAAK,EAAC,SAAS,EAAE,gBAAgB,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"GeometryBuilder.d.ts","sourceRoot":"","sources":["../../../src/api/geometry/GeometryBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,KAAK,EAAC,SAAS,EAAE,gBAAgB,EAAE,kBAAkB,EAAC,MAAM,aAAa,CAAC;AAEjF;;GAEG;AACH,qBAAa,eAAgB,YAAW,gBAAgB;IAEpD,MAAM,CAAC,aAAa,OAAwB;IAE5C,kBAAkB;IACX,YAAY,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,gBAAgB,GAAE,OAAc,GAAG,SAAS;IA8CrF,kBAAkB;IACX,MAAM,CAAC,UAAU,EAAE,kBAAkB,GAAG,SAAS;CAU3D"}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import type { IGeometry } from "./IGeometry.js";
|
|
2
2
|
import { vec2 } from "gl-matrix";
|
|
3
|
+
/**
|
|
4
|
+
* The geometry descriptor.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface GeometryDescriptor {
|
|
8
|
+
/** Positions, 3 per vertex. */
|
|
9
|
+
readonly positions: number[];
|
|
10
|
+
/** Triangle indices, 3 per triangle. Optional for non-indexed geometry. */
|
|
11
|
+
readonly indices?: number[];
|
|
12
|
+
/** Normals, 3 per vertex. */
|
|
13
|
+
readonly normals?: number[];
|
|
14
|
+
/** Texture coordinates, 2 per vertex. */
|
|
15
|
+
readonly textureCoords?: number[];
|
|
16
|
+
/** RGBA colours, 4 per vertex. */
|
|
17
|
+
readonly colors?: number[];
|
|
18
|
+
}
|
|
3
19
|
/**
|
|
4
20
|
* The geometry builder.
|
|
5
21
|
*/
|
|
@@ -11,5 +27,13 @@ export interface IGeometryBuilder {
|
|
|
11
27
|
* @returns The geometry.
|
|
12
28
|
*/
|
|
13
29
|
quadGeometry(scale?: vec2, counterClockwise?: boolean): IGeometry;
|
|
30
|
+
/**
|
|
31
|
+
* Creates geometry from a plain descriptor.
|
|
32
|
+
* Attributes a material's geometry format needs but the descriptor lacks are filled with defaults:
|
|
33
|
+
* white colours, zero texture coordinates and zero normals.
|
|
34
|
+
* @param descriptor - The geometry descriptor. Its arrays are copied.
|
|
35
|
+
* @returns The geometry.
|
|
36
|
+
*/
|
|
37
|
+
create(descriptor: GeometryDescriptor): IGeometry;
|
|
14
38
|
}
|
|
15
39
|
//# sourceMappingURL=IGeometryBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IGeometryBuilder.d.ts","sourceRoot":"","sources":["../../../src/api/geometry/IGeometryBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAEjC;;;;;OAKG;IACD,YAAY,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"IGeometryBuilder.d.ts","sourceRoot":"","sources":["../../../src/api/geometry/IGeometryBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IAE/B,+BAA+B;IAC/B,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAE7B,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B,6BAA6B;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAE5B,yCAAyC;IACzC,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAElC,kCAAkC;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAEjC;;;;;OAKG;IACD,YAAY,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEpE;;;;;;OAMG;IACD,MAAM,CAAC,UAAU,EAAE,kBAAkB,GAAG,SAAS,CAAC;CACnD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_export-geometry.d.ts","sourceRoot":"","sources":["../../../src/api/geometry/_export-geometry.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"_export-geometry.d.ts","sourceRoot":"","sources":["../../../src/api/geometry/_export-geometry.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
@@ -13,6 +13,8 @@ export declare class InputManager implements IInputManager {
|
|
|
13
13
|
private readonly _touchCapabilities;
|
|
14
14
|
private readonly _contacts;
|
|
15
15
|
private _touchListening;
|
|
16
|
+
/** Aborting it removes every canvas listener added in initialize(). */
|
|
17
|
+
private _listeners;
|
|
16
18
|
/** Set in update, consumed in afterUpdate. Ageing before a publish would hide the press. */
|
|
17
19
|
private _touchPublished;
|
|
18
20
|
private static readonly _PHASE_BEGIN;
|
|
@@ -34,6 +36,8 @@ export declare class InputManager implements IInputManager {
|
|
|
34
36
|
getTouchCollection(): TouchCollection;
|
|
35
37
|
/** @inheritDoc */
|
|
36
38
|
getTouchCapabilities(): TouchPanelCapabilities;
|
|
39
|
+
/** Removes the canvas listeners. Called from `Framework.dispose()`. */
|
|
40
|
+
dispose(): void;
|
|
37
41
|
/** @inheritDoc */
|
|
38
42
|
initialize(): void;
|
|
39
43
|
private _handleMouseEvents;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputManager.d.ts","sourceRoot":"","sources":["../../../src/api/input/InputManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,aAAa,EAEb,UAAU,EACV,eAAe,EAEf,sBAAsB,EACzB,MAAM,aAAa,CAAC;AAmCrB,qBAAa,YAAa,YAAW,aAAa;
|
|
1
|
+
{"version":3,"file":"InputManager.d.ts","sourceRoot":"","sources":["../../../src/api/input/InputManager.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,aAAa,EAEb,UAAU,EACV,eAAe,EAEf,sBAAsB,EACzB,MAAM,aAAa,CAAC;AAmCrB,qBAAa,YAAa,YAAW,aAAa;IAmC3B,OAAO,CAAC,QAAQ,CAAC,UAAU;IAjC9C,OAAO,CAAC,QAAQ,CAAC,eAAe,CAI/B;IAED,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAiB;IAChD,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAiB;IACxD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAiB;IAC7C,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAiB;IACtD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkC;IACnE,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAkC;IAEvE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;IACnD,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAyB;IAC5D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiB;IAC3C,OAAO,CAAC,eAAe,CAAS;IAChC,uEAAuE;IACvE,OAAO,CAAC,UAAU,CAAyB;IAC3C,4FAA4F;IAC5F,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAK;IACzC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAK;IACxC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAK;IACvC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAK;IAC1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAA6C;IAE1F;;;OAGG;gBACiC,UAAU,EAAE,UAAU;IAkB1D,kBAAkB,SAAO;IAGzB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,YAAY;IAIpD,gBAAgB,IAAI,aAAa;IAIjC,kBAAkB;IACX,aAAa,IAAI,UAAU;IAIlC,kBAAkB;IACX,kBAAkB,IAAI,eAAe;IAI5C,kBAAkB;IACX,oBAAoB,IAAI,sBAAsB;IAIrD,uEAAuE;IAChE,OAAO,IAAI,IAAI;IAMtB,kBAAkB;IACX,UAAU,IAAI,IAAI;IAOzB,OAAO,CAAC,kBAAkB;IA0C1B,OAAO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAG5B;IAEF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAG3B;IAEF,OAAO,CAAC,QAAQ,CAAC,WAAW,CAE1B;IAEF,OAAO,CAAC,QAAQ,CAAC,cAAc,CAE7B;IAEF,OAAO,CAAC,yBAAyB;IAMjC,OAAO,CAAC,YAAY;IAsBpB,OAAO,CAAC,WAAW;IAmBnB,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,SAAS;IAyBjB,OAAO,CAAC,YAAY;IAoBpB,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,0BAA0B;IASlC,OAAO,CAAC,YAAY;IAYpB,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,aAAa;IAWrB,OAAO,CAAC,wBAAwB;IAShC;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAqCxB,OAAO,CAAC,eAAe;IAoCvB;;;OAGG;IACH,OAAO,CAAC,WAAW;IA+BnB,kBAAkB;IACX,MAAM,IAAI,IAAI;IAOrB,kBAAkB;IACX,WAAW,IAAI,IAAI;CAiB7B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Color } from "../data/Color.js";
|
|
2
|
+
import type { Scene } from "../scene/Scene.js";
|
|
3
|
+
/** The descriptor for an ambient light. All fields are optional. */
|
|
4
|
+
export interface AmbientLightDescriptor {
|
|
5
|
+
/** The unique id. Assigned automatically when omitted. */
|
|
6
|
+
id?: number;
|
|
7
|
+
/** The optional name for a light. */
|
|
8
|
+
name?: string;
|
|
9
|
+
/** The light colour. Alpha is ignored. Defaults to black. */
|
|
10
|
+
color?: Color;
|
|
11
|
+
/** Multiplies the colour. Defaults to 1. */
|
|
12
|
+
intensity?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* The ambient light. Plain data: it has no GPU resources.
|
|
16
|
+
* Put it into a {@link LightsBuffer} to use it in shaders.
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
export declare class AmbientLight {
|
|
20
|
+
/**
|
|
21
|
+
* The constructor.
|
|
22
|
+
* @param descriptor The optional descriptor. The colour is copied.
|
|
23
|
+
* @param scene The optional scene to register with.
|
|
24
|
+
*/
|
|
25
|
+
constructor(descriptor?: AmbientLightDescriptor, scene?: Scene);
|
|
26
|
+
/** The unique id of this light. */
|
|
27
|
+
readonly id: number;
|
|
28
|
+
/** The optional name for a light. */
|
|
29
|
+
name?: string;
|
|
30
|
+
/** The light color. Alpha is ignored. */
|
|
31
|
+
color: Color;
|
|
32
|
+
/** Multiplies {@link color} when written to the lights buffer. */
|
|
33
|
+
intensity: number;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=AmbientLight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbientLight.d.ts","sourceRoot":"","sources":["../../../src/api/lights/AmbientLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAEvC,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAE7C,oEAAoE;AACpE,MAAM,WAAW,sBAAsB;IACnC,0DAA0D;IAC1D,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6DAA6D;IAC7D,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,qBAAa,YAAY;IAErB;;;;OAIG;gBACgB,UAAU,CAAC,EAAE,sBAAsB,EAAE,KAAK,CAAC,EAAE,KAAK;IAUrE,mCAAmC;IACnC,SAAgB,EAAE,EAAE,MAAM,CAAC;IAE3B,qCAAqC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAErB,yCAAyC;IAClC,KAAK,EAAE,KAAK,CAAC;IAEpB,kEAAkE;IAC3D,SAAS,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { vec3 } from "gl-matrix";
|
|
2
|
+
import { Color } from "../data/Color.js";
|
|
3
|
+
import type { Scene } from "../scene/Scene.js";
|
|
4
|
+
/** The descriptor for a directional light. All fields are optional. */
|
|
5
|
+
export interface DirectionalLightDescriptor {
|
|
6
|
+
/** The unique id. Assigned automatically when omitted. */
|
|
7
|
+
id?: number;
|
|
8
|
+
/** The optional name for a light. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** The light colour. Alpha is ignored. Defaults to white. */
|
|
11
|
+
color?: Color;
|
|
12
|
+
/** Multiplies the colour. Defaults to 1. */
|
|
13
|
+
intensity?: number;
|
|
14
|
+
/** The direction in which the light travels. Defaults to straight down, (0, -1, 0). */
|
|
15
|
+
direction?: vec3;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The directional light. Plain data: it has no GPU resources.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export declare class DirectionalLight {
|
|
22
|
+
/**
|
|
23
|
+
* The constructor.
|
|
24
|
+
* @param descriptor The optional descriptor. Colour and direction are copied.
|
|
25
|
+
* @param scene The optional scene; the light adds itself via {@link Scene.add}.
|
|
26
|
+
* @throws Error when the scene has no free directional light slot left (the light is then not in the scene).
|
|
27
|
+
*/
|
|
28
|
+
constructor(descriptor?: DirectionalLightDescriptor, scene?: Scene);
|
|
29
|
+
/** The unique id of this light. */
|
|
30
|
+
readonly id: number;
|
|
31
|
+
/** The optional name for a light. */
|
|
32
|
+
name?: string;
|
|
33
|
+
/** The light colour. Alpha is ignored. */
|
|
34
|
+
color: Color;
|
|
35
|
+
/** Multiplies {@link color} when written to the lights buffer. */
|
|
36
|
+
intensity: number;
|
|
37
|
+
/** The direction in which the light travels. */
|
|
38
|
+
direction: vec3;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=DirectionalLight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../src/api/lights/DirectionalLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAEvC,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAE7C,uEAAuE;AACvE,MAAM,WAAW,0BAA0B;IACvC,0DAA0D;IAC1D,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6DAA6D;IAC7D,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,uFAAuF;IACvF,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAED;;;GAGG;AACH,qBAAa,gBAAgB;IAEzB;;;;;OAKG;gBACgB,UAAU,CAAC,EAAE,0BAA0B,EAAE,KAAK,CAAC,EAAE,KAAK;IAUzE,mCAAmC;IACnC,SAAgB,EAAE,EAAE,MAAM,CAAC;IAE3B,qCAAqC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAErB,0CAA0C;IACnC,KAAK,EAAE,KAAK,CAAC;IAEpB,kEAAkE;IAC3D,SAAS,EAAE,MAAM,CAAC;IAEzB,gDAAgD;IACzC,SAAS,EAAE,IAAI,CAAC;CAC1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AmbientLight, AmbientLightDescriptor } from "./AmbientLight.js";
|
|
2
|
+
import type { Scene } from "../scene/Scene.js";
|
|
3
|
+
import type { LightsBuffer, LightsBufferDescriptor } from "./LightsBuffer.js";
|
|
4
|
+
/** The light factory */
|
|
5
|
+
export interface AmbientLightFactory {
|
|
6
|
+
/**
|
|
7
|
+
* Creates the ambient light.
|
|
8
|
+
* @param desc The descriptor for ambient light. The colour defaults to a dim grey; the id is assigned automatically.
|
|
9
|
+
* @param scene The optional scene to register the light with.
|
|
10
|
+
*/
|
|
11
|
+
createAmbientLight(desc?: AmbientLightDescriptor, scene?: Scene): AmbientLight;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a lights buffer, which owns the uniform buffer with all lights for shaders.
|
|
14
|
+
* @param desc The optional descriptor with the initial lights and directional light count.
|
|
15
|
+
*/
|
|
16
|
+
__createLightsBuffer(desc?: LightsBufferDescriptor): LightsBuffer;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=LightFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LightFactory.d.ts","sourceRoot":"","sources":["../../../src/api/lights/LightFactory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAE,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,EAAC,YAAY,EAAE,sBAAsB,EAAC,MAAM,mBAAmB,CAAC;AAE5E,wBAAwB;AACxB,MAAM,WAAW,mBAAmB;IAEhC;;;;OAIG;IACH,kBAAkB,CAAC,IAAI,CAAC,EAAE,sBAAsB,EAAE,KAAK,CAAC,EAAE,KAAK,GAAG,YAAY,CAAC;IAE/E;;;OAGG;IACH,oBAAoB,CAAC,IAAI,CAAC,EAAE,sBAAsB,GAAG,YAAY,CAAC;CAErE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LightId.d.ts","sourceRoot":"","sources":["../../../src/api/lights/LightId.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { AmbientLight } from "./AmbientLight.js";
|
|
2
|
+
import type { DirectionalLight } from "./DirectionalLight.js";
|
|
3
|
+
import type { PointLight } from "./PointLight.js";
|
|
4
|
+
import type { IUniformBuffer } from "../rendering/buffers/IUniformBuffer.js";
|
|
5
|
+
import type { IDisposable } from "../core/IDisposable.js";
|
|
6
|
+
/** The number of directional lights the lights buffer and the Blinn-Phong shader hold by default. */
|
|
7
|
+
export declare const DEFAULT_DIRECTIONAL_LIGHTS_COUNT = 3;
|
|
8
|
+
/** The number of point lights the lights buffer and the Blinn-Phong shader hold by default. */
|
|
9
|
+
export declare const DEFAULT_POINT_LIGHTS_COUNT = 3;
|
|
10
|
+
/** The descriptor for a lights buffer. */
|
|
11
|
+
export interface LightsBufferDescriptor {
|
|
12
|
+
/** The ambient light. Defaults to a black ambient light. */
|
|
13
|
+
ambientLight?: AmbientLight;
|
|
14
|
+
/** The initial directional lights. More than {@link maxDirectionalLights} throws. */
|
|
15
|
+
directionalLights?: DirectionalLight[];
|
|
16
|
+
/**
|
|
17
|
+
* The number of directional light slots. Must match `DIRECTIONAL_LIGHTS_COUNT` in the shader.
|
|
18
|
+
* Defaults to {@link DEFAULT_DIRECTIONAL_LIGHTS_COUNT}.
|
|
19
|
+
*/
|
|
20
|
+
maxDirectionalLights?: number;
|
|
21
|
+
/** The initial point lights. More than {@link maxPointLights} throws. */
|
|
22
|
+
pointLights?: PointLight[];
|
|
23
|
+
/**
|
|
24
|
+
* The number of point light slots. Must match `POINT_LIGHTS_COUNT` in the shader.
|
|
25
|
+
* Defaults to {@link DEFAULT_POINT_LIGHTS_COUNT}.
|
|
26
|
+
*/
|
|
27
|
+
maxPointLights?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Holds lights and owns the uniform buffer that shaders read them from.
|
|
31
|
+
* Each lit material (`ForwardBlinnPhongMaterial`) owns one.
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
* std140 layout of the `LightsBuffer` block:
|
|
35
|
+
* Every light colour is written premultiplied by its intensity, so the layout has no intensity field.
|
|
36
|
+
* - `vec3 u_ambientLight` at offset 0, padded to 16 bytes.
|
|
37
|
+
* - `DirectionalLight u_directionalLight[N]` from offset 16, 32 bytes each:
|
|
38
|
+
* `vec3 light` at +0 and `vec3 direction` at +16.
|
|
39
|
+
* - `PointLight u_pointLight[M]` after the directional lights, 48 bytes each:
|
|
40
|
+
* `vec3 light` at +0, `float constant` at +12, `vec3 position` at +16, `float linear` at +28, `float quadratic` at +32.
|
|
41
|
+
*/
|
|
42
|
+
export interface LightsBuffer extends IDisposable {
|
|
43
|
+
/** The ambient light written to the buffer. */
|
|
44
|
+
ambientLight: AmbientLight;
|
|
45
|
+
/**
|
|
46
|
+
* The directional lights written to the buffer. Can be replaced by another list, which is then used by reference
|
|
47
|
+
* (a lit material uses the scene's list). Only the first {@link maxDirectionalLights} are written; unused slots are black.
|
|
48
|
+
*/
|
|
49
|
+
directionalLights: DirectionalLight[];
|
|
50
|
+
/** The number of directional light slots in the buffer. */
|
|
51
|
+
readonly maxDirectionalLights: number;
|
|
52
|
+
/**
|
|
53
|
+
* The point lights written to the buffer. Can be replaced by another list, which is then used by reference.
|
|
54
|
+
* Only the first {@link maxPointLights} are written; unused slots are black.
|
|
55
|
+
*/
|
|
56
|
+
pointLights: PointLight[];
|
|
57
|
+
/** The number of point light slots in the buffer. */
|
|
58
|
+
readonly maxPointLights: number;
|
|
59
|
+
/**
|
|
60
|
+
* The uniform buffer holding the lights for shaders.
|
|
61
|
+
* NOTE: Intended to be used internally, never set this value manually.
|
|
62
|
+
*/
|
|
63
|
+
readonly buffer: IUniformBuffer;
|
|
64
|
+
/**
|
|
65
|
+
* Adds a directional or point light. Adding a light that is already in the buffer does nothing.
|
|
66
|
+
* @throws Error when all slots for that kind of light are in use.
|
|
67
|
+
*/
|
|
68
|
+
add(light: DirectionalLight | PointLight): void;
|
|
69
|
+
/**
|
|
70
|
+
* Removes a directional or point light.
|
|
71
|
+
* @returns True when the light was in the buffer.
|
|
72
|
+
*/
|
|
73
|
+
remove(light: DirectionalLight | PointLight): boolean;
|
|
74
|
+
/** Writes the lights to {@link buffer} if anything changed since the last update. Call once per frame before rendering. */
|
|
75
|
+
update(): void;
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=LightsBuffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LightsBuffer.d.ts","sourceRoot":"","sources":["../../../src/api/lights/LightsBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,wCAAwC,CAAC;AAC3E,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;AAExD,qGAAqG;AACrG,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD,+FAA+F;AAC/F,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,0CAA0C;AAC1C,MAAM,WAAW,sBAAsB;IAEnC,4DAA4D;IAC5D,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B,qFAAqF;IACrF,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEvC;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,yEAAyE;IACzE,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAE3B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,YAAa,SAAQ,WAAW;IAE7C,+CAA+C;IAC/C,YAAY,EAAE,YAAY,CAAC;IAE3B;;;OAGG;IACH,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IAEtC,2DAA2D;IAC3D,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IAEtC;;;OAGG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAE1B,qDAAqD;IACrD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAEhC;;;OAGG;IACH,GAAG,CAAC,KAAK,EAAE,gBAAgB,GAAG,UAAU,GAAG,IAAI,CAAC;IAEhD;;;OAGG;IACH,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,UAAU,GAAG,OAAO,CAAC;IAEtD,2HAA2H;IAC3H,MAAM,IAAI,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { vec3 } from "gl-matrix";
|
|
2
|
+
import { Color } from "../data/Color.js";
|
|
3
|
+
import type { Scene } from "../scene/Scene.js";
|
|
4
|
+
/** The descriptor for a point light. All fields are optional. */
|
|
5
|
+
export interface PointLightDescriptor {
|
|
6
|
+
/** The unique id. Assigned automatically when omitted. */
|
|
7
|
+
id?: number;
|
|
8
|
+
/** The optional name for a light. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** The light colour. Alpha is ignored. Defaults to white. */
|
|
11
|
+
color?: Color;
|
|
12
|
+
/** Multiplies the colour. Defaults to 1. */
|
|
13
|
+
intensity?: number;
|
|
14
|
+
/** World-space position. Defaults to the origin. */
|
|
15
|
+
position?: vec3;
|
|
16
|
+
/** Constant attenuation term. Defaults to 1. */
|
|
17
|
+
constant?: number;
|
|
18
|
+
/** Linear attenuation term. Defaults to 0.09 (about 50 units of range). */
|
|
19
|
+
linear?: number;
|
|
20
|
+
/** Quadratic attenuation term. Defaults to 0.032 (about 50 units of range). */
|
|
21
|
+
quadratic?: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The point light. Plain data: it has no GPU resources.
|
|
25
|
+
* Attenuation is `1 / (constant + linear * d + quadratic * d²)` for distance `d`.
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare class PointLight {
|
|
29
|
+
/** The default constant attenuation. */
|
|
30
|
+
static readonly DEFAULT_CONSTANT = 1;
|
|
31
|
+
/** The default linear attenuation. */
|
|
32
|
+
static readonly DEFAULT_LINEAR = 0.09;
|
|
33
|
+
/** The default quadratic attenuation. */
|
|
34
|
+
static readonly DEFAULT_QUADRATIC = 0.032;
|
|
35
|
+
/**
|
|
36
|
+
* The constructor.
|
|
37
|
+
* @param descriptor The optional descriptor. Colour and position are copied.
|
|
38
|
+
* @param scene The optional scene; the light adds itself via {@link Scene.add}.
|
|
39
|
+
* @throws Error when the scene has no free point light slot left (the light is then not in the scene).
|
|
40
|
+
*/
|
|
41
|
+
constructor(descriptor?: PointLightDescriptor, scene?: Scene);
|
|
42
|
+
/** The unique id of this light. */
|
|
43
|
+
readonly id: number;
|
|
44
|
+
/** The optional name for a light. */
|
|
45
|
+
name?: string;
|
|
46
|
+
/** The light colour. Alpha is ignored. */
|
|
47
|
+
color: Color;
|
|
48
|
+
/** Multiplies {@link color} when written to the lights buffer. */
|
|
49
|
+
intensity: number;
|
|
50
|
+
/** World-space position of the light. */
|
|
51
|
+
position: vec3;
|
|
52
|
+
/** Constant attenuation term. */
|
|
53
|
+
constant: number;
|
|
54
|
+
/** Linear attenuation term. */
|
|
55
|
+
linear: number;
|
|
56
|
+
/** Quadratic attenuation term. */
|
|
57
|
+
quadratic: number;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=PointLight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PointLight.d.ts","sourceRoot":"","sources":["../../../src/api/lights/PointLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAC;AAEvC,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAE7C,iEAAiE;AACjE,MAAM,WAAW,oBAAoB;IACjC,0DAA0D;IAC1D,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,6DAA6D;IAC7D,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,IAAI,CAAC;IAEhB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,2EAA2E;IAC3E,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,qBAAa,UAAU;IAEnB,wCAAwC;IACxC,gBAAuB,gBAAgB,KAAK;IAE5C,sCAAsC;IACtC,gBAAuB,cAAc,QAAQ;IAE7C,yCAAyC;IACzC,gBAAuB,iBAAiB,SAAS;IAEjD;;;;;OAKG;gBACgB,UAAU,CAAC,EAAE,oBAAoB,EAAE,KAAK,CAAC,EAAE,KAAK;IAanE,mCAAmC;IACnC,SAAgB,EAAE,EAAE,MAAM,CAAC;IAE3B,qCAAqC;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IAErB,0CAA0C;IACnC,KAAK,EAAE,KAAK,CAAC;IAEpB,kEAAkE;IAC3D,SAAS,EAAE,MAAM,CAAC;IAEzB,yCAAyC;IAClC,QAAQ,EAAE,IAAI,CAAC;IAEtB,iCAAiC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IAExB,+BAA+B;IACxB,MAAM,EAAE,MAAM,CAAC;IAEtB,kCAAkC;IAC3B,SAAS,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_export.d.ts","sourceRoot":"","sources":["../../../src/api/lights/_export.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GeometryDescriptor } from "../geometry/IGeometryBuilder.js";
|
|
2
|
+
import type { ObjGeometryDefinition } from "./obj/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Maps plain OBJ geometry definitions from {@link ObjParser} onto the framework's {@link GeometryDescriptor}.
|
|
5
|
+
* Pass the result to `geometryBuilder.create`.
|
|
6
|
+
* Not part of the public API: `content.loadMeshAsync` and `content.loadBlinnPhongMeshAsync` use it.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare class ObjGeometryMapper {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a geometry descriptor from an OBJ geometry definition.
|
|
12
|
+
* @param definition The geometry definition, e.g. `result.geometry` from `ObjParser.loadAsync`.
|
|
13
|
+
* @param useMaterialColors True keeps the loader's per-vertex `Kd` colours; false (the default) uses white,
|
|
14
|
+
* for when each submesh's material carries the colour instead.
|
|
15
|
+
* @returns The descriptor. It references the definition's arrays; `geometryBuilder.create` copies them.
|
|
16
|
+
*/
|
|
17
|
+
static toDescriptor(definition: ObjGeometryDefinition, useMaterialColors?: boolean): GeometryDescriptor;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=ObjGeometryMapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjGeometryMapper.d.ts","sourceRoot":"","sources":["../../../src/api/loaders/ObjGeometryMapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,gBAAgB,CAAC;AAE1D;;;;;GAKG;AACH,qBAAa,iBAAiB;IAE1B;;;;;;OAMG;WACW,YAAY,CAAC,UAAU,EAAE,qBAAqB,EAAE,iBAAiB,UAAQ,GAAG,kBAAkB;CAS/G"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { IFramework } from "../IFramework.js";
|
|
2
|
+
import type { IRenderableMesh } from "../meshes/IRenderableMesh.js";
|
|
3
|
+
import type { IMaterial } from "../material/IMaterial.js";
|
|
4
|
+
import { ForwardBlinnPhongMaterialDescriptor } from "../material/ForwardBlinnPhongMaterial.js";
|
|
5
|
+
import type { ObjLoadOptions, ObjModel, ObjSubMesh } from "./obj/ObjTypes.js";
|
|
6
|
+
/** Creates the material for one OBJ sub mesh (`usemtl` range). */
|
|
7
|
+
export type ObjMaterialFactory = (subMesh: ObjSubMesh) => IMaterial;
|
|
8
|
+
/**
|
|
9
|
+
* Loads OBJ (Wavefront) models into renderable meshes (C# `ObjLoader`). Available as `framework.objLoader`.
|
|
10
|
+
*
|
|
11
|
+
* The returned root mesh has no material and owns the vertex and index buffers; each `usemtl` range is a sub mesh
|
|
12
|
+
* with its own material (ranges with the same material name share one material instance).
|
|
13
|
+
* Vertex colours are white, the materials carry the colour. Parsing is done by the engine-independent {@link ObjParser}.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export declare class ObjLoader {
|
|
17
|
+
private readonly _framework;
|
|
18
|
+
/** Default specular colour when the .mtl has no `Ks` (0.5 grey). */
|
|
19
|
+
static readonly DEFAULT_SPECULAR = 0.5;
|
|
20
|
+
/** Default shininess when the .mtl has no `Ns`. */
|
|
21
|
+
static readonly DEFAULT_SHININESS = 32;
|
|
22
|
+
/**
|
|
23
|
+
* The constructor.
|
|
24
|
+
* @param _framework The framework.
|
|
25
|
+
*/
|
|
26
|
+
constructor(_framework: IFramework);
|
|
27
|
+
/**
|
|
28
|
+
* Parses an .obj file (and its .mtl files) into plain data. Creates no GPU resources (C# `ObjLoader.Parse`).
|
|
29
|
+
* @param path The .obj URL.
|
|
30
|
+
* @param options Optional: how to resolve `mtllib` names, or skip materials.
|
|
31
|
+
* @returns The model.
|
|
32
|
+
*/
|
|
33
|
+
static parseAsync(path: string, options?: ObjLoadOptions): Promise<ObjModel>;
|
|
34
|
+
/**
|
|
35
|
+
* Loads an .obj file into a renderable mesh with one Blinn-Phong material per `usemtl` range.
|
|
36
|
+
* The .mtl values map onto `ForwardBlinnPhongMaterial`: `Kd` (with `d` as alpha) → diffuse colour (white when missing),
|
|
37
|
+
* `Ka` → ambient colour (falls back to `Kd`), `Ks` → specular colour (0.5 grey), `Ns` → shininess (32).
|
|
38
|
+
* @param path The .obj URL. A relative `mtllib` is resolved against it.
|
|
39
|
+
* @param descriptor The descriptor every material is created with (camera buffers, primitive state).
|
|
40
|
+
* @param options Optional parser options.
|
|
41
|
+
* @returns The root mesh.
|
|
42
|
+
*/
|
|
43
|
+
loadAsync(path: string, descriptor: ForwardBlinnPhongMaterialDescriptor, options?: ObjLoadOptions): Promise<IRenderableMesh>;
|
|
44
|
+
/**
|
|
45
|
+
* Loads an .obj file into a renderable mesh, creating each sub mesh's material with a callback.
|
|
46
|
+
* @param path The .obj URL.
|
|
47
|
+
* @param createMaterial Called once per distinct `usemtl` name.
|
|
48
|
+
* @param options Optional parser options.
|
|
49
|
+
* @returns The root mesh.
|
|
50
|
+
*/
|
|
51
|
+
loadAsync(path: string, createMaterial: ObjMaterialFactory, options?: ObjLoadOptions): Promise<IRenderableMesh>;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a renderable mesh from a parsed model.
|
|
54
|
+
* @param model The model, e.g. from {@link parseAsync}.
|
|
55
|
+
* @param createMaterial Creates the material per distinct `usemtl` name.
|
|
56
|
+
* @returns The root mesh, without a material, with one sub mesh per range.
|
|
57
|
+
*/
|
|
58
|
+
createMesh(model: ObjModel, createMaterial: ObjMaterialFactory): IRenderableMesh;
|
|
59
|
+
private _blinnPhongFactory;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=ObjLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjLoader.d.ts","sourceRoot":"","sources":["../../../src/api/loaders/ObjLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAElE,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAC,mCAAmC,EAAC,MAAM,0CAA0C,CAAC;AAG7F,OAAO,KAAK,EAAC,cAAc,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAG5E,kEAAkE;AAClE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,UAAU,KAAK,SAAS,CAAC;AAEpE;;;;;;;GAOG;AACH,qBAAa,SAAS;IAYC,OAAO,CAAC,QAAQ,CAAC,UAAU;IAV9C,oEAAoE;IACpE,gBAAuB,gBAAgB,OAAO;IAE9C,mDAAmD;IACnD,gBAAuB,iBAAiB,MAAM;IAE9C;;;OAGG;gBACiC,UAAU,EAAE,UAAU;IAG1D;;;;;OAKG;WACW,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAInF;;;;;;;;OAQG;IACI,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,mCAAmC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAEnI;;;;;;OAMG;IACI,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,eAAe,CAAC;IAatH;;;;;OAKG;IACI,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,kBAAkB,GAAG,eAAe;IAyBvF,OAAO,CAAC,kBAAkB;CAiB7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_export.d.ts","sourceRoot":"","sources":["../../../src/api/loaders/_export.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"_export.d.ts","sourceRoot":"","sources":["../../../src/api/loaders/_export.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|