@rings-webgpu/core 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rings.es.js +1 -1
- package/dist/rings.es.js.map +1 -1
- package/dist/rings.es.max.js +478 -478
- package/dist/rings.umd.js +1 -1
- package/dist/rings.umd.js.map +1 -1
- package/dist/rings.umd.max.js +478 -478
- package/dist/types/Engine3D.d.ts +107 -0
- package/dist/types/assets/Fonts.d.ts +20 -0
- package/dist/types/assets/Res.d.ts +74 -0
- package/dist/types/assets/shader/ShaderLib.d.ts +5 -0
- package/dist/types/assets/shader/anim/SkeletonAnimation_shader.d.ts +3 -0
- package/dist/types/assets/shader/cluster/ClusterBoundsSource_cs.d.ts +1 -0
- package/dist/types/assets/shader/cluster/ClusterLighting_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/BRDFLUT.d.ts +1 -0
- package/dist/types/assets/shader/compute/BloomEffect_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/BlurEffectCreator_cs.d.ts +2 -0
- package/dist/types/assets/shader/compute/DDGIIrradiance_Cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/DDGILighting_CSShader.d.ts +4 -0
- package/dist/types/assets/shader/compute/DepthOfView_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/ErpImage2CubeMapCreateCube_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/ErpImage2CubeMapRgbe2rgba_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/GTAO_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/GodRay_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/IBLEnvMapCreator_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/MergeRGBA_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/MultiBouncePass_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/OutLineBlendColor_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/OutlineCalcOutline_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/Outline_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/Picker_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/PreFilteredEnvironment_cs copy.d.ts +1 -0
- package/dist/types/assets/shader/compute/PreFilteredEnvironment_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/PreIntegratedLut.d.ts +1 -0
- package/dist/types/assets/shader/compute/SSAO_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/SSGI2_cs.d.ts +7 -0
- package/dist/types/assets/shader/compute/SSR_BlendColor_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/SSR_IS_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/SSR_RayTrace_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/TAACopyTex_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/TAASharpTex_cs.d.ts +1 -0
- package/dist/types/assets/shader/compute/TAA_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/utils/Combine_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/utils/Denoising_cs.d.ts +4 -0
- package/dist/types/assets/shader/compute/utils/TestComputeLoadBuffer.d.ts +1 -0
- package/dist/types/assets/shader/compute/utils/TextureCompress.d.ts +2 -0
- package/dist/types/assets/shader/compute/utils/tw.d.ts +4 -0
- package/dist/types/assets/shader/core/base/Common_frag.d.ts +1 -0
- package/dist/types/assets/shader/core/base/Common_vert.d.ts +1 -0
- package/dist/types/assets/shader/core/common/BrdfLut_frag.d.ts +1 -0
- package/dist/types/assets/shader/core/common/EnvMap_frag.d.ts +1 -0
- package/dist/types/assets/shader/core/common/GBufferStand.d.ts +1 -0
- package/dist/types/assets/shader/core/common/GlobalUniform.d.ts +4 -0
- package/dist/types/assets/shader/core/common/InstanceUniform.d.ts +1 -0
- package/dist/types/assets/shader/core/common/SHCommon_frag.d.ts +1 -0
- package/dist/types/assets/shader/core/common/WorldMatrixUniform.d.ts +1 -0
- package/dist/types/assets/shader/core/inline/Inline_vert.d.ts +1 -0
- package/dist/types/assets/shader/core/pass/CastShadow_pass.d.ts +4 -0
- package/dist/types/assets/shader/core/pass/FrustumCulling_cs.d.ts +4 -0
- package/dist/types/assets/shader/core/pass/GBuffer_pass.d.ts +1 -0
- package/dist/types/assets/shader/core/pass/SkyGBuffer_pass.d.ts +1 -0
- package/dist/types/assets/shader/core/pass/ZPassShader_cs.d.ts +1 -0
- package/dist/types/assets/shader/core/pass/ZPassShader_fs.d.ts +1 -0
- package/dist/types/assets/shader/core/pass/ZPassShader_vs.d.ts +1 -0
- package/dist/types/assets/shader/core/struct/ClusterLight.d.ts +4 -0
- package/dist/types/assets/shader/core/struct/ColorPassFragmentOutput.d.ts +1 -0
- package/dist/types/assets/shader/core/struct/FragmentOutput.d.ts +1 -0
- package/dist/types/assets/shader/core/struct/FragmentVarying.d.ts +1 -0
- package/dist/types/assets/shader/core/struct/ShadingInput.d.ts +1 -0
- package/dist/types/assets/shader/core/struct/VertexAttributeIndexShader.d.ts +1 -0
- package/dist/types/assets/shader/core/struct/VertexAttributes.d.ts +1 -0
- package/dist/types/assets/shader/env/ReflectionCG.d.ts +1 -0
- package/dist/types/assets/shader/glsl/Quad_glsl.d.ts +2 -0
- package/dist/types/assets/shader/lighting/BRDF_frag.d.ts +4 -0
- package/dist/types/assets/shader/lighting/BsDF_frag.d.ts +4 -0
- package/dist/types/assets/shader/lighting/BxDF_frag.d.ts +4 -0
- package/dist/types/assets/shader/lighting/Hair_frag.d.ts +1 -0
- package/dist/types/assets/shader/lighting/IESProfiles_frag.d.ts +1 -0
- package/dist/types/assets/shader/lighting/IrradianceVolumeData_frag.d.ts +1 -0
- package/dist/types/assets/shader/lighting/Irradiance_frag.d.ts +4 -0
- package/dist/types/assets/shader/lighting/LightingFunction_frag.d.ts +1 -0
- package/dist/types/assets/shader/lighting/UnLit_frag.d.ts +1 -0
- package/dist/types/assets/shader/materials/ColorLitShader.d.ts +1 -0
- package/dist/types/assets/shader/materials/GIProbeShader.d.ts +1 -0
- package/dist/types/assets/shader/materials/GSplatShader.d.ts +2 -0
- package/dist/types/assets/shader/materials/GlassShader.d.ts +1 -0
- package/dist/types/assets/shader/materials/Hair_shader.d.ts +2 -0
- package/dist/types/assets/shader/materials/Lambert_shader.d.ts +1 -0
- package/dist/types/assets/shader/materials/Lit_shader.d.ts +1 -0
- package/dist/types/assets/shader/materials/OutlinePass.d.ts +1 -0
- package/dist/types/assets/shader/materials/PBRLItShader.d.ts +4 -0
- package/dist/types/assets/shader/materials/PBRLitSSSShader.d.ts +4 -0
- package/dist/types/assets/shader/materials/ReflectionShader_shader.d.ts +1 -0
- package/dist/types/assets/shader/materials/UnLit.d.ts +4 -0
- package/dist/types/assets/shader/materials/UnLitTextureArray.d.ts +1 -0
- package/dist/types/assets/shader/materials/program/BxdfDebug_frag.d.ts +4 -0
- package/dist/types/assets/shader/materials/program/Clearcoat_frag.d.ts +1 -0
- package/dist/types/assets/shader/materials/program/ClusterDebug_frag.d.ts +1 -0
- package/dist/types/assets/shader/materials/program/NormalMap_frag.d.ts +4 -0
- package/dist/types/assets/shader/materials/program/ShadowMapping_frag.d.ts +1 -0
- package/dist/types/assets/shader/materials/uniforms/PhysicMaterialUniform_frag.d.ts +1 -0
- package/dist/types/assets/shader/materials/uniforms/UnLitMaterialUniform_frag.d.ts +1 -0
- package/dist/types/assets/shader/materials/uniforms/VideoUniform_frag.d.ts +1 -0
- package/dist/types/assets/shader/math/FastMathShader.d.ts +1 -0
- package/dist/types/assets/shader/math/MathShader.d.ts +4 -0
- package/dist/types/assets/shader/math/MatrixShader.d.ts +1 -0
- package/dist/types/assets/shader/post/FXAAShader.d.ts +1 -0
- package/dist/types/assets/shader/post/GlobalFog_shader.d.ts +4 -0
- package/dist/types/assets/shader/quad/Quad_shader.d.ts +24 -0
- package/dist/types/assets/shader/sky/AtmosphericScatteringSky_shader.d.ts +3 -0
- package/dist/types/assets/shader/sky/CubeSky_Shader.d.ts +4 -0
- package/dist/types/assets/shader/utils/BitUtil.d.ts +1 -0
- package/dist/types/assets/shader/utils/ColorUtil.d.ts +1 -0
- package/dist/types/assets/shader/utils/GenerayRandomDir.d.ts +1 -0
- package/dist/types/components/AtmosphericComponent.d.ts +28 -0
- package/dist/types/components/BillboardComponent.d.ts +13 -0
- package/dist/types/components/ColliderComponent.d.ts +15 -0
- package/dist/types/components/ComponentBase.d.ts +43 -0
- package/dist/types/components/IComponent.d.ts +27 -0
- package/dist/types/components/SkeletonAnimationComponent.d.ts +52 -0
- package/dist/types/components/Transform.d.ts +119 -0
- package/dist/types/components/anim/AnimatorComponent.d.ts +67 -0
- package/dist/types/components/anim/OAnimationEvent.d.ts +6 -0
- package/dist/types/components/anim/curveAnim/AnimationMonitor.d.ts +29 -0
- package/dist/types/components/anim/curveAnim/AttributeAnimCurve.d.ts +8 -0
- package/dist/types/components/anim/curveAnim/PropertyAnimClip.d.ts +29 -0
- package/dist/types/components/anim/curveAnim/PropertyAnimation.d.ts +31 -0
- package/dist/types/components/anim/curveAnim/PropertyAnimationEvent.d.ts +14 -0
- package/dist/types/components/anim/curveAnim/PropertyHelp.d.ts +13 -0
- package/dist/types/components/anim/morphAnim/MorphTargetBlender.d.ts +18 -0
- package/dist/types/components/anim/morphAnim/MorphTargetData.d.ts +52 -0
- package/dist/types/components/anim/morphAnim/MorphTargetFrame.d.ts +68 -0
- package/dist/types/components/anim/morphAnim/MorphTargetKey.d.ts +58 -0
- package/dist/types/components/anim/morphAnim/MorphTarget_shader.d.ts +8 -0
- package/dist/types/components/anim/skeletonAnim/Joint.d.ts +12 -0
- package/dist/types/components/anim/skeletonAnim/JointPose.d.ts +6 -0
- package/dist/types/components/anim/skeletonAnim/Skeleton.d.ts +10 -0
- package/dist/types/components/anim/skeletonAnim/SkeletonAnimationClip.d.ts +22 -0
- package/dist/types/components/anim/skeletonAnim/SkeletonAnimationClipState.d.ts +21 -0
- package/dist/types/components/anim/skeletonAnim/SkeletonAnimationCompute.d.ts +6 -0
- package/dist/types/components/anim/skeletonAnim/SkeletonPose.d.ts +16 -0
- package/dist/types/components/anim/skeletonAnim/buffer/SkeletonBlendComputeArgs.d.ts +23 -0
- package/dist/types/components/anim/skeletonAnim/buffer/SkeletonTransformComputeArgs.d.ts +23 -0
- package/dist/types/components/controller/CameraControllerBase.d.ts +17 -0
- package/dist/types/components/controller/FirstPersonCameraController.d.ts +15 -0
- package/dist/types/components/controller/FlyCameraController.d.ts +36 -0
- package/dist/types/components/controller/HoverCameraController.d.ts +54 -0
- package/dist/types/components/controller/OrbitController.d.ts +170 -0
- package/dist/types/components/controller/ThirdPersonCameraController.d.ts +16 -0
- package/dist/types/components/gui/GUIConfig.d.ts +23 -0
- package/dist/types/components/gui/GUIExtension.d.ts +5 -0
- package/dist/types/components/gui/GUIPick.d.ts +36 -0
- package/dist/types/components/gui/GUIPickHelper.d.ts +25 -0
- package/dist/types/components/gui/core/GUIAtlasTexture.d.ts +16 -0
- package/dist/types/components/gui/core/GUICanvas.d.ts +21 -0
- package/dist/types/components/gui/core/GUIDefine.d.ts +7 -0
- package/dist/types/components/gui/core/GUIGeometry.d.ts +36 -0
- package/dist/types/components/gui/core/GUIGeometryRebuild.d.ts +21 -0
- package/dist/types/components/gui/core/GUIMaterial.d.ts +29 -0
- package/dist/types/components/gui/core/GUIQuad.d.ts +52 -0
- package/dist/types/components/gui/core/GUIRenderer.d.ts +15 -0
- package/dist/types/components/gui/core/GUIShader.d.ts +8 -0
- package/dist/types/components/gui/core/GUISprite.d.ts +19 -0
- package/dist/types/components/gui/core/GUITexture.d.ts +12 -0
- package/dist/types/components/gui/uiComponents/IUIInteractive.d.ts +25 -0
- package/dist/types/components/gui/uiComponents/TextFieldLayout.d.ts +34 -0
- package/dist/types/components/gui/uiComponents/UIButton.d.ts +45 -0
- package/dist/types/components/gui/uiComponents/UIComponentBase.d.ts +15 -0
- package/dist/types/components/gui/uiComponents/UIImage.d.ts +21 -0
- package/dist/types/components/gui/uiComponents/UIImageGroup.d.ts +31 -0
- package/dist/types/components/gui/uiComponents/UIInteractive.d.ts +25 -0
- package/dist/types/components/gui/uiComponents/UIPanel.d.ts +38 -0
- package/dist/types/components/gui/uiComponents/UIRenderAble.d.ts +27 -0
- package/dist/types/components/gui/uiComponents/UIShadow.d.ts +31 -0
- package/dist/types/components/gui/uiComponents/UITextField.d.ts +36 -0
- package/dist/types/components/gui/uiComponents/UITransform.d.ts +60 -0
- package/dist/types/components/gui/uiComponents/ViewPanel.d.ts +9 -0
- package/dist/types/components/gui/uiComponents/WorldPanel.d.ts +13 -0
- package/dist/types/components/lights/DirectLight.d.ts +13 -0
- package/dist/types/components/lights/GILighting.d.ts +6 -0
- package/dist/types/components/lights/IESProfiles.d.ts +14 -0
- package/dist/types/components/lights/ILight.d.ts +12 -0
- package/dist/types/components/lights/Light.d.ts +32 -0
- package/dist/types/components/lights/LightBase.d.ts +127 -0
- package/dist/types/components/lights/LightData.d.ts +29 -0
- package/dist/types/components/lights/PointLight.d.ts +19 -0
- package/dist/types/components/lights/SpotLight.d.ts +21 -0
- package/dist/types/components/post/PostProcessingComponent.d.ts +16 -0
- package/dist/types/components/renderer/GSplatRenderer.d.ts +151 -0
- package/dist/types/components/renderer/GlobalIlluminationComponent.d.ts +22 -0
- package/dist/types/components/renderer/InstanceDrawComponent.d.ts +19 -0
- package/dist/types/components/renderer/MeshFilter.d.ts +9 -0
- package/dist/types/components/renderer/MeshRenderer.d.ts +27 -0
- package/dist/types/components/renderer/Reflection.d.ts +15 -0
- package/dist/types/components/renderer/RenderNode.d.ts +85 -0
- package/dist/types/components/renderer/SkinnedMeshRenderer.d.ts +26 -0
- package/dist/types/components/renderer/SkinnedMeshRenderer2.d.ts +37 -0
- package/dist/types/components/renderer/SkyRenderer.d.ts +22 -0
- package/dist/types/components/renderer/SphereReflection.d.ts +12 -0
- package/dist/types/components/shape/BoxColliderShape.d.ts +9 -0
- package/dist/types/components/shape/CapsuleColliderShape.d.ts +6 -0
- package/dist/types/components/shape/ColliderShape.d.ts +35 -0
- package/dist/types/components/shape/MeshColliderShape.d.ts +8 -0
- package/dist/types/components/shape/SphereColliderShape.d.ts +26 -0
- package/dist/types/core/Camera3D.d.ts +308 -0
- package/dist/types/core/CameraType.d.ts +5 -0
- package/dist/types/core/CubeCamera.d.ts +18 -0
- package/dist/types/core/PointShadowCubeCamera.d.ts +13 -0
- package/dist/types/core/Scene3D.d.ts +66 -0
- package/dist/types/core/View3D.d.ts +85 -0
- package/dist/types/core/ViewQuad.d.ts +19 -0
- package/dist/types/core/bound/BoundingBox.d.ts +34 -0
- package/dist/types/core/bound/BoundingSphere.d.ts +34 -0
- package/dist/types/core/bound/Frustum.d.ts +17 -0
- package/dist/types/core/bound/IBound.d.ts +19 -0
- package/dist/types/core/csm/CSM.d.ts +3 -0
- package/dist/types/core/csm/FrustumCSM.d.ts +32 -0
- package/dist/types/core/entities/Entity.d.ts +43 -0
- package/dist/types/core/entities/InstancedMesh.d.ts +11 -0
- package/dist/types/core/entities/Object3D.d.ts +66 -0
- package/dist/types/core/geometry/ExtrudeGeometry.d.ts +31 -0
- package/dist/types/core/geometry/GeometryBase.d.ts +70 -0
- package/dist/types/core/geometry/GeometryIndicesBuffer.d.ts +15 -0
- package/dist/types/core/geometry/GeometryVertexBuffer.d.ts +23 -0
- package/dist/types/core/geometry/GeometryVertexType.d.ts +5 -0
- package/dist/types/core/geometry/VertexAttribute.d.ts +15 -0
- package/dist/types/core/geometry/VertexAttributeData.d.ts +5 -0
- package/dist/types/core/geometry/VertexAttributeName.d.ts +23 -0
- package/dist/types/core/geometry/VertexAttributeSize.d.ts +11 -0
- package/dist/types/core/geometry/VertexAttributeStride.d.ts +15 -0
- package/dist/types/core/geometry/VertexFormat.d.ts +1 -0
- package/dist/types/core/pool/ObjectPool.d.ts +11 -0
- package/dist/types/core/pool/memory/MemoryDO.d.ts +10 -0
- package/dist/types/core/pool/memory/MemoryInfo.d.ts +79 -0
- package/dist/types/core/tree/kdTree/IKDTreeUserData.d.ts +10 -0
- package/dist/types/core/tree/kdTree/KDTreeEntity.d.ts +27 -0
- package/dist/types/core/tree/kdTree/KDTreeNode.d.ts +68 -0
- package/dist/types/core/tree/kdTree/KDTreeSpace.d.ts +26 -0
- package/dist/types/core/tree/octree/Octree.d.ts +28 -0
- package/dist/types/core/tree/octree/OctreeEntity.d.ts +11 -0
- package/dist/types/core/tree/quad/IQuadNode.d.ts +9 -0
- package/dist/types/core/tree/quad/QuadAABB.d.ts +26 -0
- package/dist/types/core/tree/quad/QuadRoot.d.ts +14 -0
- package/dist/types/core/tree/quad/QuadTree.d.ts +22 -0
- package/dist/types/core/tree/quad/QuadTreeCell.d.ts +23 -0
- package/dist/types/event/CEvent.d.ts +27 -0
- package/dist/types/event/CEventDispatcher.d.ts +13 -0
- package/dist/types/event/CEventListener.d.ts +13 -0
- package/dist/types/event/CResizeEvent.d.ts +4 -0
- package/dist/types/event/KeyCode.d.ts +110 -0
- package/dist/types/event/MouseCode.d.ts +5 -0
- package/dist/types/event/eventConst/KeyEvent.d.ts +6 -0
- package/dist/types/event/eventConst/LoaderEvent.d.ts +5 -0
- package/dist/types/event/eventConst/Object3DEvent.d.ts +7 -0
- package/dist/types/event/eventConst/PointerEvent3D.d.ts +63 -0
- package/dist/types/event/eventConst/UIEvent.d.ts +6 -0
- package/dist/types/gfx/generate/BrdfLUTGenerate.d.ts +7 -0
- package/dist/types/gfx/generate/PassGenerate.d.ts +9 -0
- package/dist/types/gfx/generate/convert/BlurEffectCreator.d.ts +7 -0
- package/dist/types/gfx/generate/convert/ErpImage2CubeMap.d.ts +9 -0
- package/dist/types/gfx/generate/convert/IBLEnvMapCreator.d.ts +12 -0
- package/dist/types/gfx/generate/convert/MergeRGBACreator.d.ts +5 -0
- package/dist/types/gfx/generate/convert/TextureCubeStdCreator.d.ts +9 -0
- package/dist/types/gfx/generate/convert/TextureCubeUtils.d.ts +12 -0
- package/dist/types/gfx/generate/convert/TextureScaleCompute.d.ts +6 -0
- package/dist/types/gfx/graphics/webGpu/CanvasConfig.d.ts +7 -0
- package/dist/types/gfx/graphics/webGpu/Context3D.d.ts +20 -0
- package/dist/types/gfx/graphics/webGpu/PipelinePool.d.ts +5 -0
- package/dist/types/gfx/graphics/webGpu/WebGPUConst.d.ts +154 -0
- package/dist/types/gfx/graphics/webGpu/compute/PreIntegratedLutCompute.d.ts +8 -0
- package/dist/types/gfx/graphics/webGpu/compute/RenderShaderCompute.d.ts +12 -0
- package/dist/types/gfx/graphics/webGpu/core/bindGroups/GlobalBindGroup.d.ts +18 -0
- package/dist/types/gfx/graphics/webGpu/core/bindGroups/GlobalBindGroupLayout.d.ts +4 -0
- package/dist/types/gfx/graphics/webGpu/core/bindGroups/GlobalUniformGroup.d.ts +25 -0
- package/dist/types/gfx/graphics/webGpu/core/bindGroups/MatrixBindGroup.d.ts +11 -0
- package/dist/types/gfx/graphics/webGpu/core/bindGroups/groups/LightEntries.d.ts +11 -0
- package/dist/types/gfx/graphics/webGpu/core/bindGroups/groups/ProbeEntries.d.ts +10 -0
- package/dist/types/gfx/graphics/webGpu/core/bindGroups/groups/ReflectionEntries.d.ts +12 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/ArrayBufferData.d.ts +1 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/ComputeGPUBuffer.d.ts +4 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/GPUBufferBase.d.ts +84 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/GPUBufferType.d.ts +9 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/IndicesGPUBuffer.d.ts +14 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/MaterialDataUniformGPUBuffer.d.ts +10 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/MatrixGPUBuffer.d.ts +8 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/StorageGPUBuffer.d.ts +5 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/StructStorageGPUBuffer.d.ts +7 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/UniformGPUBuffer.d.ts +5 -0
- package/dist/types/gfx/graphics/webGpu/core/buffer/VertexGPUBuffer.d.ts +7 -0
- package/dist/types/gfx/graphics/webGpu/core/texture/ITexture.d.ts +18 -0
- package/dist/types/gfx/graphics/webGpu/core/texture/Texture.d.ts +79 -0
- package/dist/types/gfx/graphics/webGpu/core/texture/TextureCube.d.ts +11 -0
- package/dist/types/gfx/graphics/webGpu/core/texture/TextureMipmapCompute.d.ts +9 -0
- package/dist/types/gfx/graphics/webGpu/core/texture/TextureMipmapGenerator.d.ts +9 -0
- package/dist/types/gfx/graphics/webGpu/core/uniforms/UniformNode.d.ts +34 -0
- package/dist/types/gfx/graphics/webGpu/descriptor/RTDescriptor.d.ts +5 -0
- package/dist/types/gfx/graphics/webGpu/descriptor/WebGPUDescriptorCreator.d.ts +8 -0
- package/dist/types/gfx/graphics/webGpu/shader/ComputeShader.d.ts +28 -0
- package/dist/types/gfx/graphics/webGpu/shader/RenderShaderPass.d.ts +83 -0
- package/dist/types/gfx/graphics/webGpu/shader/Shader.d.ts +53 -0
- package/dist/types/gfx/graphics/webGpu/shader/ShaderPassBase.d.ts +60 -0
- package/dist/types/gfx/graphics/webGpu/shader/ShaderStage.d.ts +5 -0
- package/dist/types/gfx/graphics/webGpu/shader/converter/GLSLLexer.d.ts +16 -0
- package/dist/types/gfx/graphics/webGpu/shader/converter/GLSLLexerToken.d.ts +174 -0
- package/dist/types/gfx/graphics/webGpu/shader/converter/GLSLPreprocessor.d.ts +10 -0
- package/dist/types/gfx/graphics/webGpu/shader/converter/GLSLSyntax.d.ts +14 -0
- package/dist/types/gfx/graphics/webGpu/shader/converter/Reader.d.ts +30 -0
- package/dist/types/gfx/graphics/webGpu/shader/converter/ShaderConverter.d.ts +47 -0
- package/dist/types/gfx/graphics/webGpu/shader/converter/StatementNode.d.ts +309 -0
- package/dist/types/gfx/graphics/webGpu/shader/converter/WGSLTranslator.d.ts +50 -0
- package/dist/types/gfx/graphics/webGpu/shader/util/MorePassParser.d.ts +25 -0
- package/dist/types/gfx/graphics/webGpu/shader/util/Preprocessor.d.ts +28 -0
- package/dist/types/gfx/graphics/webGpu/shader/util/ShaderUtil.d.ts +23 -0
- package/dist/types/gfx/graphics/webGpu/shader/value/ConstValue.d.ts +1 -0
- package/dist/types/gfx/graphics/webGpu/shader/value/DefineValue.d.ts +4 -0
- package/dist/types/gfx/graphics/webGpu/shader/value/ShaderReflectionInfo.d.ts +57 -0
- package/dist/types/gfx/graphics/webGpu/shader/value/ShaderState.d.ts +30 -0
- package/dist/types/gfx/graphics/webGpu/shader/value/ShaderValue.d.ts +32 -0
- package/dist/types/gfx/graphics/webGpu/shader/value/UniformValue.d.ts +13 -0
- package/dist/types/gfx/renderJob/GPUContext.d.ts +32 -0
- package/dist/types/gfx/renderJob/collect/CollectInfo.d.ts +7 -0
- package/dist/types/gfx/renderJob/collect/ComponentCollect.d.ts +29 -0
- package/dist/types/gfx/renderJob/collect/EntityBatchCollect.d.ts +7 -0
- package/dist/types/gfx/renderJob/collect/EntityCollect.d.ts +48 -0
- package/dist/types/gfx/renderJob/collect/RenderGroup.d.ts +7 -0
- package/dist/types/gfx/renderJob/collect/RenderShaderCollect.d.ts +9 -0
- package/dist/types/gfx/renderJob/collect/ShadowLightsCollect.d.ts +20 -0
- package/dist/types/gfx/renderJob/config/RTResourceConfig.d.ts +10 -0
- package/dist/types/gfx/renderJob/config/RenderLayer.d.ts +11 -0
- package/dist/types/gfx/renderJob/frame/GBufferFrame.d.ts +19 -0
- package/dist/types/gfx/renderJob/frame/ProbeGBufferFrame.d.ts +5 -0
- package/dist/types/gfx/renderJob/frame/RTFrame.d.ts +17 -0
- package/dist/types/gfx/renderJob/frame/RTResourceMap.d.ts +13 -0
- package/dist/types/gfx/renderJob/jobs/ForwardRenderJob.d.ts +7 -0
- package/dist/types/gfx/renderJob/jobs/RenderMap.d.ts +12 -0
- package/dist/types/gfx/renderJob/jobs/RendererJob.d.ts +43 -0
- package/dist/types/gfx/renderJob/occlusion/OcclusionSystem.d.ts +16 -0
- package/dist/types/gfx/renderJob/passRenderer/RenderContext.d.ts +20 -0
- package/dist/types/gfx/renderJob/passRenderer/RendererBase.d.ts +40 -0
- package/dist/types/gfx/renderJob/passRenderer/cluster/ClusterConfig.d.ts +5 -0
- package/dist/types/gfx/renderJob/passRenderer/cluster/ClusterLightingBuffer.d.ts +10 -0
- package/dist/types/gfx/renderJob/passRenderer/cluster/ClusterLightingRender.d.ts +20 -0
- package/dist/types/gfx/renderJob/passRenderer/color/ColorPassRenderer.d.ts +12 -0
- package/dist/types/gfx/renderJob/passRenderer/color/GUIPassRenderer.d.ts +13 -0
- package/dist/types/gfx/renderJob/passRenderer/cubeRenderer/ReflectionRenderer.d.ts +36 -0
- package/dist/types/gfx/renderJob/passRenderer/ddgi/DDGIIrradianceComputePass.d.ts +18 -0
- package/dist/types/gfx/renderJob/passRenderer/ddgi/DDGIIrradianceGPUBufferReader.d.ts +22 -0
- package/dist/types/gfx/renderJob/passRenderer/ddgi/DDGIIrradianceVolume.d.ts +32 -0
- package/dist/types/gfx/renderJob/passRenderer/ddgi/DDGILightingPass.d.ts +17 -0
- package/dist/types/gfx/renderJob/passRenderer/ddgi/DDGIMultiBouncePass.d.ts +13 -0
- package/dist/types/gfx/renderJob/passRenderer/ddgi/DDGIProbeRenderer.d.ts +46 -0
- package/dist/types/gfx/renderJob/passRenderer/ddgi/Probe.d.ts +6 -0
- package/dist/types/gfx/renderJob/passRenderer/post/PostRenderer.d.ts +19 -0
- package/dist/types/gfx/renderJob/passRenderer/preDepth/PreDepthPassRenderer.d.ts +16 -0
- package/dist/types/gfx/renderJob/passRenderer/preDepth/ZCullingCompute.d.ts +12 -0
- package/dist/types/gfx/renderJob/passRenderer/shadow/PointLightShadowRenderer.d.ts +32 -0
- package/dist/types/gfx/renderJob/passRenderer/shadow/ShadowMapPassRenderer.d.ts +27 -0
- package/dist/types/gfx/renderJob/passRenderer/state/PassType.d.ts +13 -0
- package/dist/types/gfx/renderJob/passRenderer/state/RendererMask.d.ts +18 -0
- package/dist/types/gfx/renderJob/passRenderer/state/RendererPassState.d.ts +27 -0
- package/dist/types/gfx/renderJob/post/BloomPost.d.ts +45 -0
- package/dist/types/gfx/renderJob/post/DepthOfFieldPost.d.ts +56 -0
- package/dist/types/gfx/renderJob/post/FXAAPost.d.ts +18 -0
- package/dist/types/gfx/renderJob/post/GBufferPost.d.ts +35 -0
- package/dist/types/gfx/renderJob/post/GTAOPost.d.ts +67 -0
- package/dist/types/gfx/renderJob/post/GlobalFog.d.ts +69 -0
- package/dist/types/gfx/renderJob/post/GodRayPost.d.ts +56 -0
- package/dist/types/gfx/renderJob/post/OutlinePost.d.ts +93 -0
- package/dist/types/gfx/renderJob/post/PostBase.d.ts +35 -0
- package/dist/types/gfx/renderJob/post/SSGIPost.d.ts +67 -0
- package/dist/types/gfx/renderJob/post/SSRPost.d.ts +76 -0
- package/dist/types/gfx/renderJob/post/TAAPost.d.ts +40 -0
- package/dist/types/index.d.ts +589 -0
- package/dist/types/io/InputSystem.d.ts +49 -0
- package/dist/types/io/OutlineManager.d.ts +11 -0
- package/dist/types/io/OutlinePostData.d.ts +22 -0
- package/dist/types/io/PickFire.d.ts +32 -0
- package/dist/types/io/PickResult.d.ts +59 -0
- package/dist/types/io/RayCastMeshDetail.d.ts +32 -0
- package/dist/types/io/TouchData.d.ts +12 -0
- package/dist/types/io/picker/PickCompute.d.ts +14 -0
- package/dist/types/loader/FileLoader.d.ts +7 -0
- package/dist/types/loader/LoaderBase.d.ts +30 -0
- package/dist/types/loader/LoaderFunctions.d.ts +7 -0
- package/dist/types/loader/LoaderManager.d.ts +36 -0
- package/dist/types/loader/parser/3dgs/GaussianSplatAsset.d.ts +21 -0
- package/dist/types/loader/parser/3dgs/GaussianSplatParser.d.ts +8 -0
- package/dist/types/loader/parser/3dgs/loaders/FormatDetector.d.ts +13 -0
- package/dist/types/loader/parser/3dgs/loaders/index.d.ts +10 -0
- package/dist/types/loader/parser/3dgs/loaders/ply/PlyLoader.d.ts +9 -0
- package/dist/types/loader/parser/3dgs/loaders/ply/PlyTypes.d.ts +30 -0
- package/dist/types/loader/parser/3dgs/loaders/ply/PlyUtils.d.ts +13 -0
- package/dist/types/loader/parser/3dgs/loaders/ply/index.d.ts +8 -0
- package/dist/types/loader/parser/AtlasParser.d.ts +10 -0
- package/dist/types/loader/parser/B3DMParser.d.ts +24 -0
- package/dist/types/loader/parser/FontParser.d.ts +54 -0
- package/dist/types/loader/parser/I3DMParser.d.ts +7 -0
- package/dist/types/loader/parser/OBJParser.d.ts +72 -0
- package/dist/types/loader/parser/ParserBase.d.ts +18 -0
- package/dist/types/loader/parser/ParserFormat.d.ts +5 -0
- package/dist/types/loader/parser/RGBEParser.d.ts +40 -0
- package/dist/types/loader/parser/b3dm/B3DMLoader.d.ts +10 -0
- package/dist/types/loader/parser/b3dm/B3DMLoaderBase.d.ts +9 -0
- package/dist/types/loader/parser/b3dm/FeatureTable.d.ts +14 -0
- package/dist/types/loader/parser/b3dm/arrayToString.d.ts +1 -0
- package/dist/types/loader/parser/b3dm/readMagicBytes.d.ts +1 -0
- package/dist/types/loader/parser/gis/GeoJsonParser.d.ts +29 -0
- package/dist/types/loader/parser/gis/GeoJsonUtil.d.ts +5 -0
- package/dist/types/loader/parser/gltf/GLBParser.d.ts +21 -0
- package/dist/types/loader/parser/gltf/GLTFInfo.d.ts +137 -0
- package/dist/types/loader/parser/gltf/GLTFMaterial.d.ts +24 -0
- package/dist/types/loader/parser/gltf/GLTFParser.d.ts +45 -0
- package/dist/types/loader/parser/gltf/GLTFSubParser.d.ts +47 -0
- package/dist/types/loader/parser/gltf/GLTFSubParserCamera.d.ts +7 -0
- package/dist/types/loader/parser/gltf/GLTFSubParserConverter.d.ts +17 -0
- package/dist/types/loader/parser/gltf/GLTFSubParserMaterial.d.ts +10 -0
- package/dist/types/loader/parser/gltf/GLTFSubParserMesh.d.ts +11 -0
- package/dist/types/loader/parser/gltf/GLTFSubParserSkeleton.d.ts +15 -0
- package/dist/types/loader/parser/gltf/GLTFSubParserSkin.d.ts +10 -0
- package/dist/types/loader/parser/gltf/GLTFType.d.ts +22 -0
- package/dist/types/loader/parser/gltf/TypeArray.d.ts +4 -0
- package/dist/types/loader/parser/gltf/extends/KHR_draco_mesh_compression.d.ts +9 -0
- package/dist/types/loader/parser/gltf/extends/KHR_lights_punctual.d.ts +2 -0
- package/dist/types/loader/parser/gltf/extends/KHR_materials_clearcoat.d.ts +7 -0
- package/dist/types/loader/parser/gltf/extends/KHR_materials_emissive_strength.d.ts +3 -0
- package/dist/types/loader/parser/gltf/extends/KHR_materials_ior.d.ts +2 -0
- package/dist/types/loader/parser/gltf/extends/KHR_materials_unlit.d.ts +3 -0
- package/dist/types/loader/parser/i3dm/I3DMLoader.d.ts +17 -0
- package/dist/types/loader/parser/i3dm/I3DMLoaderBase.d.ts +9 -0
- package/dist/types/loader/parser/kmz/3d/WayLines3D.d.ts +10 -0
- package/dist/types/loader/parser/kmz/3d/WayPoint3D.d.ts +11 -0
- package/dist/types/loader/parser/kmz/KMZParser.d.ts +8 -0
- package/dist/types/loader/parser/kmz/dataDef/action.d.ts +564 -0
- package/dist/types/loader/parser/kmz/dataDef/global.d.ts +58 -0
- package/dist/types/loader/parser/kmz/dataDef/index.d.ts +12 -0
- package/dist/types/loader/parser/kmz/dataDef/point.d.ts +129 -0
- package/dist/types/loader/parser/kmz/dataDef/template.d.ts +300 -0
- package/dist/types/loader/parser/kmz/dataDef/wayline.d.ts +97 -0
- package/dist/types/loader/parser/prefab/PrefabAvatarParser.d.ts +9 -0
- package/dist/types/loader/parser/prefab/PrefabMaterialParser.d.ts +9 -0
- package/dist/types/loader/parser/prefab/PrefabMeshParser.d.ts +10 -0
- package/dist/types/loader/parser/prefab/PrefabParser.d.ts +16 -0
- package/dist/types/loader/parser/prefab/PrefabStringUtil.d.ts +12 -0
- package/dist/types/loader/parser/prefab/PrefabTextureParser.d.ts +10 -0
- package/dist/types/loader/parser/prefab/mats/MaterialUtilities.d.ts +8 -0
- package/dist/types/loader/parser/prefab/mats/shader/LitSSSShader.d.ts +24 -0
- package/dist/types/loader/parser/prefab/mats/shader/LitShader.d.ts +19 -0
- package/dist/types/loader/parser/prefab/mats/shader/QuadShader.d.ts +4 -0
- package/dist/types/loader/parser/prefab/mats/shader/ReflectionShader.d.ts +19 -0
- package/dist/types/loader/parser/prefab/mats/shader/SkyShader.d.ts +4 -0
- package/dist/types/loader/parser/prefab/mats/shader/StandShader.d.ts +220 -0
- package/dist/types/loader/parser/prefab/mats/shader/UnLitShader.d.ts +19 -0
- package/dist/types/loader/parser/prefab/mats/shader/UnLitTexArrayShader.d.ts +19 -0
- package/dist/types/loader/parser/prefab/prefabData/BlendShapeData.d.ts +11 -0
- package/dist/types/loader/parser/prefab/prefabData/BlendShapePropertyData.d.ts +9 -0
- package/dist/types/loader/parser/prefab/prefabData/KVData.d.ts +9 -0
- package/dist/types/loader/parser/prefab/prefabData/PrefabAvatarData.d.ts +9 -0
- package/dist/types/loader/parser/prefab/prefabData/PrefabBoneData.d.ts +16 -0
- package/dist/types/loader/parser/prefab/prefabData/PrefabMeshData.d.ts +19 -0
- package/dist/types/loader/parser/prefab/prefabData/PrefabNode.d.ts +19 -0
- package/dist/types/loader/parser/prefab/prefabData/PrefabTextureData.d.ts +14 -0
- package/dist/types/loader/parser/prefab/prefabData/ValueParser.d.ts +16 -0
- package/dist/types/loader/parser/prefab/prefabData/ValueType.d.ts +35 -0
- package/dist/types/loader/parser/tileRenderer/TileSet.d.ts +45 -0
- package/dist/types/loader/parser/tileRenderer/TilesRenderer.d.ts +12 -0
- package/dist/types/materials/BlendMode.d.ts +58 -0
- package/dist/types/materials/ColorLitMaterial.d.ts +14 -0
- package/dist/types/materials/GIProbeMaterial.d.ts +15 -0
- package/dist/types/materials/GSplatMaterial.d.ts +20 -0
- package/dist/types/materials/LambertMaterial.d.ts +39 -0
- package/dist/types/materials/LitMaterial.d.ts +49 -0
- package/dist/types/materials/Material.d.ts +67 -0
- package/dist/types/materials/MaterialRegister.d.ts +9 -0
- package/dist/types/materials/ReflectionMaterial.d.ts +13 -0
- package/dist/types/materials/SkyMaterial.d.ts +13 -0
- package/dist/types/materials/UnLitMaterial.d.ts +33 -0
- package/dist/types/materials/UnLitTexArrayMaterial.d.ts +20 -0
- package/dist/types/materials/multiPass/CastPointShadowMaterialPass.d.ts +4 -0
- package/dist/types/materials/multiPass/CastShadowMaterialPass.d.ts +4 -0
- package/dist/types/materials/multiPass/DepthMaterialPass.d.ts +4 -0
- package/dist/types/materials/multiPass/GBufferPass.d.ts +5 -0
- package/dist/types/materials/multiPass/SkyGBufferPass.d.ts +4 -0
- package/dist/types/math/AnimationCurve.d.ts +42 -0
- package/dist/types/math/AnimationCurveClip.d.ts +15 -0
- package/dist/types/math/AnimationCurveT.d.ts +24 -0
- package/dist/types/math/BiMap.d.ts +9 -0
- package/dist/types/math/Color.d.ts +249 -0
- package/dist/types/math/ColorGradient.d.ts +6 -0
- package/dist/types/math/CubicBezierCurve.d.ts +47 -0
- package/dist/types/math/CubicBezierPath.d.ts +37 -0
- package/dist/types/math/HaltonSeq.d.ts +13 -0
- package/dist/types/math/Line.d.ts +39 -0
- package/dist/types/math/MathUtil.d.ts +86 -0
- package/dist/types/math/Matrix3.d.ts +183 -0
- package/dist/types/math/Matrix4.d.ts +563 -0
- package/dist/types/math/OrderMap.d.ts +11 -0
- package/dist/types/math/Orientation3D.d.ts +5 -0
- package/dist/types/math/ParticleMath.d.ts +22 -0
- package/dist/types/math/ParticleSystemCurves.d.ts +85 -0
- package/dist/types/math/Plane3D.d.ts +173 -0
- package/dist/types/math/PlaneClassification.d.ts +32 -0
- package/dist/types/math/PolynomialCurve.d.ts +43 -0
- package/dist/types/math/Polynomials.d.ts +12 -0
- package/dist/types/math/Quaternion.d.ts +42 -0
- package/dist/types/math/Rand.d.ts +15 -0
- package/dist/types/math/Random.d.ts +67 -0
- package/dist/types/math/Ray.d.ts +41 -0
- package/dist/types/math/Rect.d.ts +21 -0
- package/dist/types/math/TimeInterpolator.d.ts +179 -0
- package/dist/types/math/Triangle.d.ts +33 -0
- package/dist/types/math/UV.d.ts +10 -0
- package/dist/types/math/Vector2.d.ts +38 -0
- package/dist/types/math/Vector3.d.ts +107 -0
- package/dist/types/math/Vector4.d.ts +34 -0
- package/dist/types/math/enum/FrameCache.d.ts +6 -0
- package/dist/types/math/enum/Keyframe.d.ts +14 -0
- package/dist/types/math/enum/T/KeyframeT.d.ts +18 -0
- package/dist/types/math/enum/T/ValueOp.d.ts +4 -0
- package/dist/types/math/enum/WrapTimeMode.d.ts +5 -0
- package/dist/types/math/navigation/DoubleArray.d.ts +11 -0
- package/dist/types/math/navigation/Navi3DAstar.d.ts +16 -0
- package/dist/types/math/navigation/Navi3DConst.d.ts +5 -0
- package/dist/types/math/navigation/Navi3DEdge.d.ts +33 -0
- package/dist/types/math/navigation/Navi3DFunnel.d.ts +19 -0
- package/dist/types/math/navigation/Navi3DMaskType.d.ts +3 -0
- package/dist/types/math/navigation/Navi3DMesh.d.ts +27 -0
- package/dist/types/math/navigation/Navi3DPoint.d.ts +13 -0
- package/dist/types/math/navigation/Navi3DPoint2D.d.ts +10 -0
- package/dist/types/math/navigation/Navi3DPointFat.d.ts +11 -0
- package/dist/types/math/navigation/Navi3DRouter.d.ts +29 -0
- package/dist/types/math/navigation/Navi3DTriangle.d.ts +44 -0
- package/dist/types/setting/EngineSetting.d.ts +23 -0
- package/dist/types/setting/GlobalIlluminationSetting.d.ts +115 -0
- package/dist/types/setting/LightSetting.d.ts +3 -0
- package/dist/types/setting/LoaderSetting.d.ts +3 -0
- package/dist/types/setting/MaterialSetting.d.ts +5 -0
- package/dist/types/setting/OcclusionQuerySetting.d.ts +12 -0
- package/dist/types/setting/PickSetting.d.ts +5 -0
- package/dist/types/setting/ReflectionSetting.d.ts +7 -0
- package/dist/types/setting/RenderSetting.d.ts +51 -0
- package/dist/types/setting/ShadowSetting.d.ts +17 -0
- package/dist/types/setting/SkySetting.d.ts +8 -0
- package/dist/types/setting/post/BloomSetting.d.ts +11 -0
- package/dist/types/setting/post/DepthOfViewSetting.d.ts +7 -0
- package/dist/types/setting/post/GTAOSetting.d.ts +11 -0
- package/dist/types/setting/post/GlobalFogSetting.d.ts +19 -0
- package/dist/types/setting/post/GodRaySetting.d.ts +7 -0
- package/dist/types/setting/post/OutlineSetting.d.ts +10 -0
- package/dist/types/setting/post/SSRSetting.d.ts +12 -0
- package/dist/types/setting/post/TAASetting.d.ts +9 -0
- package/dist/types/shape/BoxGeometry.d.ts +28 -0
- package/dist/types/shape/CylinderGeometry.d.ts +60 -0
- package/dist/types/shape/PlaneGeometry.d.ts +11 -0
- package/dist/types/shape/SphereGeometry.d.ts +25 -0
- package/dist/types/shape/TorusGeometry.d.ts +33 -0
- package/dist/types/shape/TrailGeometry.d.ts +18 -0
- package/dist/types/shape/TriGeometry.d.ts +13 -0
- package/dist/types/textures/AtmosphericScatteringSky.d.ts +42 -0
- package/dist/types/textures/BitmapTexture2D.d.ts +12 -0
- package/dist/types/textures/BitmapTexture2DArray.d.ts +15 -0
- package/dist/types/textures/BitmapTextureCube.d.ts +14 -0
- package/dist/types/textures/Depth2DTextureArray.d.ts +9 -0
- package/dist/types/textures/DepthCubeArrayTexture.d.ts +9 -0
- package/dist/types/textures/Float16ArrayTexture.d.ts +28 -0
- package/dist/types/textures/Float32ArrayTexture.d.ts +5 -0
- package/dist/types/textures/HDRTexture.d.ts +7 -0
- package/dist/types/textures/HDRTextureCube.d.ts +16 -0
- package/dist/types/textures/LDRTextureCube.d.ts +13 -0
- package/dist/types/textures/RenderTexture.d.ts +12 -0
- package/dist/types/textures/SolidColorSky.d.ts +11 -0
- package/dist/types/textures/TextureCubeFaceData.d.ts +19 -0
- package/dist/types/textures/Uint32ArrayTexture.d.ts +11 -0
- package/dist/types/textures/Uint8ArrayTexture.d.ts +6 -0
- package/dist/types/textures/VirtualTexture.d.ts +29 -0
- package/dist/types/util/AxisObject.d.ts +11 -0
- package/dist/types/util/BoundUtil.d.ts +13 -0
- package/dist/types/util/BytesArray.d.ts +49 -0
- package/dist/types/util/CameraUtil.d.ts +10 -0
- package/dist/types/util/Convert.d.ts +1 -0
- package/dist/types/util/GeometryUtil.d.ts +12 -0
- package/dist/types/util/Global.d.ts +15 -0
- package/dist/types/util/GridObject.d.ts +12 -0
- package/dist/types/util/KelvinUtil.d.ts +40 -0
- package/dist/types/util/Object3DUtil.d.ts +25 -0
- package/dist/types/util/ProfilerUtil.d.ts +49 -0
- package/dist/types/util/Reference.d.ts +37 -0
- package/dist/types/util/SerializeDecoration.d.ts +9 -0
- package/dist/types/util/StringUtil.d.ts +23 -0
- package/dist/types/util/Time.d.ts +9 -0
- package/dist/types/util/Vector3Ex.d.ts +16 -0
- package/dist/types/util/ZSorterUtil.d.ts +13 -0
- package/dist/types/util/struct/Struct.d.ts +37 -0
- package/dist/types/util/transformUtil/Object3DTransformTools.d.ts +37 -0
- package/dist/types/util/transformUtil/RotationControlComponents.d.ts +21 -0
- package/dist/types/util/transformUtil/ScaleControlComponents.d.ts +11 -0
- package/dist/types/util/transformUtil/TransformAxisEnum.d.ts +11 -0
- package/dist/types/util/transformUtil/TransformControllerBaseComponent.d.ts +48 -0
- package/dist/types/util/transformUtil/TransformMode.d.ts +6 -0
- package/dist/types/util/transformUtil/TransformSpaceMode.d.ts +4 -0
- package/dist/types/util/transformUtil/TranslationControlComponents.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
import { FloatArray } from "@rings/wasm-matrix/WasmMatrix";
|
|
2
|
+
import { Quaternion } from "./Quaternion";
|
|
3
|
+
import { Vector3 } from "./Vector3";
|
|
4
|
+
/**
|
|
5
|
+
* math 4*4 matrix
|
|
6
|
+
* @group Math
|
|
7
|
+
*/
|
|
8
|
+
export declare class Matrix4 {
|
|
9
|
+
/**
|
|
10
|
+
* matrix44 bytes block size
|
|
11
|
+
*/
|
|
12
|
+
static blockBytes: number;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
static block: number;
|
|
17
|
+
/**
|
|
18
|
+
* matrix do total count
|
|
19
|
+
*/
|
|
20
|
+
static allocCount: number;
|
|
21
|
+
/**
|
|
22
|
+
* quantity allocated for each capacity expansion
|
|
23
|
+
*/
|
|
24
|
+
static allocOnceCount: number;
|
|
25
|
+
/**
|
|
26
|
+
* matrix has max limit count
|
|
27
|
+
*/
|
|
28
|
+
static maxCount: number;
|
|
29
|
+
/**
|
|
30
|
+
* current matrix use count
|
|
31
|
+
*/
|
|
32
|
+
static useCount: number;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
static buffer: ArrayBufferLike;
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* wasm use memory use first ptr
|
|
40
|
+
*/
|
|
41
|
+
static wasmMatrixPtr: number;
|
|
42
|
+
/**
|
|
43
|
+
* matrix do use share bytesArray
|
|
44
|
+
*/
|
|
45
|
+
static dynamicMatrixBytes: FloatArray;
|
|
46
|
+
/**
|
|
47
|
+
* cache all use do matrix
|
|
48
|
+
*/
|
|
49
|
+
static dynamicGlobalMatrixRef: Matrix4[];
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
static wasm: any;
|
|
54
|
+
/**
|
|
55
|
+
* help fix global matrix 0
|
|
56
|
+
*/
|
|
57
|
+
static help_matrix_0: Matrix4;
|
|
58
|
+
/**
|
|
59
|
+
* help fix global matrix 1
|
|
60
|
+
*/
|
|
61
|
+
static help_matrix_1: Matrix4;
|
|
62
|
+
/**
|
|
63
|
+
* help fix global matrix 2
|
|
64
|
+
*/
|
|
65
|
+
static help_matrix_2: Matrix4;
|
|
66
|
+
/**
|
|
67
|
+
* help fix global matrix 3
|
|
68
|
+
*/
|
|
69
|
+
static helpMatrix: Matrix4;
|
|
70
|
+
/**
|
|
71
|
+
* help fix global matrix 4
|
|
72
|
+
*/
|
|
73
|
+
static helpMatrix2: Matrix4;
|
|
74
|
+
private static _getEulerMatrix;
|
|
75
|
+
private static _zero;
|
|
76
|
+
private static _one;
|
|
77
|
+
private static _prs;
|
|
78
|
+
/**
|
|
79
|
+
* matrix index at global matrix list
|
|
80
|
+
*/
|
|
81
|
+
index: number;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
offset: number;
|
|
86
|
+
/**
|
|
87
|
+
* matrix raw data format FloatArray
|
|
88
|
+
* @see {@link FloatArray}
|
|
89
|
+
*/
|
|
90
|
+
rawData: FloatArray;
|
|
91
|
+
private _position;
|
|
92
|
+
/**
|
|
93
|
+
* alloc web runtime cpu memory totalCount * 4(float) * 4
|
|
94
|
+
* init matrix memory by totalCount * 4(float) * 4
|
|
95
|
+
* @param count every alloc matrix count
|
|
96
|
+
*/
|
|
97
|
+
static allocMatrix(allocCount: number): void;
|
|
98
|
+
/**
|
|
99
|
+
* create matrix from two direction
|
|
100
|
+
* @param fromDirection first direction
|
|
101
|
+
* @param toDirection second direction
|
|
102
|
+
* @param target ref matrix
|
|
103
|
+
* @returns return new one matrix
|
|
104
|
+
*/
|
|
105
|
+
static fromToRotation(fromDirection: Vector3, toDirection: Vector3, target?: Matrix4): Matrix4;
|
|
106
|
+
/**
|
|
107
|
+
* Create a matrix from an array of 16 numbers
|
|
108
|
+
* @param array Array of 16 numbers
|
|
109
|
+
* @returns Matrix4 result
|
|
110
|
+
*/
|
|
111
|
+
static fromArray(array: number[]): Matrix4;
|
|
112
|
+
/**
|
|
113
|
+
* Generate a matrix (rotate degrees with x,y,z as the center axis)
|
|
114
|
+
* @param x x on the central axis
|
|
115
|
+
* @param y y on the central axis
|
|
116
|
+
* @param z z on the central axis
|
|
117
|
+
* @param degrees rotation angle
|
|
118
|
+
* @returns Matrix4 result
|
|
119
|
+
*/
|
|
120
|
+
static getAxisRotation(x: number, y: number, z: number, degrees: number): Matrix4;
|
|
121
|
+
/**
|
|
122
|
+
* Arrange the Euler values
|
|
123
|
+
* @param euler Euler values
|
|
124
|
+
*/
|
|
125
|
+
static sanitizeEuler(euler: Vector3): void;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @param euler
|
|
129
|
+
*/
|
|
130
|
+
static makePositive(euler: Vector3): void;
|
|
131
|
+
/**
|
|
132
|
+
* Convert the matrix to Euler angles
|
|
133
|
+
* @param matrix Matrix to be transformed
|
|
134
|
+
* @param v euler angle
|
|
135
|
+
* @returns
|
|
136
|
+
*/
|
|
137
|
+
static matrixToEuler(matrix: Matrix4, v: Vector3): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Multiply the world matrix, specifying parameters and results according to the index
|
|
140
|
+
* @param aMat Matrix to be multiplied (please specify index)
|
|
141
|
+
* @param bMat Matrix to be multiplied (please specify index)
|
|
142
|
+
* @param target_Mat Result matrix (get results based on index)
|
|
143
|
+
*/
|
|
144
|
+
static matrixMultiply(aMat: Matrix4, bMat: Matrix4, target_Mat: Matrix4): void;
|
|
145
|
+
/**
|
|
146
|
+
* World matrix extension, according to the index to specify parameters and results
|
|
147
|
+
* @param aMat Matrix to be multiplied (please specify index)
|
|
148
|
+
* @param bMat Matrix to be multiplied (please specify index)
|
|
149
|
+
* @param target_Mat Result matrix (get results based on index)
|
|
150
|
+
*/
|
|
151
|
+
static matrixAppend(aMat: Matrix4, bMat: Matrix4, target_Mat: Matrix4): void;
|
|
152
|
+
/**
|
|
153
|
+
* The Y-axis is rotated between the world matrix, and the parameters and results are specified according to the index
|
|
154
|
+
* @param aMat Matrix to be multiplied (please specify index)
|
|
155
|
+
* @param bMat Matrix to be multiplied (please specify index)
|
|
156
|
+
* @param target_Mat Result matrix (get results based on index)
|
|
157
|
+
*/
|
|
158
|
+
static matrixRotateY(rad: number, target_Mat: Matrix4): void;
|
|
159
|
+
/**
|
|
160
|
+
* Rotate the world matrix, specifying parameters and results according to the index
|
|
161
|
+
* @param aMat Matrix to be multiplied (please specify index)
|
|
162
|
+
* @param bMat Matrix to be multiplied (please specify index)
|
|
163
|
+
* @param target_Mat Result matrix (get results based on index)
|
|
164
|
+
*/
|
|
165
|
+
static matrixRotate(rad: number, axis: Vector3, target_Mat: Matrix4): void;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
* @param local --
|
|
169
|
+
*/
|
|
170
|
+
constructor(doMatrix?: boolean);
|
|
171
|
+
/**
|
|
172
|
+
* current matrix move position and rotation to target
|
|
173
|
+
* @param eye eye position
|
|
174
|
+
* @param at target position
|
|
175
|
+
* @param up normalize axis way
|
|
176
|
+
*/
|
|
177
|
+
lookAt(eye: Vector3, at: Vector3, up?: Vector3): void;
|
|
178
|
+
private static floatArray;
|
|
179
|
+
/**
|
|
180
|
+
* matrix multiply
|
|
181
|
+
* @param mat4 multiply target
|
|
182
|
+
*/
|
|
183
|
+
multiply(mat4: Matrix4): void;
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @param a
|
|
187
|
+
* @param b
|
|
188
|
+
* @returns
|
|
189
|
+
*/
|
|
190
|
+
multiplyMatrices(a: Matrix4, b: Matrix4): this;
|
|
191
|
+
/**
|
|
192
|
+
* convert a vector3 to this matrix space
|
|
193
|
+
* if output not set , return a new one
|
|
194
|
+
* @param v target vector3
|
|
195
|
+
* @param output save target
|
|
196
|
+
* @returns save target
|
|
197
|
+
*/
|
|
198
|
+
multiplyPoint3(v: Vector3, output?: Vector3): Vector3;
|
|
199
|
+
multiplyVector4(a: Vector3, out?: Vector3): Vector3;
|
|
200
|
+
/**
|
|
201
|
+
* convert a vector3 to this matrix space
|
|
202
|
+
* if output not set , return a new one
|
|
203
|
+
* @param v convert target
|
|
204
|
+
* @param target ref one vector3
|
|
205
|
+
* @returns Vector3
|
|
206
|
+
*/
|
|
207
|
+
transformVector4(v: Vector3, target?: Vector3): Vector3;
|
|
208
|
+
/**
|
|
209
|
+
* Convert projection coordinates to 3D coordinates
|
|
210
|
+
* @param v vector3 target
|
|
211
|
+
* @param output ref vector3d
|
|
212
|
+
* @returns
|
|
213
|
+
*/
|
|
214
|
+
perspectiveMultiplyPoint3(v: Vector3, output: Vector3): boolean;
|
|
215
|
+
/**
|
|
216
|
+
* set matrix perspective
|
|
217
|
+
* @param fov perspective angle 0 ~ 90
|
|
218
|
+
* @param aspect aspect ratio
|
|
219
|
+
* @param zn near plane
|
|
220
|
+
* @param zf far plane
|
|
221
|
+
*/
|
|
222
|
+
perspective(fov: number, aspect: number, zn: number, zf: number): void;
|
|
223
|
+
perspective3(fov: number, aspect: number, near: number, far: number): void;
|
|
224
|
+
frustum(l: number, r: number, b: number, t: number, n: number, f: number): void;
|
|
225
|
+
/**
|
|
226
|
+
* set matrix orthogonal projection
|
|
227
|
+
* @param w screen width
|
|
228
|
+
* @param h screen height
|
|
229
|
+
* @param zn camera near plane
|
|
230
|
+
* @param zf camera far plane
|
|
231
|
+
* @returns this matrix
|
|
232
|
+
*/
|
|
233
|
+
ortho(w: number, h: number, zn: number, zf: number): this;
|
|
234
|
+
/**
|
|
235
|
+
* set matrix orthogonal projection by view side
|
|
236
|
+
* @param left orthogonal view left
|
|
237
|
+
* @param right orthogonal view right
|
|
238
|
+
* @param bottom orthogonal view bottom
|
|
239
|
+
* @param top orthogonal view top
|
|
240
|
+
* @param near camera near plane
|
|
241
|
+
* @param far camera far plane
|
|
242
|
+
* @returns this matrix
|
|
243
|
+
*/
|
|
244
|
+
orthoZO(left: number, right: number, bottom: number, top: number, near: number, far: number): this;
|
|
245
|
+
/**
|
|
246
|
+
* set matrix orthogonal projection by view center
|
|
247
|
+
*/
|
|
248
|
+
orthoOffCenter(l: number, r: number, b: number, t: number, zn: number, zf: number): void;
|
|
249
|
+
/**
|
|
250
|
+
* set matrix from two direction
|
|
251
|
+
* @param fromDirection first direction
|
|
252
|
+
* @param toDirection second direction
|
|
253
|
+
*/
|
|
254
|
+
transformDir(fromDirection: Vector3, toDirection: Vector3): this;
|
|
255
|
+
/**
|
|
256
|
+
* multiply matrix a b
|
|
257
|
+
* @param lhs target matrix
|
|
258
|
+
*/
|
|
259
|
+
append(lhs: Matrix4): void;
|
|
260
|
+
/**
|
|
261
|
+
* matrix a add matrix b
|
|
262
|
+
* @param lhs target matrix.
|
|
263
|
+
* @returns Matrix4 result.
|
|
264
|
+
*/
|
|
265
|
+
add(lhs: Matrix4): Matrix4;
|
|
266
|
+
/**
|
|
267
|
+
* matrix a sub matrix b
|
|
268
|
+
* @param lhs target matrix b.
|
|
269
|
+
* @returns Matrix4 .
|
|
270
|
+
*/
|
|
271
|
+
sub(lhs: Matrix4): Matrix4;
|
|
272
|
+
/**
|
|
273
|
+
* Matrix times components.
|
|
274
|
+
* @param v This matrix is going to be multiplied by this value
|
|
275
|
+
* @returns Matrix4 Returns a multiplicative result matrix.
|
|
276
|
+
*/
|
|
277
|
+
mult(v: number): Matrix4;
|
|
278
|
+
appendRotation(degrees: number, axis: Vector3): void;
|
|
279
|
+
/**
|
|
280
|
+
* Create a matrix based on the axis and rotation Angle (the matrix created by rotating the degrees according to the axis)
|
|
281
|
+
* @param degrees Angle of rotation.
|
|
282
|
+
* @param axis Rotation Angle around axis axis. Axis needs to be specified as the orientation of an axis between x/y/z
|
|
283
|
+
*/
|
|
284
|
+
createByRotation(degrees: number, axis: Vector3): this;
|
|
285
|
+
/**
|
|
286
|
+
* Append the triaxial scaling value
|
|
287
|
+
* @param xScale x axis scaling
|
|
288
|
+
* @param yScale y axis scaling
|
|
289
|
+
* @param zScale z axis scaling
|
|
290
|
+
*/
|
|
291
|
+
appendScale(xScale: number, yScale: number, zScale: number): void;
|
|
292
|
+
/**
|
|
293
|
+
* A scaling matrix is generated and other properties are reset
|
|
294
|
+
* @param xScale x axis scaling
|
|
295
|
+
* @param yScale y axis scaling
|
|
296
|
+
* @param zScale z axis scaling
|
|
297
|
+
*/
|
|
298
|
+
createByScale(xScale: number, yScale: number, zScale: number): void;
|
|
299
|
+
/**
|
|
300
|
+
* Plus a translation matrix
|
|
301
|
+
* @param x x axis scaling
|
|
302
|
+
* @param y y axis scaling
|
|
303
|
+
* @param z z axis scaling
|
|
304
|
+
*/
|
|
305
|
+
appendTranslation(x: number, y: number, z: number): void;
|
|
306
|
+
/**
|
|
307
|
+
* Returns a clone of the current matrix
|
|
308
|
+
* @returns Matrix4 The cloned matrix
|
|
309
|
+
*/
|
|
310
|
+
clone(): Matrix4;
|
|
311
|
+
/**
|
|
312
|
+
* Assigns a value to one row of the current matrix
|
|
313
|
+
* @param row Row of copy
|
|
314
|
+
* @param Vector3 Value of copy
|
|
315
|
+
*/
|
|
316
|
+
copyRowFrom(row: number, Vector3: Vector3): void;
|
|
317
|
+
/**
|
|
318
|
+
* One of the rows in the copy matrix stores the values in Vector3.
|
|
319
|
+
* @param row Row of copy
|
|
320
|
+
* @param Vector3 Copy the storage target
|
|
321
|
+
*/
|
|
322
|
+
copyRowTo(row: number, Vector3: Vector3): void;
|
|
323
|
+
/**
|
|
324
|
+
* Assigns the value of a matrix to the current matrix.
|
|
325
|
+
* @param sourceMatrix3D source Matrix
|
|
326
|
+
* @returns Returns the current matrix
|
|
327
|
+
*/
|
|
328
|
+
copyFrom(sourceMatrix3D: Matrix4): Matrix4;
|
|
329
|
+
/**
|
|
330
|
+
* CoMath.PIes the value of the current matrix to a float array.
|
|
331
|
+
* @param vector The target array.
|
|
332
|
+
* @param index copy from the index of the array.
|
|
333
|
+
* @param transpose Whether to transpose the current matrix.
|
|
334
|
+
*/
|
|
335
|
+
copyRawDataTo(vector: FloatArray, index?: number, transpose?: boolean): void;
|
|
336
|
+
/**
|
|
337
|
+
* Assigns a value to a column of the current matrix
|
|
338
|
+
* @param col column
|
|
339
|
+
* @param Vector3 Source of value
|
|
340
|
+
*/
|
|
341
|
+
copyColFrom(col: number, Vector3: Vector3): void;
|
|
342
|
+
/**
|
|
343
|
+
* Copy a column of the current matrix
|
|
344
|
+
* @param col column
|
|
345
|
+
* @param Vector3 Target of copy
|
|
346
|
+
*/
|
|
347
|
+
copyColTo(col: number, Vector3: Vector3): void;
|
|
348
|
+
/**
|
|
349
|
+
* Copy the current matrix
|
|
350
|
+
* @param dest Target of copy
|
|
351
|
+
*/
|
|
352
|
+
copyToMatrix3D(dest: Matrix4): void;
|
|
353
|
+
/**
|
|
354
|
+
* Calculate rotation matrix
|
|
355
|
+
* @param quaternion Rotate the quaternion
|
|
356
|
+
* @returns
|
|
357
|
+
*/
|
|
358
|
+
makeRotationFromQuaternion(quaternion: Quaternion): Matrix4;
|
|
359
|
+
private static decomposeRawData;
|
|
360
|
+
/**
|
|
361
|
+
* Decompose the current matrix
|
|
362
|
+
* @param orientationStyle The default decomposition type is Orientation3D.EULER_ANGLES
|
|
363
|
+
* @see Orientation3D.AXIS_ANGLE
|
|
364
|
+
* @see Orientation3D.EULER_ANGLES
|
|
365
|
+
* @see Orientation3D.QUATERNION
|
|
366
|
+
* @returns Vector3[3] pos rot scale
|
|
367
|
+
*/
|
|
368
|
+
decompose(orientationStyle?: string, target?: Vector3[]): Vector3[];
|
|
369
|
+
/**
|
|
370
|
+
* Get the Euler vector
|
|
371
|
+
* @param target Vector of results
|
|
372
|
+
* @param quaternion Rotate the quaternion
|
|
373
|
+
* @param isDegree Whether to convert to Angle
|
|
374
|
+
* @param order convert order
|
|
375
|
+
* @returns
|
|
376
|
+
*/
|
|
377
|
+
static getEuler(target: Vector3, quaternion: Quaternion, isDegree?: boolean, order?: string): Vector3;
|
|
378
|
+
/**
|
|
379
|
+
* Calculate the combined matrix of displacement, rotation and scaling
|
|
380
|
+
* @param position translation
|
|
381
|
+
* @param quaternion rotation
|
|
382
|
+
* @param scale scale
|
|
383
|
+
* @returns
|
|
384
|
+
*/
|
|
385
|
+
compose(position: Vector3, quaternion: Quaternion, scale: Vector3): this;
|
|
386
|
+
/**
|
|
387
|
+
* The current matrix transforms a vector
|
|
388
|
+
* @param v Vector to transform
|
|
389
|
+
* @param target The default is null and if the current argument is null then a new Vector3 will be returned
|
|
390
|
+
* @returns Vector3 The transformed vector
|
|
391
|
+
*/
|
|
392
|
+
deltaTransformVector(v: Vector3, target?: Vector3): Vector3;
|
|
393
|
+
/**
|
|
394
|
+
* Unifies the current matrix
|
|
395
|
+
*/
|
|
396
|
+
identity(): this;
|
|
397
|
+
/**
|
|
398
|
+
* Fill the current matrix
|
|
399
|
+
* @param value The filled value
|
|
400
|
+
*/
|
|
401
|
+
fill(value: number): void;
|
|
402
|
+
/**
|
|
403
|
+
* Invert the current matrix
|
|
404
|
+
*/
|
|
405
|
+
invers33(): void;
|
|
406
|
+
/**
|
|
407
|
+
* Invert the current matrix
|
|
408
|
+
* @returns boolean Whether can invert it
|
|
409
|
+
*/
|
|
410
|
+
invert(): boolean;
|
|
411
|
+
/**
|
|
412
|
+
* Converts the current coordinates to the world coordinates
|
|
413
|
+
* @param v Current coordinates
|
|
414
|
+
* @param target world coordinate
|
|
415
|
+
* @returns world coordinate
|
|
416
|
+
*/
|
|
417
|
+
transformPoint(v: Vector3, target?: Vector3): Vector3;
|
|
418
|
+
/**
|
|
419
|
+
* Transforming a 3D vector with the current matrix does not deal with displacement
|
|
420
|
+
* @param v Vector of transformation
|
|
421
|
+
* @param target If the current argument is null then a new Vector3 will be returned
|
|
422
|
+
* @returns Vector3 The transformed vector
|
|
423
|
+
*/
|
|
424
|
+
transformVector(v: Vector3, target?: Vector3): Vector3;
|
|
425
|
+
/**
|
|
426
|
+
* The current matrix transpose
|
|
427
|
+
*/
|
|
428
|
+
transpose(): void;
|
|
429
|
+
/**
|
|
430
|
+
* Returns the matrix determinant
|
|
431
|
+
* @returns number determinant
|
|
432
|
+
*/
|
|
433
|
+
get determinant(): number;
|
|
434
|
+
/**
|
|
435
|
+
* Return matrix displacement
|
|
436
|
+
* @param out Position of translation
|
|
437
|
+
* @returns Position of translation
|
|
438
|
+
*/
|
|
439
|
+
getPosition(out?: Vector3): Vector3;
|
|
440
|
+
/**
|
|
441
|
+
* Return translation
|
|
442
|
+
* @returns Vector3 Position of translation
|
|
443
|
+
*/
|
|
444
|
+
get position(): Vector3;
|
|
445
|
+
/**
|
|
446
|
+
* Set Position of translation
|
|
447
|
+
* @param value Position of translation
|
|
448
|
+
*/
|
|
449
|
+
set position(value: Vector3);
|
|
450
|
+
/**
|
|
451
|
+
* get Component of scale
|
|
452
|
+
*
|
|
453
|
+
* @returns Vector3 scale
|
|
454
|
+
*/
|
|
455
|
+
get scale(): Vector3;
|
|
456
|
+
/**
|
|
457
|
+
* Set component of scale
|
|
458
|
+
*/
|
|
459
|
+
set scale(value: Vector3);
|
|
460
|
+
/**
|
|
461
|
+
* Returns the value of the matrix as a string
|
|
462
|
+
*
|
|
463
|
+
* @returns string
|
|
464
|
+
*/
|
|
465
|
+
toString(): string;
|
|
466
|
+
/**
|
|
467
|
+
* Interpolate between two matrices
|
|
468
|
+
* @param m0 Matrix 0
|
|
469
|
+
* @param m1 Matrix 1
|
|
470
|
+
* @param t Factor of interpolation 0.0 - 1.0
|
|
471
|
+
*/
|
|
472
|
+
lerp(m0: Matrix4, m1: Matrix4, t: number): void;
|
|
473
|
+
/**
|
|
474
|
+
* Read matrix element values
|
|
475
|
+
* @param row row
|
|
476
|
+
* @param column column
|
|
477
|
+
* @returns
|
|
478
|
+
*/
|
|
479
|
+
get(row: number, column: number): number;
|
|
480
|
+
/**
|
|
481
|
+
* Sets the matrix element values
|
|
482
|
+
* @param row row
|
|
483
|
+
* @param column column
|
|
484
|
+
* @param v value
|
|
485
|
+
*/
|
|
486
|
+
set(row: number, column: number, v: number): void;
|
|
487
|
+
/**
|
|
488
|
+
* Get the maximum value of the matrix scaled on each axis
|
|
489
|
+
*/
|
|
490
|
+
getMaxScaleOnAxis(): number;
|
|
491
|
+
/**
|
|
492
|
+
* Calculate the displacement from the vector
|
|
493
|
+
* @param inTrans Vector
|
|
494
|
+
* @returns current matrix
|
|
495
|
+
*/
|
|
496
|
+
translate(inTrans: Vector3): this;
|
|
497
|
+
/**
|
|
498
|
+
* from unity AMath.PI
|
|
499
|
+
*/
|
|
500
|
+
setTRInverse(pos: Vector3, q: Quaternion): void;
|
|
501
|
+
/**
|
|
502
|
+
* Set scale value
|
|
503
|
+
* @param inScale scale value
|
|
504
|
+
* @returns this matrix
|
|
505
|
+
*/
|
|
506
|
+
setScale(inScale: Vector3): this;
|
|
507
|
+
/**
|
|
508
|
+
* Generate the matrix according to the three axes
|
|
509
|
+
* @param xAxis
|
|
510
|
+
* @param yAxis
|
|
511
|
+
* @param zAxis
|
|
512
|
+
*/
|
|
513
|
+
makeBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): this;
|
|
514
|
+
makeRotationAxis(axis: Vector3, angle: number): this;
|
|
515
|
+
/**
|
|
516
|
+
* private
|
|
517
|
+
*/
|
|
518
|
+
private static transpose;
|
|
519
|
+
/**
|
|
520
|
+
* private
|
|
521
|
+
*/
|
|
522
|
+
private static inverse;
|
|
523
|
+
private makeEuler;
|
|
524
|
+
private setElements;
|
|
525
|
+
/**
|
|
526
|
+
* @internal
|
|
527
|
+
*/
|
|
528
|
+
makeMatrix44ByQuaternion(pos: Vector3, scale: Vector3, rot: Quaternion): void;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* @internal
|
|
532
|
+
*/
|
|
533
|
+
export declare function multiplyMatrices4x4REF(lhs: Matrix4, rhs: Matrix4, res: Matrix4): void;
|
|
534
|
+
/**
|
|
535
|
+
* @internal
|
|
536
|
+
*/
|
|
537
|
+
export declare function makeMatrix44(r: Vector3, p: Vector3, s: Vector3, outMat: Matrix4): void;
|
|
538
|
+
/**
|
|
539
|
+
* @internal
|
|
540
|
+
*/
|
|
541
|
+
export declare function append(src: Matrix4, lhs: Matrix4, target: Matrix4): void;
|
|
542
|
+
/**
|
|
543
|
+
* @internal
|
|
544
|
+
*/
|
|
545
|
+
export declare function rotMatrix(mat: Matrix4, q: Quaternion): Matrix4;
|
|
546
|
+
/**
|
|
547
|
+
* @internal
|
|
548
|
+
*/
|
|
549
|
+
export declare function matrixRotateY(rad: number, target: Matrix4): FloatArray;
|
|
550
|
+
/**
|
|
551
|
+
* Rotates a mat4 by the given angle around the given axis
|
|
552
|
+
* @internal
|
|
553
|
+
* @param {mat4} out the receiving matrix
|
|
554
|
+
* @param {ReadonlyMat4} a the matrix to rotate
|
|
555
|
+
* @param {Number} rad the angle to rotate the matrix by
|
|
556
|
+
* @param {ReadonlyVec3} axis the axis to rotate around
|
|
557
|
+
* @returns {mat4} out
|
|
558
|
+
*/
|
|
559
|
+
export declare function matrixRotate(rad: number, axis: Vector3, target: Matrix4): FloatArray;
|
|
560
|
+
/**
|
|
561
|
+
* @internal
|
|
562
|
+
*/
|
|
563
|
+
export declare function matrixMultiply(aMat: Matrix4, bMat: Matrix4, target: Matrix4): FloatArray;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class OrderMap<K, V> extends Map<K, V> {
|
|
2
|
+
readonly valueList: V[];
|
|
3
|
+
readonly keyList: K[];
|
|
4
|
+
isChange: boolean;
|
|
5
|
+
constructor(iterable?: Iterable<readonly [K, V]> | null, recordKey?: boolean, recordValue?: boolean);
|
|
6
|
+
delete(key: K): boolean;
|
|
7
|
+
private deleteValue;
|
|
8
|
+
private deleteKey;
|
|
9
|
+
set(key: K, value: V): this;
|
|
10
|
+
clear(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ParticleSystemRandomnessIds {
|
|
5
|
+
kParticleSystemClampVelocityCurveId = 322376503,
|
|
6
|
+
kParticleSystemForceCurveId = 306581307,
|
|
7
|
+
kParticleSystemRotationCurveId = 1793934638,
|
|
8
|
+
kParticleSystemRotationBySpeedCurveId = 3737431713,
|
|
9
|
+
kParticleSystemStartSpeedCurveId = 2527743459,
|
|
10
|
+
kParticleSystemSizeCurveId = 2368504881,
|
|
11
|
+
kParticleSystemSizeBySpeedCurveId = 4085612399,
|
|
12
|
+
kParticleSystemVelocityCurveId = 3774601268,
|
|
13
|
+
kParticleSystemUVCurveId = 326370691,
|
|
14
|
+
kParticleSystemColorGradientId = 1494990940,
|
|
15
|
+
kParticleSystemColorByVelocityGradientId = 1089181156,
|
|
16
|
+
kParticleSystemMeshSelectionId = 3159510623,
|
|
17
|
+
kParticleSystemUVRowSelectionId = 2941263940
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const kPI = 3.141592653589793;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { AnimationCurve } from './AnimationCurve';
|
|
2
|
+
import { PolynomialCurve } from './PolynomialCurve';
|
|
3
|
+
import { Vector2 } from './Vector2';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare enum ParticleSystemCurveEvalMode {
|
|
8
|
+
kEMScalar = 0,
|
|
9
|
+
kEMOptimized = 1,
|
|
10
|
+
kEMOptimizedMinMax = 2,
|
|
11
|
+
kEMSlow = 3
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare enum MinMaxCurveState {
|
|
17
|
+
kMMCScalar = 0,
|
|
18
|
+
kMMCCurve = 1,
|
|
19
|
+
kMMCTwoCurves = 2,
|
|
20
|
+
kMMCTwoConstants = 3
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* @group Math
|
|
25
|
+
*/
|
|
26
|
+
export declare class MinMaxAnimationCurves {
|
|
27
|
+
max: AnimationCurve;
|
|
28
|
+
min: AnimationCurve;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @group Math
|
|
33
|
+
*/
|
|
34
|
+
export declare class MinMaxPolyCurves {
|
|
35
|
+
max: PolynomialCurve;
|
|
36
|
+
min: PolynomialCurve;
|
|
37
|
+
integrate(): void;
|
|
38
|
+
doubleIntegrate(): void;
|
|
39
|
+
findMinMaxIntegrated(): Vector2;
|
|
40
|
+
findMinMaxDoubleIntegrated(): Vector2;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* @group Math
|
|
45
|
+
*/
|
|
46
|
+
export declare class MinMaxCurve {
|
|
47
|
+
minMaxState: MinMaxCurveState;
|
|
48
|
+
minCurve: AnimationCurve;
|
|
49
|
+
maxCurve: AnimationCurve;
|
|
50
|
+
private _scalar;
|
|
51
|
+
private _minScalar;
|
|
52
|
+
constructor(scalarValue?: number);
|
|
53
|
+
setScalar(value: any): void;
|
|
54
|
+
getScalar(): number;
|
|
55
|
+
static evaluateSlow(curve: MinMaxCurve, t: any, factor: any): number;
|
|
56
|
+
static evaluate(curve: MinMaxCurve, t: any, randomValue?: number): number;
|
|
57
|
+
unSerialized(data: any): void;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @group Math
|
|
62
|
+
*/
|
|
63
|
+
export declare class ValueSpread {
|
|
64
|
+
value: number;
|
|
65
|
+
mode: number;
|
|
66
|
+
spread: number;
|
|
67
|
+
speed: MinMaxCurve;
|
|
68
|
+
unSerialized(data: any): void;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
export declare function curvesSupportProcedural(editorCurves: MinMaxAnimationCurves, minMaxState: number): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
export declare function buildCurves(polyCurves: MinMaxPolyCurves, editorCurves: MinMaxAnimationCurves, scalar: any, minMaxState: any): void;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
export declare function calculateCurveRangesValue(minMaxValue: Vector2, curve: AnimationCurve): void;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
export declare function calculateMinMax(minmax: Vector2, value: number): void;
|