@galacean/engine-core 0.0.0-experimental-animator-additive.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/main.js +24671 -0
- package/dist/main.js.map +1 -0
- package/dist/miniprogram.js +24671 -0
- package/dist/module.js +24554 -0
- package/dist/module.js.map +1 -0
- package/package.json +26 -0
- package/types/2d/assembler/IAssembler.d.ts +1 -0
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +1 -0
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +1 -0
- package/types/2d/atlas/FontAtlas.d.ts +1 -0
- package/types/2d/atlas/SpriteAtlas.d.ts +36 -0
- package/types/2d/atlas/types.d.ts +64 -0
- package/types/2d/data/RenderData2D.d.ts +1 -0
- package/types/2d/data/VertexData2D.d.ts +1 -0
- package/types/2d/enums/FontStyle.d.ts +11 -0
- package/types/2d/enums/SpriteDirtyFlag.d.ts +13 -0
- package/types/2d/enums/SpriteDrawMode.d.ts +9 -0
- package/types/2d/enums/SpriteMaskInteraction.d.ts +11 -0
- package/types/2d/enums/SpriteMaskLayer.d.ts +71 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +13 -0
- package/types/2d/enums/TextAlignment.d.ts +22 -0
- package/types/2d/enums/TextOverflow.d.ts +9 -0
- package/types/2d/index.d.ts +9 -0
- package/types/2d/sprite/Sprite.d.ts +97 -0
- package/types/2d/sprite/SpriteMask.d.ts +63 -0
- package/types/2d/sprite/SpriteRenderer.d.ts +77 -0
- package/types/2d/sprite/index.d.ts +3 -0
- package/types/2d/text/CharInfo.d.ts +1 -0
- package/types/2d/text/CharRenderData.d.ts +1 -0
- package/types/2d/text/CharRenderDataPool.d.ts +1 -0
- package/types/2d/text/Font.d.ts +26 -0
- package/types/2d/text/SubFont.d.ts +1 -0
- package/types/2d/text/TextRenderer.d.ts +123 -0
- package/types/2d/text/TextUtils.d.ts +1 -0
- package/types/2d/text/index.d.ts +2 -0
- package/types/Background.d.ts +43 -0
- package/types/BoolUpdateFlag.d.ts +12 -0
- package/types/Camera.d.ts +206 -0
- package/types/Canvas.d.ts +9 -0
- package/types/Component.d.ts +32 -0
- package/types/ComponentsDependencies.d.ts +17 -0
- package/types/ComponentsManager.d.ts +46 -0
- package/types/DisorderedArray.d.ts +18 -0
- package/types/Engine.d.ts +140 -0
- package/types/EngineSettings.d.ts +8 -0
- package/types/Entity.d.ts +151 -0
- package/types/Layer.d.ts +73 -0
- package/types/ListenerUpdateFlag.d.ts +12 -0
- package/types/Platform.d.ts +15 -0
- package/types/RenderPipeline/Basic2DBatcher.d.ts +20 -0
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +66 -0
- package/types/RenderPipeline/ClassPool.d.ts +17 -0
- package/types/RenderPipeline/MeshRenderData.d.ts +15 -0
- package/types/RenderPipeline/MeshRenderElement.d.ts +17 -0
- package/types/RenderPipeline/RenderContext.d.ts +1 -0
- package/types/RenderPipeline/RenderData.d.ts +7 -0
- package/types/RenderPipeline/RenderElement.d.ts +11 -0
- package/types/RenderPipeline/RenderPass.d.ts +55 -0
- package/types/RenderPipeline/RenderQueue.d.ts +38 -0
- package/types/RenderPipeline/SpriteBatcher.d.ts +1 -0
- package/types/RenderPipeline/SpriteElement.d.ts +13 -0
- package/types/RenderPipeline/SpriteMaskBatcher.d.ts +10 -0
- package/types/RenderPipeline/SpriteMaskElement.d.ts +10 -0
- package/types/RenderPipeline/SpriteMaskManager.d.ts +1 -0
- package/types/RenderPipeline/SpriteMaskRenderData.d.ts +10 -0
- package/types/RenderPipeline/SpriteRenderData.d.ts +12 -0
- package/types/RenderPipeline/TextRenderData.d.ts +6 -0
- package/types/RenderPipeline/TextRenderElement.d.ts +6 -0
- package/types/RenderPipeline/enums/PipelineStage.d.ts +9 -0
- package/types/RenderPipeline/index.d.ts +4 -0
- package/types/Renderer.d.ts +119 -0
- package/types/Scene.d.ts +142 -0
- package/types/SceneManager.d.ts +28 -0
- package/types/Script.d.ts +118 -0
- package/types/SystemInfo.d.ts +14 -0
- package/types/Transform.d.ts +258 -0
- package/types/UpdateFlag.d.ts +20 -0
- package/types/UpdateFlagManager.d.ts +1 -0
- package/types/Utils.d.ts +3 -0
- package/types/VirtualCamera.d.ts +1 -0
- package/types/animation/AnimationClip.d.ts +58 -0
- package/types/animation/AnimationClipCurveBinding.d.ts +21 -0
- package/types/animation/AnimationEvent.d.ts +11 -0
- package/types/animation/Animator.d.ts +86 -0
- package/types/animation/AnimatorController.d.ts +32 -0
- package/types/animation/AnimatorControllerLayer.d.ts +18 -0
- package/types/animation/AnimatorState.d.ts +60 -0
- package/types/animation/AnimatorStateMachine.d.ts +37 -0
- package/types/animation/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/AnimatorStateTransition.d.ts +12 -0
- package/types/animation/AnimatorTransition.d.ts +14 -0
- package/types/animation/AnimatorTransitionBase.d.ts +10 -0
- package/types/animation/Keyframe.d.ts +19 -0
- package/types/animation/StateMachineScript.d.ts +32 -0
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationCurve.d.ts +39 -0
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +12 -0
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +7 -0
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +8 -0
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +8 -0
- package/types/animation/animationCurve/index.d.ts +10 -0
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +1 -0
- package/types/animation/enums/AnimatorConditionMode.d.ts +8 -0
- package/types/animation/enums/AnimatorCullingMode.d.ts +9 -0
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +4 -0
- package/types/animation/enums/AnimatorStatePlayState.d.ts +1 -0
- package/types/animation/enums/InterpolationType.d.ts +13 -0
- package/types/animation/enums/LayerState.d.ts +13 -0
- package/types/animation/enums/PlayState.d.ts +13 -0
- package/types/animation/enums/StateMachineState.d.ts +13 -0
- package/types/animation/enums/WrapMode.d.ts +9 -0
- package/types/animation/index.d.ts +21 -0
- package/types/animation/internal/AnimationEventHandler.d.ts +1 -0
- package/types/animation/internal/AnimatorLayerData.d.ts +1 -0
- package/types/animation/internal/AnimatorPlayableObject.d.ts +23 -0
- package/types/animation/internal/AnimatorStateData.d.ts +1 -0
- package/types/animation/internal/AnimatorStateInfo.d.ts +1 -0
- package/types/animation/internal/AnimatorStateMachineData.d.ts +1 -0
- package/types/animation/internal/AnimatorStatePlayData.d.ts +1 -0
- package/types/animation/internal/AnimatorTempValue.d.ts +1 -0
- package/types/animation/internal/CrossCurveData.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +5 -0
- package/types/animation/internal/animationCurveOwner/Assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/IAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/PositionAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/RotationAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/ScaleAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/animation/internal/animationCurveOwner/Assembler/UniversalAnimationCurveOwnerAssembler.d.ts +1 -0
- package/types/asset/AssetPromise.d.ts +56 -0
- package/types/asset/AssetType.d.ts +52 -0
- package/types/asset/ContentRestorer.d.ts +17 -0
- package/types/asset/GraphicsResource.d.ts +9 -0
- package/types/asset/IRefObject.d.ts +2 -0
- package/types/asset/IReferable.d.ts +2 -0
- package/types/asset/LoadItem.d.ts +33 -0
- package/types/asset/Loader.d.ts +30 -0
- package/types/asset/RefObject.d.ts +27 -0
- package/types/asset/ReferResource.d.ts +27 -0
- package/types/asset/ResourceManager.d.ts +101 -0
- package/types/asset/request.d.ts +25 -0
- package/types/base/Constant.d.ts +110 -0
- package/types/base/EngineObject.d.ts +24 -0
- package/types/base/Event.d.ts +24 -0
- package/types/base/EventDispatcher.d.ts +79 -0
- package/types/base/Logger.d.ts +11 -0
- package/types/base/StaticInterfaceImplement.d.ts +5 -0
- package/types/base/Time.d.ts +41 -0
- package/types/base/Util.d.ts +14 -0
- package/types/base/index.d.ts +7 -0
- package/types/clone/CloneManager.d.ts +31 -0
- package/types/clone/ComponentCloner.d.ts +14 -0
- package/types/clone/enums/CloneMode.d.ts +13 -0
- package/types/enums/BackgroundMode.d.ts +9 -0
- package/types/enums/BackgroundTextureFillMode.d.ts +8 -0
- package/types/enums/CameraClearFlags.d.ts +13 -0
- package/types/enums/ColorSpace.d.ts +9 -0
- package/types/enums/FogMode.d.ts +13 -0
- package/types/env-probe/CubeProbe.d.ts +34 -0
- package/types/env-probe/Probe.d.ts +58 -0
- package/types/env-probe/index.d.ts +2 -0
- package/types/fog/EXP2Fog.d.ts +15 -0
- package/types/fog/Fog.d.ts +14 -0
- package/types/fog/LinearFog.d.ts +22 -0
- package/types/fog/index.d.ts +3 -0
- package/types/graphic/Buffer.d.ts +105 -0
- package/types/graphic/BufferUtil.d.ts +11 -0
- package/types/graphic/IndexBufferBinding.d.ts +21 -0
- package/types/graphic/Mesh.d.ts +70 -0
- package/types/graphic/SubMesh.d.ts +19 -0
- package/types/graphic/VertexBufferBinding.d.ts +20 -0
- package/types/graphic/VertexElement.d.ts +44 -0
- package/types/graphic/enums/BufferBindFlag.d.ts +9 -0
- package/types/graphic/enums/BufferUsage.d.ts +11 -0
- package/types/graphic/enums/IndexFormat.d.ts +11 -0
- package/types/graphic/enums/MeshTopology.d.ts +19 -0
- package/types/graphic/enums/SetDataOptions.d.ts +9 -0
- package/types/graphic/enums/VertexElementFormat.d.ts +37 -0
- package/types/graphic/index.d.ts +13 -0
- package/types/index.d.ts +53 -0
- package/types/input/InputManager.d.ts +67 -0
- package/types/input/enums/Keys.d.ts +398 -0
- package/types/input/enums/PointerButton.d.ts +33 -0
- package/types/input/enums/PointerPhase.d.ts +15 -0
- package/types/input/index.d.ts +5 -0
- package/types/input/interface/IInput.d.ts +18 -0
- package/types/input/keyboard/KeyboardManager.d.ts +1 -0
- package/types/input/pointer/Pointer.d.ts +25 -0
- package/types/input/pointer/PointerManager.d.ts +1 -0
- package/types/input/wheel/WheelManager.d.ts +1 -0
- package/types/lighting/AmbientLight.d.ts +67 -0
- package/types/lighting/DirectLight.d.ts +21 -0
- package/types/lighting/KHR_lights.d.ts +4 -0
- package/types/lighting/Light.d.ts +48 -0
- package/types/lighting/LightManager.d.ts +5 -0
- package/types/lighting/PointLight.d.ts +18 -0
- package/types/lighting/SpotLight.d.ts +36 -0
- package/types/lighting/enums/DiffuseMode.d.ts +13 -0
- package/types/lighting/index.d.ts +6 -0
- package/types/material/BaseMaterial.d.ts +88 -0
- package/types/material/BlinnPhongMaterial.d.ts +71 -0
- package/types/material/Material.d.ts +51 -0
- package/types/material/PBRBaseMaterial.d.ts +101 -0
- package/types/material/PBRMaterial.d.ts +36 -0
- package/types/material/PBRSpecularMaterial.d.ts +38 -0
- package/types/material/UnlitMaterial.d.ts +33 -0
- package/types/material/enums/BlendMode.d.ts +9 -0
- package/types/material/enums/RenderFace.d.ts +11 -0
- package/types/material/enums/TextureCoordinate.d.ts +13 -0
- package/types/material/index.d.ts +10 -0
- package/types/mesh/BlendShape.d.ts +39 -0
- package/types/mesh/BlendShapeFrame.d.ts +22 -0
- package/types/mesh/BlendShapeManager.d.ts +1 -0
- package/types/mesh/BufferMesh.d.ts +59 -0
- package/types/mesh/MeshRenderer.d.ts +30 -0
- package/types/mesh/ModelMesh.d.ts +226 -0
- package/types/mesh/PrimitiveMesh.d.ts +86 -0
- package/types/mesh/PrimitiveMeshRestorer.d.ts +1 -0
- package/types/mesh/Skin.d.ts +16 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +62 -0
- package/types/mesh/enums/VertexAttribute.d.ts +33 -0
- package/types/mesh/index.d.ts +8 -0
- package/types/particle/ParticleRenderer.d.ts +235 -0
- package/types/particle/index.d.ts +1 -0
- package/types/physics/CharacterController.d.ts +53 -0
- package/types/physics/Collider.d.ts +29 -0
- package/types/physics/DynamicCollider.d.ts +161 -0
- package/types/physics/HitResult.d.ts +15 -0
- package/types/physics/PhysicsManager.d.ts +95 -0
- package/types/physics/PhysicsMaterial.d.ts +37 -0
- package/types/physics/StaticCollider.d.ts +7 -0
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +11 -0
- package/types/physics/enums/ControllerCollisionFlag.d.ts +11 -0
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +9 -0
- package/types/physics/enums/HingeJointFlag.d.ts +1 -0
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +13 -0
- package/types/physics/enums/index.d.ts +4 -0
- package/types/physics/index.d.ts +10 -0
- package/types/physics/joint/FixedJoint.d.ts +3 -0
- package/types/physics/joint/HingeJoint.d.ts +57 -0
- package/types/physics/joint/Joint.d.ts +58 -0
- package/types/physics/joint/JointLimits.d.ts +15 -0
- package/types/physics/joint/JointMotor.d.ts +13 -0
- package/types/physics/joint/SpringJoint.d.ts +42 -0
- package/types/physics/joint/index.d.ts +6 -0
- package/types/physics/shape/BoxColliderShape.d.ts +15 -0
- package/types/physics/shape/CapsuleColliderShape.d.ts +26 -0
- package/types/physics/shape/ColliderShape.d.ts +51 -0
- package/types/physics/shape/PlaneColliderShape.d.ts +7 -0
- package/types/physics/shape/SphereColliderShape.d.ts +13 -0
- package/types/physics/shape/index.d.ts +5 -0
- package/types/renderingHardwareInterface/IHardwareRenderer.d.ts +6 -0
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +8 -0
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +20 -0
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +36 -0
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +37 -0
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +40 -0
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +41 -0
- package/types/renderingHardwareInterface/index.d.ts +6 -0
- package/types/shader/Shader.d.ts +72 -0
- package/types/shader/ShaderData.d.ts +350 -0
- package/types/shader/ShaderMacro.d.ts +10 -0
- package/types/shader/ShaderMacroCollection.d.ts +1 -0
- package/types/shader/ShaderPart.d.ts +41 -0
- package/types/shader/ShaderPass.d.ts +9 -0
- package/types/shader/ShaderPool.d.ts +1 -0
- package/types/shader/ShaderProgram.d.ts +1 -0
- package/types/shader/ShaderProgramPool.d.ts +1 -0
- package/types/shader/ShaderProperty.d.ts +13 -0
- package/types/shader/ShaderTagKey.d.ts +16 -0
- package/types/shader/ShaderUniform.d.ts +1 -0
- package/types/shader/ShaderUniformBlock.d.ts +1 -0
- package/types/shader/SubShader.d.ts +19 -0
- package/types/shader/enums/BlendFactor.d.ts +32 -0
- package/types/shader/enums/BlendOperation.d.ts +16 -0
- package/types/shader/enums/ColorWriteMask.d.ts +18 -0
- package/types/shader/enums/CompareFunction.d.ts +22 -0
- package/types/shader/enums/CullMode.d.ts +12 -0
- package/types/shader/enums/RenderQueueType.d.ts +11 -0
- package/types/shader/enums/ShaderDataGroup.d.ts +13 -0
- package/types/shader/enums/ShaderPropertyType.d.ts +27 -0
- package/types/shader/enums/StencilOperation.d.ts +22 -0
- package/types/shader/index.d.ts +12 -0
- package/types/shader/state/BlendState.d.ts +16 -0
- package/types/shader/state/DepthState.d.ts +14 -0
- package/types/shader/state/RasterState.d.ts +13 -0
- package/types/shader/state/RenderState.d.ts +20 -0
- package/types/shader/state/RenderTargetBlendState.d.ts +24 -0
- package/types/shader/state/StencilState.d.ts +34 -0
- package/types/shaderlib/ShaderFactory.d.ts +17 -0
- package/types/shaderlib/ShaderLib.d.ts +57 -0
- package/types/shaderlib/index.d.ts +1 -0
- package/types/shaderlib/pbr/index.d.ts +9 -0
- package/types/shaderlib/shadow/index.d.ts +8 -0
- package/types/shadow/CascadedShadowCasterPass.d.ts +47 -0
- package/types/shadow/ShadowSliceData.d.ts +1 -0
- package/types/shadow/ShadowUtils.d.ts +1 -0
- package/types/shadow/enum/ShadowCascadesMode.d.ts +11 -0
- package/types/shadow/enum/ShadowMode.d.ts +13 -0
- package/types/shadow/enum/ShadowResolution.d.ts +13 -0
- package/types/shadow/enum/ShadowType.d.ts +13 -0
- package/types/shadow/index.d.ts +3 -0
- package/types/sky/Sky.d.ts +14 -0
- package/types/sky/SkyBoxMaterial.d.ts +25 -0
- package/types/sky/index.d.ts +2 -0
- package/types/texture/RenderTarget.d.ts +95 -0
- package/types/texture/Texture.d.ts +77 -0
- package/types/texture/Texture2D.d.ts +68 -0
- package/types/texture/Texture2DArray.d.ts +81 -0
- package/types/texture/TextureCube.d.ts +70 -0
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +21 -0
- package/types/texture/enums/TextureCubeFace.d.ts +17 -0
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +21 -0
- package/types/texture/enums/TextureFilterMode.d.ts +11 -0
- package/types/texture/enums/TextureFormat.d.ts +69 -0
- package/types/texture/enums/TextureWrapMode.d.ts +11 -0
- package/types/texture/index.d.ts +11 -0
- package/types/trail/TrailMaterial.d.ts +5 -0
- package/types/trail/TrailRenderer.d.ts +40 -0
- package/types/trail/index.d.ts +2 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ColliderShape } from "./ColliderShape";
|
|
2
|
+
import { Vector3 } from "@galacean/engine-math";
|
|
3
|
+
/**
|
|
4
|
+
* Physical collider shape for box.
|
|
5
|
+
*/
|
|
6
|
+
export declare class BoxColliderShape extends ColliderShape {
|
|
7
|
+
private _size;
|
|
8
|
+
/**
|
|
9
|
+
* Size of box shape.
|
|
10
|
+
*/
|
|
11
|
+
get size(): Vector3;
|
|
12
|
+
set size(value: Vector3);
|
|
13
|
+
constructor();
|
|
14
|
+
private _setSize;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ColliderShape } from "./ColliderShape";
|
|
2
|
+
import { ColliderShapeUpAxis } from "../enums/ColliderShapeUpAxis";
|
|
3
|
+
/**
|
|
4
|
+
* Physical collider shape for capsule.
|
|
5
|
+
*/
|
|
6
|
+
export declare class CapsuleColliderShape extends ColliderShape {
|
|
7
|
+
private _radius;
|
|
8
|
+
private _height;
|
|
9
|
+
private _upAxis;
|
|
10
|
+
/**
|
|
11
|
+
* Radius of capsule.
|
|
12
|
+
*/
|
|
13
|
+
get radius(): number;
|
|
14
|
+
set radius(value: number);
|
|
15
|
+
/**
|
|
16
|
+
* Height of capsule.
|
|
17
|
+
*/
|
|
18
|
+
get height(): number;
|
|
19
|
+
set height(value: number);
|
|
20
|
+
/**
|
|
21
|
+
* Up axis of capsule.
|
|
22
|
+
*/
|
|
23
|
+
get upAxis(): ColliderShapeUpAxis;
|
|
24
|
+
set upAxis(value: ColliderShapeUpAxis);
|
|
25
|
+
constructor();
|
|
26
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PhysicsMaterial } from "../PhysicsMaterial";
|
|
2
|
+
import { Vector3 } from "@galacean/engine-math";
|
|
3
|
+
import { Collider } from "../Collider";
|
|
4
|
+
/**
|
|
5
|
+
* Abstract class for collider shapes.
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class ColliderShape {
|
|
8
|
+
private static _idGenerator;
|
|
9
|
+
protected _id: number;
|
|
10
|
+
protected _material: PhysicsMaterial;
|
|
11
|
+
private _isTrigger;
|
|
12
|
+
private _rotation;
|
|
13
|
+
private _position;
|
|
14
|
+
private _contactOffset;
|
|
15
|
+
/**
|
|
16
|
+
* Collider owner of this shape.
|
|
17
|
+
*/
|
|
18
|
+
get collider(): Collider;
|
|
19
|
+
/**
|
|
20
|
+
* Unique id for this shape.
|
|
21
|
+
*/
|
|
22
|
+
get id(): number;
|
|
23
|
+
/**
|
|
24
|
+
* Contact offset for this shape.
|
|
25
|
+
*/
|
|
26
|
+
get contactOffset(): number;
|
|
27
|
+
set contactOffset(value: number);
|
|
28
|
+
/**
|
|
29
|
+
* Physical material.
|
|
30
|
+
*/
|
|
31
|
+
get material(): PhysicsMaterial;
|
|
32
|
+
set material(value: PhysicsMaterial);
|
|
33
|
+
/**
|
|
34
|
+
* The local rotation of this ColliderShape.
|
|
35
|
+
*/
|
|
36
|
+
get rotation(): Vector3;
|
|
37
|
+
set rotation(value: Vector3);
|
|
38
|
+
/**
|
|
39
|
+
* The local position of this ColliderShape.
|
|
40
|
+
*/
|
|
41
|
+
get position(): Vector3;
|
|
42
|
+
set position(value: Vector3);
|
|
43
|
+
/**
|
|
44
|
+
* True for TriggerShape, false for SimulationShape.
|
|
45
|
+
*/
|
|
46
|
+
get isTrigger(): boolean;
|
|
47
|
+
set isTrigger(value: boolean);
|
|
48
|
+
protected constructor();
|
|
49
|
+
private _setPosition;
|
|
50
|
+
private _setRotation;
|
|
51
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ColliderShape } from "./ColliderShape";
|
|
2
|
+
/**
|
|
3
|
+
* Physical collider shape for sphere.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SphereColliderShape extends ColliderShape {
|
|
6
|
+
private _radius;
|
|
7
|
+
/**
|
|
8
|
+
* Radius of sphere shape.
|
|
9
|
+
*/
|
|
10
|
+
get radius(): number;
|
|
11
|
+
set radius(value: number);
|
|
12
|
+
constructor();
|
|
13
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ColliderShape } from "./ColliderShape";
|
|
2
|
+
export { BoxColliderShape } from "./BoxColliderShape";
|
|
3
|
+
export { SphereColliderShape } from "./SphereColliderShape";
|
|
4
|
+
export { PlaneColliderShape } from "./PlaneColliderShape";
|
|
5
|
+
export { CapsuleColliderShape } from "./CapsuleColliderShape";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SetDataOptions } from "../graphic";
|
|
2
|
+
export interface IPlatformBuffer {
|
|
3
|
+
bind(): void;
|
|
4
|
+
setData(byteLength: number, data: ArrayBuffer | ArrayBufferView, bufferByteOffset?: number, dataOffset?: number, dataLength?: number, options?: SetDataOptions): void;
|
|
5
|
+
getData(data: ArrayBufferView, bufferByteOffset?: number, dataOffset?: number, dataLength?: number): void;
|
|
6
|
+
resize(byteLength: number): void;
|
|
7
|
+
destroy(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TextureCubeFace } from "../texture";
|
|
2
|
+
/**
|
|
3
|
+
* Off-screen rendering target specification.
|
|
4
|
+
*/
|
|
5
|
+
export interface IPlatformRenderTarget {
|
|
6
|
+
/**
|
|
7
|
+
* Set which face and mipLevel of the cube texture to render to.
|
|
8
|
+
* @param faceIndex - Cube texture face
|
|
9
|
+
* @param mipLevel - Set mip level the data want to write
|
|
10
|
+
*/
|
|
11
|
+
setRenderTargetInfo(faceIndex: TextureCubeFace, mipLevel: number): void;
|
|
12
|
+
/**
|
|
13
|
+
* Blit FBO.
|
|
14
|
+
*/
|
|
15
|
+
blitRenderTarget(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Destroy render target.
|
|
18
|
+
*/
|
|
19
|
+
destroy(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { TextureFilterMode, TextureWrapMode } from "../texture";
|
|
2
|
+
import { TextureDepthCompareFunction } from "../texture/enums/TextureDepthCompareFunction";
|
|
3
|
+
/**
|
|
4
|
+
* Texture interface specification.
|
|
5
|
+
*/
|
|
6
|
+
export interface IPlatformTexture {
|
|
7
|
+
/**
|
|
8
|
+
* Wrapping mode for texture coordinate S.
|
|
9
|
+
*/
|
|
10
|
+
wrapModeU: TextureWrapMode;
|
|
11
|
+
/**
|
|
12
|
+
* Wrapping mode for texture coordinate T.
|
|
13
|
+
*/
|
|
14
|
+
wrapModeV: TextureWrapMode;
|
|
15
|
+
/**
|
|
16
|
+
* Filter mode for texture.
|
|
17
|
+
*/
|
|
18
|
+
filterMode: TextureFilterMode;
|
|
19
|
+
/**
|
|
20
|
+
* Anisotropic level for texture.
|
|
21
|
+
*/
|
|
22
|
+
anisoLevel: number;
|
|
23
|
+
/**
|
|
24
|
+
* Filter mode when texture as depth Texture.
|
|
25
|
+
*/
|
|
26
|
+
depthCompareFunction: TextureDepthCompareFunction;
|
|
27
|
+
/**
|
|
28
|
+
* Destroy texture.
|
|
29
|
+
*/
|
|
30
|
+
destroy(): void;
|
|
31
|
+
/**
|
|
32
|
+
* Generate multi-level textures based on the 0th level data.
|
|
33
|
+
*/
|
|
34
|
+
generateMipmaps(): void;
|
|
35
|
+
setUseDepthCompareMode(value: boolean): any;
|
|
36
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { IPlatformTexture } from "./IPlatformTexture";
|
|
2
|
+
/**
|
|
3
|
+
* 2D texture interface specification.
|
|
4
|
+
*/
|
|
5
|
+
export interface IPlatformTexture2D extends IPlatformTexture {
|
|
6
|
+
/**
|
|
7
|
+
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
8
|
+
* @remarks If it is the WebGL1.0 platform and the texture format is compressed, the first upload must be filled with textures.
|
|
9
|
+
* @param colorBuffer - Color buffer data
|
|
10
|
+
* @param mipLevel - Texture mipmapping level
|
|
11
|
+
* @param x - X coordinate of area start
|
|
12
|
+
* @param y - Y coordinate of area start
|
|
13
|
+
* @param width - Data width. if it's empty, width is the width corresponding to mipLevel minus x , width corresponding to mipLevel is Math.max(1, this.width >> mipLevel)
|
|
14
|
+
* @param height - Data height. if it's empty, height is the height corresponding to mipLevel minus y , height corresponding to mipLevel is Math.max(1, this.height >> mipLevel)
|
|
15
|
+
*/
|
|
16
|
+
setPixelBuffer(colorBuffer: ArrayBufferView, mipLevel: number, x: number, y: number, width?: number, height?: number): void;
|
|
17
|
+
/**
|
|
18
|
+
* Setting pixels data through TexImageSource, designated area and texture mipmapping level.
|
|
19
|
+
* @param imageSource - The source of texture
|
|
20
|
+
* @param mipLevel - Texture mipmapping level
|
|
21
|
+
* @param flipY - Whether to flip the Y axis
|
|
22
|
+
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
23
|
+
* @param x - X coordinate of area start
|
|
24
|
+
* @param y - Y coordinate of area start
|
|
25
|
+
*/
|
|
26
|
+
setImageSource(imageSource: TexImageSource | OffscreenCanvas, mipLevel: number, flipY: boolean, premultiplyAlpha: boolean, x: number, y: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* Get the pixel color buffer according to the specified area.
|
|
29
|
+
* @param x - X coordinate of area start
|
|
30
|
+
* @param y - Y coordinate of area start
|
|
31
|
+
* @param width - Area width
|
|
32
|
+
* @param height - Area height
|
|
33
|
+
* @param mipLevel - Set mip level the data want to get from
|
|
34
|
+
* @param out - Color buffer
|
|
35
|
+
*/
|
|
36
|
+
getPixelBuffer(x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IPlatformTexture } from "./IPlatformTexture";
|
|
2
|
+
/**
|
|
3
|
+
* 2D texture array interface specification.
|
|
4
|
+
*/
|
|
5
|
+
export interface IPlatformTexture2DArray extends IPlatformTexture {
|
|
6
|
+
/**
|
|
7
|
+
* Setting pixels data through color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
8
|
+
* @param offsetIndex - The texture array element offset index
|
|
9
|
+
* @param colorBuffer - Color buffer data
|
|
10
|
+
* @param mipLevel - Texture mipmapping level
|
|
11
|
+
* @param x - X coordinate of area start
|
|
12
|
+
* @param y - Y coordinate of area start
|
|
13
|
+
* @param width - Data width. if it's empty, width is the width corresponding to mipLevel minus x , width corresponding to mipLevel is Math.max(1, this.width >> mipLevel)
|
|
14
|
+
* @param height - Data height. if it's empty, height is the height corresponding to mipLevel minus y , height corresponding to mipLevel is Math.max(1, this.height >> mipLevel)
|
|
15
|
+
* @param length - Data length.
|
|
16
|
+
*/
|
|
17
|
+
setPixelBuffer(offsetIndex: number, colorBuffer: ArrayBufferView, mipLevel: number, x: number, y: number, width?: number, height?: number, length?: number): void;
|
|
18
|
+
/**
|
|
19
|
+
* Setting pixels data through TexImageSource, designated area and texture mipmapping level.
|
|
20
|
+
* @param index - The texture array element index
|
|
21
|
+
* @param imageSource - The source of texture
|
|
22
|
+
* @param mipLevel - Texture mipmapping level
|
|
23
|
+
* @param flipY - Whether to flip the Y axis
|
|
24
|
+
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
25
|
+
* @param x - X coordinate of area start
|
|
26
|
+
* @param y - Y coordinate of area start
|
|
27
|
+
*/
|
|
28
|
+
setImageSource(index: number, imageSource: TexImageSource | OffscreenCanvas, mipLevel: number, flipY: boolean, premultiplyAlpha: boolean, x: number, y: number): void;
|
|
29
|
+
/**
|
|
30
|
+
* Get the pixel color buffer according to the specified area.
|
|
31
|
+
* @param elementIndex - The texture array element index
|
|
32
|
+
* @param x - X coordinate of area start
|
|
33
|
+
* @param y - Y coordinate of area start
|
|
34
|
+
* @param width - Area width
|
|
35
|
+
* @param height - Area height
|
|
36
|
+
* @param mipLevel - Set mip level the data want to get from
|
|
37
|
+
* @param out - Color buffer
|
|
38
|
+
*/
|
|
39
|
+
getPixelBuffer(elementIndex: number, x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { TextureCubeFace } from "../texture";
|
|
2
|
+
import { IPlatformTexture } from "./IPlatformTexture";
|
|
3
|
+
/**
|
|
4
|
+
* Cube texture interface specification.
|
|
5
|
+
*/
|
|
6
|
+
export interface IPlatformTextureCube extends IPlatformTexture {
|
|
7
|
+
/**
|
|
8
|
+
* Setting pixels data through cube face,color buffer data, designated area and texture mipmapping level,it's also applicable to compressed formats.
|
|
9
|
+
* @remarks When compressed texture is in WebGL1, the texture must be filled first before writing the sub-region
|
|
10
|
+
* @param face - Cube face
|
|
11
|
+
* @param colorBuffer - Color buffer data
|
|
12
|
+
* @param mipLevel - Texture mipmapping level
|
|
13
|
+
* @param x - X coordinate of area start
|
|
14
|
+
* @param y - Y coordinate of area start
|
|
15
|
+
* @param width - Data width.if it's empty, width is the width corresponding to mipLevel minus x , width corresponding to mipLevel is Math.max(1, this.width >> mipLevel)
|
|
16
|
+
* @param height - Data height.if it's empty, height is the height corresponding to mipLevel minus y , height corresponding to mipLevel is Math.max(1, this.height >> mipLevel)
|
|
17
|
+
*/
|
|
18
|
+
setPixelBuffer(face: TextureCubeFace, colorBuffer: ArrayBufferView, mipLevel: number, x: number, y: number, width?: number, height?: number): void;
|
|
19
|
+
/**
|
|
20
|
+
* Setting pixels data through cube face, TexImageSource, designated area and texture mipmapping level.
|
|
21
|
+
* @param face - Cube face
|
|
22
|
+
* @param imageSource - The source of texture
|
|
23
|
+
* @param mipLevel - Texture mipmapping level
|
|
24
|
+
* @param flipY - Whether to flip the Y axis
|
|
25
|
+
* @param premultiplyAlpha - Whether to premultiply the transparent channel
|
|
26
|
+
* @param x - X coordinate of area start
|
|
27
|
+
* @param y - Y coordinate of area start
|
|
28
|
+
*/
|
|
29
|
+
setImageSource(face: TextureCubeFace, imageSource: TexImageSource | OffscreenCanvas, mipLevel: number, flipY: boolean, premultiplyAlpha: boolean, x: number, y: number): void;
|
|
30
|
+
/**
|
|
31
|
+
* Get the pixel color buffer according to the specified cube face and area.
|
|
32
|
+
* @param face - You can choose which cube face to read
|
|
33
|
+
* @param x - X coordinate of area start
|
|
34
|
+
* @param y - Y coordinate of area start
|
|
35
|
+
* @param width - Area width
|
|
36
|
+
* @param height - Area height
|
|
37
|
+
* @param mipLevel - Set mip level the data want to get from
|
|
38
|
+
* @param out - Color buffer
|
|
39
|
+
*/
|
|
40
|
+
getPixelBuffer(face: TextureCubeFace, x: number, y: number, width: number, height: number, mipLevel: number, out: ArrayBufferView): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type { IHardwareRenderer } from "./IHardwareRenderer";
|
|
2
|
+
export type { IPlatformRenderTarget } from "./IPlatformRenderTarget";
|
|
3
|
+
export type { IPlatformTexture } from "./IPlatformTexture";
|
|
4
|
+
export type { IPlatformTexture2D } from "./IPlatformTexture2D";
|
|
5
|
+
export type { IPlatformTexture2DArray } from "./IPlatformTexture2DArray";
|
|
6
|
+
export type { IPlatformTextureCube } from "./IPlatformTextureCube";
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Engine } from "../Engine";
|
|
2
|
+
import { ShaderMacro } from "./ShaderMacro";
|
|
3
|
+
import { ShaderPass } from "./ShaderPass";
|
|
4
|
+
import { ShaderProperty } from "./ShaderProperty";
|
|
5
|
+
/**
|
|
6
|
+
* Shader for rendering.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Shader {
|
|
9
|
+
private static _shaderMap;
|
|
10
|
+
private static _propertyNameMap;
|
|
11
|
+
private static _macroMaskMap;
|
|
12
|
+
private static _macroCounter;
|
|
13
|
+
private static _macroMap;
|
|
14
|
+
/**
|
|
15
|
+
* Create a shader.
|
|
16
|
+
* @param name - Name of the shader
|
|
17
|
+
* @param vertexSource - Vertex source code
|
|
18
|
+
* @param fragmentSource - Fragment source code
|
|
19
|
+
* @returns Shader
|
|
20
|
+
*/
|
|
21
|
+
static create(name: string, vertexSource: string, fragmentSource: string): Shader;
|
|
22
|
+
/**
|
|
23
|
+
* Create a shader.
|
|
24
|
+
* @param name - Name of the shader
|
|
25
|
+
* @param shaderPasses - Shader passes
|
|
26
|
+
* @returns Shader
|
|
27
|
+
*/
|
|
28
|
+
static create(name: string, shaderPasses: ShaderPass[]): Shader;
|
|
29
|
+
/**
|
|
30
|
+
* Find a shader by name.
|
|
31
|
+
* @param name - Name of the shader
|
|
32
|
+
*/
|
|
33
|
+
static find(name: string): Shader;
|
|
34
|
+
/**
|
|
35
|
+
* Get shader macro by name.
|
|
36
|
+
* @param name - Name of the shader macro
|
|
37
|
+
* @returns Shader macro
|
|
38
|
+
*/
|
|
39
|
+
static getMacroByName(name: string): ShaderMacro;
|
|
40
|
+
/**
|
|
41
|
+
* Get shader macro by name.
|
|
42
|
+
* @param name - Name of the shader macro
|
|
43
|
+
* @param value - Value of the shader macro
|
|
44
|
+
* @returns Shader macro
|
|
45
|
+
*/
|
|
46
|
+
static getMacroByName(name: string, value: string): ShaderMacro;
|
|
47
|
+
/**
|
|
48
|
+
* Get shader property by name.
|
|
49
|
+
* @param name - Name of the shader property
|
|
50
|
+
* @returns Shader property
|
|
51
|
+
*/
|
|
52
|
+
static getPropertyByName(name: string): ShaderProperty;
|
|
53
|
+
/** The name of shader. */
|
|
54
|
+
readonly name: string;
|
|
55
|
+
/**
|
|
56
|
+
* Shader passes.
|
|
57
|
+
*/
|
|
58
|
+
get passes(): ReadonlyArray<ShaderPass>;
|
|
59
|
+
private _passes;
|
|
60
|
+
private constructor();
|
|
61
|
+
/**
|
|
62
|
+
* Compile shader variant by macro name list.
|
|
63
|
+
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* Usually a shader contains some macros,any combination of macros is called shader variant.
|
|
66
|
+
*
|
|
67
|
+
* @param engine - Engine to which the shader variant belongs
|
|
68
|
+
* @param macros - Macro name list
|
|
69
|
+
* @returns Is the compiled shader variant valid
|
|
70
|
+
*/
|
|
71
|
+
compileVariant(engine: Engine, macros: string[]): boolean;
|
|
72
|
+
}
|