@galacean/engine-core 1.6.7 → 1.6.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/package.json +3 -3
- package/dist/main.js +0 -37541
- package/dist/main.js.map +0 -1
- package/dist/module.js +0 -37259
- package/dist/module.js.map +0 -1
- package/types/2d/assembler/ISpriteAssembler.d.ts +0 -11
- package/types/2d/assembler/ISpriteRenderer.d.ts +0 -16
- package/types/2d/assembler/SimpleSpriteAssembler.d.ts +0 -13
- package/types/2d/assembler/SlicedSpriteAssembler.d.ts +0 -15
- package/types/2d/assembler/TiledSpriteAssembler.d.ts +0 -17
- package/types/2d/atlas/FontAtlas.d.ts +0 -1
- package/types/2d/atlas/SpriteAtlas.d.ts +0 -32
- package/types/2d/atlas/types.d.ts +0 -69
- package/types/2d/enums/FontStyle.d.ts +0 -11
- package/types/2d/enums/SpriteDrawMode.d.ts +0 -11
- package/types/2d/enums/SpriteMaskInteraction.d.ts +0 -11
- package/types/2d/enums/SpriteModifyFlags.d.ts +0 -23
- package/types/2d/enums/SpriteTileMode.d.ts +0 -11
- package/types/2d/enums/TextAlignment.d.ts +0 -22
- package/types/2d/enums/TextOverflow.d.ts +0 -9
- package/types/2d/index.d.ts +0 -16
- package/types/2d/sprite/Sprite.d.ts +0 -106
- package/types/2d/sprite/SpriteMask.d.ts +0 -70
- package/types/2d/sprite/SpriteRenderer.d.ts +0 -95
- package/types/2d/sprite/index.d.ts +0 -3
- package/types/2d/text/CharInfo.d.ts +0 -1
- package/types/2d/text/CharRenderInfo.d.ts +0 -1
- package/types/2d/text/Font.d.ts +0 -21
- package/types/2d/text/ITextRenderer.d.ts +0 -8
- package/types/2d/text/SubFont.d.ts +0 -1
- package/types/2d/text/TextRenderer.d.ts +0 -122
- package/types/2d/text/TextUtils.d.ts +0 -1
- package/types/2d/text/index.d.ts +0 -5
- package/types/Background.d.ts +0 -53
- package/types/BasicResources.d.ts +0 -2
- package/types/BoolUpdateFlag.d.ts +0 -12
- package/types/Camera.d.ts +0 -321
- package/types/Canvas.d.ts +0 -19
- package/types/Component.d.ts +0 -27
- package/types/ComponentsDependencies.d.ts +0 -25
- package/types/ComponentsManager.d.ts +0 -52
- package/types/Engine.d.ts +0 -150
- package/types/EngineSettings.d.ts +0 -5
- package/types/Entity.d.ts +0 -171
- package/types/Layer.d.ts +0 -73
- package/types/Platform.d.ts +0 -15
- package/types/Polyfill.d.ts +0 -1
- package/types/RenderPipeline/BasicRenderPipeline.d.ts +0 -55
- package/types/RenderPipeline/BatchUtils.d.ts +0 -1
- package/types/RenderPipeline/BatcherManager.d.ts +0 -1
- package/types/RenderPipeline/Blitter.d.ts +0 -28
- package/types/RenderPipeline/CullingResults.d.ts +0 -1
- package/types/RenderPipeline/DepthOnlyPass.d.ts +0 -1
- package/types/RenderPipeline/MaskManager.d.ts +0 -1
- package/types/RenderPipeline/OpaqueTexturePass.d.ts +0 -1
- package/types/RenderPipeline/PipelinePass.d.ts +0 -16
- package/types/RenderPipeline/PipelineUtils.d.ts +0 -1
- package/types/RenderPipeline/PrimitiveChunk.d.ts +0 -1
- package/types/RenderPipeline/PrimitiveChunkManager.d.ts +0 -1
- package/types/RenderPipeline/RenderContext.d.ts +0 -1
- package/types/RenderPipeline/RenderElement.d.ts +0 -12
- package/types/RenderPipeline/RenderQueue.d.ts +0 -1
- package/types/RenderPipeline/SubPrimitiveChunk.d.ts +0 -1
- package/types/RenderPipeline/SubRenderElement.d.ts +0 -22
- package/types/RenderPipeline/VertexArea.d.ts +0 -1
- package/types/RenderPipeline/enums/PipelineStage.d.ts +0 -11
- package/types/RenderPipeline/enums/RenderQueueMaskType.d.ts +0 -1
- package/types/RenderPipeline/index.d.ts +0 -5
- package/types/Renderer.d.ts +0 -135
- package/types/Scene.d.ts +0 -183
- package/types/SceneManager.d.ts +0 -51
- package/types/Script.d.ts +0 -144
- package/types/SystemInfo.d.ts +0 -27
- package/types/Transform.d.ts +0 -304
- package/types/UpdateFlag.d.ts +0 -20
- package/types/UpdateFlagManager.d.ts +0 -1
- package/types/Utils.d.ts +0 -37
- package/types/VirtualCamera.d.ts +0 -1
- package/types/animation/AnimationClip.d.ts +0 -87
- package/types/animation/AnimationClipCurveBinding.d.ts +0 -31
- package/types/animation/AnimationEvent.d.ts +0 -11
- package/types/animation/Animator.d.ts +0 -154
- package/types/animation/AnimatorCondition.d.ts +0 -13
- package/types/animation/AnimatorController.d.ts +0 -72
- package/types/animation/AnimatorControllerLayer.d.ts +0 -21
- package/types/animation/AnimatorControllerParameter.d.ts +0 -14
- package/types/animation/AnimatorLayerMask.d.ts +0 -45
- package/types/animation/AnimatorState.d.ts +0 -69
- package/types/animation/AnimatorStateMachine.d.ts +0 -85
- package/types/animation/AnimatorStateTransition.d.ts +0 -59
- package/types/animation/AnimatorStateTransitionCollection.d.ts +0 -1
- package/types/animation/Keyframe.d.ts +0 -20
- package/types/animation/LayerPathMask.d.ts +0 -16
- package/types/animation/StateMachineScript.d.ts +0 -32
- package/types/animation/animationCurve/AnimationArrayCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationBoolCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationColorCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationCurve.d.ts +0 -39
- package/types/animation/animationCurve/AnimationFloatArrayCurve.d.ts +0 -11
- package/types/animation/animationCurve/AnimationFloatCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationQuaternionCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationRectCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationRefCurve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +0 -7
- package/types/animation/animationCurve/AnimationVector2Curve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationVector3Curve.d.ts +0 -8
- package/types/animation/animationCurve/AnimationVector4Curve.d.ts +0 -8
- package/types/animation/animationCurve/index.d.ts +0 -13
- package/types/animation/animationCurve/interfaces/IAnimationCurveCalculator.d.ts +0 -1
- package/types/animation/enums/AnimatorConditionMode.d.ts +0 -17
- package/types/animation/enums/AnimatorCullingMode.d.ts +0 -9
- package/types/animation/enums/AnimatorLayerBlendingMode.d.ts +0 -4
- package/types/animation/enums/AnimatorStatePlayState.d.ts +0 -1
- package/types/animation/enums/InterpolationType.d.ts +0 -13
- package/types/animation/enums/LayerState.d.ts +0 -15
- package/types/animation/enums/PlayState.d.ts +0 -13
- package/types/animation/enums/WrapMode.d.ts +0 -9
- package/types/animation/index.d.ts +0 -25
- package/types/animation/internal/AnimationCurveLayerOwner.d.ts +0 -1
- package/types/animation/internal/AnimationEventHandler.d.ts +0 -1
- package/types/animation/internal/AnimatorLayerData.d.ts +0 -1
- package/types/animation/internal/AnimatorStateData.d.ts +0 -1
- package/types/animation/internal/AnimatorStatePlayData.d.ts +0 -1
- package/types/animation/internal/AnimatorTempValue.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/AnimationCurveOwner.d.ts +0 -5
- package/types/animation/internal/animationCurveOwner/assembler/BlendShapeWeightsAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/IAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/PositionAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/RotationAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/ScaleAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/animation/internal/animationCurveOwner/assembler/UniversalAnimationCurveOwnerAssembler.d.ts +0 -1
- package/types/asset/AssetPromise.d.ts +0 -88
- package/types/asset/AssetType.d.ts +0 -66
- package/types/asset/ContentRestorer.d.ts +0 -17
- package/types/asset/GraphicsResource.d.ts +0 -9
- package/types/asset/IReferable.d.ts +0 -2
- package/types/asset/LoadItem.d.ts +0 -40
- package/types/asset/Loader.d.ts +0 -37
- package/types/asset/ReferResource.d.ts +0 -23
- package/types/asset/ResourceManager.d.ts +0 -121
- package/types/asset/request.d.ts +0 -36
- package/types/audio/AudioClip.d.ts +0 -24
- package/types/audio/AudioManager.d.ts +0 -1
- package/types/audio/AudioSource.d.ts +0 -72
- package/types/audio/index.d.ts +0 -3
- package/types/base/Constant.d.ts +0 -116
- package/types/base/EngineObject.d.ts +0 -25
- package/types/base/EventDispatcher.d.ts +0 -66
- package/types/base/Logger.d.ts +0 -11
- package/types/base/StaticInterfaceImplement.d.ts +0 -5
- package/types/base/Time.d.ts +0 -44
- package/types/base/index.d.ts +0 -5
- package/types/clone/CloneManager.d.ts +0 -31
- package/types/clone/ComponentCloner.d.ts +0 -17
- package/types/clone/enums/CloneMode.d.ts +0 -13
- package/types/enums/ActiveChangeFlag.d.ts +0 -6
- package/types/enums/AntiAliasing.d.ts +0 -7
- package/types/enums/BackgroundMode.d.ts +0 -9
- package/types/enums/BackgroundTextureFillMode.d.ts +0 -8
- package/types/enums/CameraClearFlags.d.ts +0 -13
- package/types/enums/CameraModifyFlags.d.ts +0 -17
- package/types/enums/CameraType.d.ts +0 -1
- package/types/enums/DepthTextureMode.d.ts +0 -7
- package/types/enums/Downsampling.d.ts +0 -11
- package/types/enums/EntityModifyFlags.d.ts +0 -9
- package/types/enums/FogMode.d.ts +0 -13
- package/types/enums/MSAASamples.d.ts +0 -13
- package/types/enums/ReplacementFailureStrategy.d.ts +0 -9
- package/types/enums/SpriteMaskLayer.d.ts +0 -73
- package/types/env-probe/CubeProbe.d.ts +0 -27
- package/types/env-probe/Probe.d.ts +0 -52
- package/types/env-probe/index.d.ts +0 -2
- package/types/graphic/Buffer.d.ts +0 -114
- package/types/graphic/BufferUtil.d.ts +0 -12
- package/types/graphic/IndexBufferBinding.d.ts +0 -21
- package/types/graphic/Mesh.d.ts +0 -58
- package/types/graphic/Primitive.d.ts +0 -1
- package/types/graphic/SubMesh.d.ts +0 -8
- package/types/graphic/SubPrimitive.d.ts +0 -19
- package/types/graphic/VertexBufferBinding.d.ts +0 -20
- package/types/graphic/VertexElement.d.ts +0 -48
- package/types/graphic/enums/BufferBindFlag.d.ts +0 -9
- package/types/graphic/enums/BufferUsage.d.ts +0 -11
- package/types/graphic/enums/IndexFormat.d.ts +0 -11
- package/types/graphic/enums/MeshTopology.d.ts +0 -19
- package/types/graphic/enums/SetDataOptions.d.ts +0 -9
- package/types/graphic/enums/VertexElementFormat.d.ts +0 -37
- package/types/graphic/index.d.ts +0 -15
- package/types/index.d.ts +0 -67
- package/types/input/InputManager.d.ts +0 -65
- package/types/input/enums/Keys.d.ts +0 -398
- package/types/input/enums/PointerButton.d.ts +0 -33
- package/types/input/enums/PointerPhase.d.ts +0 -15
- package/types/input/index.d.ts +0 -8
- package/types/input/interface/IInput.d.ts +0 -10
- package/types/input/keyboard/KeyboardManager.d.ts +0 -1
- package/types/input/pointer/Pointer.d.ts +0 -31
- package/types/input/pointer/PointerEventData.d.ts +0 -12
- package/types/input/pointer/PointerManager.d.ts +0 -9
- package/types/input/pointer/emitter/IHitResult.d.ts +0 -1
- package/types/input/pointer/emitter/PhysicsPointerEventEmitter.d.ts +0 -1
- package/types/input/pointer/emitter/PointerEventEmitter.d.ts +0 -30
- package/types/input/wheel/WheelManager.d.ts +0 -1
- package/types/lighting/AmbientLight.d.ts +0 -70
- package/types/lighting/DirectLight.d.ts +0 -32
- package/types/lighting/KHR_lights.d.ts +0 -4
- package/types/lighting/Light.d.ts +0 -45
- package/types/lighting/LightManager.d.ts +0 -12
- package/types/lighting/PointLight.d.ts +0 -26
- package/types/lighting/SpotLight.d.ts +0 -45
- package/types/lighting/ambientOcclusion/AmbientOcclusion.d.ts +0 -79
- package/types/lighting/ambientOcclusion/ScalableAmbientObscurancePass.d.ts +0 -1
- package/types/lighting/ambientOcclusion/index.d.ts +0 -2
- package/types/lighting/enums/AmbientOcclusionQuality.d.ts +0 -11
- package/types/lighting/enums/DiffuseMode.d.ts +0 -13
- package/types/lighting/index.d.ts +0 -7
- package/types/material/BaseMaterial.d.ts +0 -88
- package/types/material/BlinnPhongMaterial.d.ts +0 -68
- package/types/material/Material.d.ts +0 -52
- package/types/material/PBRMaterial.d.ts +0 -311
- package/types/material/UnlitMaterial.d.ts +0 -33
- package/types/material/enums/BlendMode.d.ts +0 -9
- package/types/material/enums/Refraction.d.ts +0 -9
- package/types/material/enums/RenderFace.d.ts +0 -11
- package/types/material/enums/TextureCoordinate.d.ts +0 -13
- package/types/material/index.d.ts +0 -9
- package/types/material/utils/PrefilteredDFG.d.ts +0 -7
- package/types/mesh/BlendShape.d.ts +0 -39
- package/types/mesh/BlendShapeFrame.d.ts +0 -44
- package/types/mesh/BlendShapeManager.d.ts +0 -1
- package/types/mesh/BufferMesh.d.ts +0 -59
- package/types/mesh/MeshRenderer.d.ts +0 -25
- package/types/mesh/ModelMesh.d.ts +0 -254
- package/types/mesh/PrimitiveMesh.d.ts +0 -112
- package/types/mesh/PrimitiveMeshRestorer.d.ts +0 -1
- package/types/mesh/Skin.d.ts +0 -35
- package/types/mesh/SkinnedMeshRenderer.d.ts +0 -50
- package/types/mesh/enums/VertexAttribute.d.ts +0 -33
- package/types/mesh/index.d.ts +0 -9
- package/types/particle/ParticleBufferUtils.d.ts +0 -1
- package/types/particle/ParticleGenerator.d.ts +0 -94
- package/types/particle/ParticleMaterial.d.ts +0 -38
- package/types/particle/ParticleRenderer.d.ts +0 -47
- package/types/particle/enums/ParticleCurveMode.d.ts +0 -9
- package/types/particle/enums/ParticleGradientMode.d.ts +0 -9
- package/types/particle/enums/ParticleRandomSubSeeds.d.ts +0 -1
- package/types/particle/enums/ParticleRenderMode.d.ts +0 -17
- package/types/particle/enums/ParticleScaleMode.d.ts +0 -11
- package/types/particle/enums/ParticleSimulationSpace.d.ts +0 -9
- package/types/particle/enums/ParticleStopMode.d.ts +0 -6
- package/types/particle/enums/attributes/BillboardParticleVertexAttribute.d.ts +0 -1
- package/types/particle/enums/attributes/MeshParticleVertexAttribute.d.ts +0 -5
- package/types/particle/enums/attributes/ParticleInstanceVertexAttribute.d.ts +0 -1
- package/types/particle/index.d.ts +0 -22
- package/types/particle/modules/Burst.d.ts +0 -14
- package/types/particle/modules/ColorOverLifetimeModule.d.ts +0 -20
- package/types/particle/modules/EmissionModule.d.ts +0 -48
- package/types/particle/modules/ForceOverLifetimeModule.d.ts +0 -51
- package/types/particle/modules/MainModule.d.ts +0 -104
- package/types/particle/modules/ParticleCompositeCurve.d.ts +0 -81
- package/types/particle/modules/ParticleCompositeGradient.d.ts +0 -55
- package/types/particle/modules/ParticleCurve.d.ts +0 -63
- package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -17
- package/types/particle/modules/ParticleGradient.d.ts +0 -114
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +0 -34
- package/types/particle/modules/SizeOverLifetimeModule.d.ts +0 -52
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -39
- package/types/particle/modules/VelocityOverLifetimeModule.d.ts +0 -54
- package/types/particle/modules/shape/BaseShape.d.ts +0 -22
- package/types/particle/modules/shape/BoxShape.d.ts +0 -17
- package/types/particle/modules/shape/CircleShape.d.ts +0 -35
- package/types/particle/modules/shape/ConeShape.d.ts +0 -45
- package/types/particle/modules/shape/HemisphereShape.d.ts +0 -14
- package/types/particle/modules/shape/MeshShape.d.ts +0 -21
- package/types/particle/modules/shape/ShapeUtils.d.ts +0 -1
- package/types/particle/modules/shape/SphereShape.d.ts +0 -14
- package/types/particle/modules/shape/enums/ParticleShapeArcMode.d.ts +0 -9
- package/types/particle/modules/shape/enums/ParticleShapeType.d.ts +0 -17
- package/types/particle/modules/shape/index.d.ts +0 -8
- package/types/physics/CharacterController.d.ts +0 -51
- package/types/physics/Collider.d.ts +0 -43
- package/types/physics/Collision.d.ts +0 -22
- package/types/physics/ContactPoint.d.ts +0 -14
- package/types/physics/DynamicCollider.d.ts +0 -192
- package/types/physics/HitResult.d.ts +0 -18
- package/types/physics/PhysicsMaterial.d.ts +0 -42
- package/types/physics/PhysicsScene.d.ts +0 -276
- package/types/physics/StaticCollider.d.ts +0 -7
- package/types/physics/enums/ColliderShapeChangeFlag.d.ts +0 -1
- package/types/physics/enums/ColliderShapeUpAxis.d.ts +0 -11
- package/types/physics/enums/ControllerCollisionFlag.d.ts +0 -11
- package/types/physics/enums/ControllerNonWalkableMode.d.ts +0 -9
- package/types/physics/enums/HingeJointFlag.d.ts +0 -1
- package/types/physics/enums/PhysicsMaterialCombineMode.d.ts +0 -13
- package/types/physics/enums/index.d.ts +0 -4
- package/types/physics/index.d.ts +0 -12
- package/types/physics/joint/FixedJoint.d.ts +0 -4
- package/types/physics/joint/HingeJoint.d.ts +0 -61
- package/types/physics/joint/Joint.d.ts +0 -81
- package/types/physics/joint/JointLimits.d.ts +0 -39
- package/types/physics/joint/JointMotor.d.ts +0 -32
- package/types/physics/joint/SpringJoint.d.ts +0 -38
- package/types/physics/joint/index.d.ts +0 -6
- package/types/physics/shape/BoxColliderShape.d.ts +0 -16
- package/types/physics/shape/CapsuleColliderShape.d.ts +0 -27
- package/types/physics/shape/ColliderShape.d.ts +0 -61
- package/types/physics/shape/PlaneColliderShape.d.ts +0 -9
- package/types/physics/shape/SphereColliderShape.d.ts +0 -14
- package/types/physics/shape/index.d.ts +0 -5
- package/types/postProcess/FinalPass.d.ts +0 -1
- package/types/postProcess/PostProcess.d.ts +0 -64
- package/types/postProcess/PostProcessEffect.d.ts +0 -26
- package/types/postProcess/PostProcessEffectParameter.d.ts +0 -119
- package/types/postProcess/PostProcessManager.d.ts +0 -38
- package/types/postProcess/PostProcessPass.d.ts +0 -50
- package/types/postProcess/PostProcessUberPass.d.ts +0 -25
- package/types/postProcess/effects/BloomEffect.d.ts +0 -50
- package/types/postProcess/effects/TonemappingEffect.d.ts +0 -25
- package/types/postProcess/effects/index.d.ts +0 -2
- package/types/postProcess/index.d.ts +0 -8
- package/types/renderingHardwareInterface/IPlatformBuffer.d.ts +0 -7
- package/types/renderingHardwareInterface/IPlatformRenderTarget.d.ts +0 -20
- package/types/renderingHardwareInterface/IPlatformTexture.d.ts +0 -36
- package/types/renderingHardwareInterface/IPlatformTexture2D.d.ts +0 -37
- package/types/renderingHardwareInterface/IPlatformTexture2DArray.d.ts +0 -40
- package/types/renderingHardwareInterface/IPlatformTextureCube.d.ts +0 -41
- package/types/renderingHardwareInterface/index.d.ts +0 -6
- package/types/shader/Shader.d.ts +0 -119
- package/types/shader/ShaderData.d.ts +0 -350
- package/types/shader/ShaderMacro.d.ts +0 -26
- package/types/shader/ShaderMacroCollection.d.ts +0 -1
- package/types/shader/ShaderPart.d.ts +0 -46
- package/types/shader/ShaderPass.d.ts +0 -25
- package/types/shader/ShaderPool.d.ts +0 -1
- package/types/shader/ShaderProgram.d.ts +0 -1
- package/types/shader/ShaderProgramPool.d.ts +0 -1
- package/types/shader/ShaderProperty.d.ts +0 -20
- package/types/shader/ShaderTagKey.d.ts +0 -16
- package/types/shader/ShaderUniform.d.ts +0 -1
- package/types/shader/ShaderUniformBlock.d.ts +0 -1
- package/types/shader/SubShader.d.ts +0 -18
- package/types/shader/enums/BlendFactor.d.ts +0 -32
- package/types/shader/enums/BlendOperation.d.ts +0 -16
- package/types/shader/enums/ColorWriteMask.d.ts +0 -18
- package/types/shader/enums/CompareFunction.d.ts +0 -22
- package/types/shader/enums/CullMode.d.ts +0 -12
- package/types/shader/enums/RenderQueueType.d.ts +0 -11
- package/types/shader/enums/RenderStateElementKey.d.ts +0 -60
- package/types/shader/enums/ShaderDataGroup.d.ts +0 -15
- package/types/shader/enums/ShaderLanguage.d.ts +0 -9
- package/types/shader/enums/ShaderPropertyType.d.ts +0 -27
- package/types/shader/enums/StencilOperation.d.ts +0 -22
- package/types/shader/index.d.ts +0 -19
- package/types/shader/state/BlendState.d.ts +0 -16
- package/types/shader/state/DepthState.d.ts +0 -14
- package/types/shader/state/RasterState.d.ts +0 -13
- package/types/shader/state/RenderState.d.ts +0 -21
- package/types/shader/state/RenderTargetBlendState.d.ts +0 -24
- package/types/shader/state/StencilState.d.ts +0 -34
- package/types/shader/state/index.d.ts +0 -6
- package/types/shaderlib/ShaderFactory.d.ts +0 -20
- package/types/shaderlib/ShaderLib.d.ts +0 -73
- package/types/shaderlib/index.d.ts +0 -1
- package/types/shaderlib/particle/index.d.ts +0 -15
- package/types/shaderlib/pbr/index.d.ts +0 -11
- package/types/shaderlib/shadow/index.d.ts +0 -8
- package/types/shadow/CascadedShadowCasterPass.d.ts +0 -45
- package/types/shadow/ShadowSliceData.d.ts +0 -1
- package/types/shadow/ShadowUtils.d.ts +0 -1
- package/types/shadow/enum/ShadowCascadesMode.d.ts +0 -11
- package/types/shadow/enum/ShadowResolution.d.ts +0 -13
- package/types/shadow/enum/ShadowType.d.ts +0 -13
- package/types/shadow/index.d.ts +0 -3
- package/types/sky/Sky.d.ts +0 -22
- package/types/sky/SkyBoxMaterial.d.ts +0 -43
- package/types/sky/SkyProceduralMaterial.d.ts +0 -72
- package/types/sky/index.d.ts +0 -3
- package/types/texture/RenderTarget.d.ts +0 -91
- package/types/texture/Texture.d.ts +0 -87
- package/types/texture/Texture2D.d.ts +0 -71
- package/types/texture/Texture2DArray.d.ts +0 -82
- package/types/texture/TextureCube.d.ts +0 -71
- package/types/texture/TextureUtils.d.ts +0 -1
- package/types/texture/enums/RenderBufferDepthFormat.d.ts +0 -23
- package/types/texture/enums/TextureCubeFace.d.ts +0 -17
- package/types/texture/enums/TextureDepthCompareFunction.d.ts +0 -21
- package/types/texture/enums/TextureFilterMode.d.ts +0 -11
- package/types/texture/enums/TextureFormat.d.ts +0 -87
- package/types/texture/enums/TextureUsage.d.ts +0 -9
- package/types/texture/enums/TextureWrapMode.d.ts +0 -11
- package/types/texture/index.d.ts +0 -13
- package/types/trail/TrailMaterial.d.ts +0 -5
- package/types/trail/TrailRenderer.d.ts +0 -35
- package/types/trail/index.d.ts +0 -2
- package/types/ui/IUICanvas.d.ts +0 -1
- package/types/ui/UIUtils.d.ts +0 -12
- package/types/utils/ClearableObjectPool.d.ts +0 -16
- package/types/utils/DisorderedArray.d.ts +0 -70
- package/types/utils/ObjectPool.d.ts +0 -16
- package/types/utils/ReturnableObjectPool.d.ts +0 -16
- package/types/utils/SafeLoopArray.d.ts +0 -46
- package/types/utils/index.d.ts +0 -4
- package/types/xr/XRManager.d.ts +0 -5
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { Color } from "@galacean/engine-math";
|
|
2
|
-
/**
|
|
3
|
-
* Particle gradient.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ParticleGradient {
|
|
6
|
-
private _colorKeys;
|
|
7
|
-
private _alphaKeys;
|
|
8
|
-
private _colorTypeArray;
|
|
9
|
-
private _alphaTypeArray;
|
|
10
|
-
private _colorTypeArrayDirty;
|
|
11
|
-
private _alphaTypeArrayDirty;
|
|
12
|
-
/**
|
|
13
|
-
* The color keys of the gradient.
|
|
14
|
-
*/
|
|
15
|
-
get colorKeys(): ReadonlyArray<GradientColorKey>;
|
|
16
|
-
/**
|
|
17
|
-
* The alpha keys of the gradient.
|
|
18
|
-
*/
|
|
19
|
-
get alphaKeys(): ReadonlyArray<GradientAlphaKey>;
|
|
20
|
-
/**
|
|
21
|
-
* Create a new particle gradient.
|
|
22
|
-
* @param colorKeys - The color keys of the gradient
|
|
23
|
-
* @param alphaKeys - The alpha keys of the gradient
|
|
24
|
-
*/
|
|
25
|
-
constructor(colorKeys?: GradientColorKey[], alphaKeys?: GradientAlphaKey[]);
|
|
26
|
-
/**
|
|
27
|
-
* Add a color key to the gradient.
|
|
28
|
-
* @param key - The key
|
|
29
|
-
*/
|
|
30
|
-
addColorKey(key: GradientColorKey): void;
|
|
31
|
-
/**
|
|
32
|
-
* Add a color key to the gradient.
|
|
33
|
-
* @param time - The key time
|
|
34
|
-
* @param color - The key color
|
|
35
|
-
*/
|
|
36
|
-
addColorKey(time: number, color: Color): void;
|
|
37
|
-
/**
|
|
38
|
-
* Add an alpha key to the gradient.
|
|
39
|
-
* @param key - The key
|
|
40
|
-
*/
|
|
41
|
-
addAlphaKey(key: GradientAlphaKey): void;
|
|
42
|
-
/**
|
|
43
|
-
* Add an alpha key to the gradient.
|
|
44
|
-
* @param time - The key time
|
|
45
|
-
* @param alpha - The key alpha
|
|
46
|
-
*/
|
|
47
|
-
addAlphaKey(time: number, alpha: number): void;
|
|
48
|
-
/**
|
|
49
|
-
* Remove a color key from the gradient.
|
|
50
|
-
* @param index - The remove color key index
|
|
51
|
-
*/
|
|
52
|
-
removeColorKey(index: number): void;
|
|
53
|
-
/**
|
|
54
|
-
* Remove an alpha key from the gradient.
|
|
55
|
-
* @param index - The remove alpha key index
|
|
56
|
-
*/
|
|
57
|
-
removeAlphaKey(index: number): void;
|
|
58
|
-
/**
|
|
59
|
-
* Set the keys of the gradient.
|
|
60
|
-
* @param colorKeys - The color keys
|
|
61
|
-
* @param alphaKeys - The alpha keys
|
|
62
|
-
*/
|
|
63
|
-
setKeys(colorKeys: GradientColorKey[], alphaKeys: GradientAlphaKey[]): void;
|
|
64
|
-
private _addKey;
|
|
65
|
-
private _removeKey;
|
|
66
|
-
private _setColorTypeArrayDirty;
|
|
67
|
-
private _setAlphaTypeArrayDirty;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* The color key of the particle gradient.
|
|
71
|
-
*/
|
|
72
|
-
export declare class GradientColorKey {
|
|
73
|
-
private _time;
|
|
74
|
-
private _color;
|
|
75
|
-
/**
|
|
76
|
-
* The key time.
|
|
77
|
-
*/
|
|
78
|
-
get time(): number;
|
|
79
|
-
set time(value: number);
|
|
80
|
-
/**
|
|
81
|
-
* The key color.
|
|
82
|
-
*/
|
|
83
|
-
get color(): Color;
|
|
84
|
-
set color(value: Color);
|
|
85
|
-
/**
|
|
86
|
-
* Constructor of GradientColorKey.
|
|
87
|
-
* @param time - The time of the gradient colorKey
|
|
88
|
-
* @param color - The alpha component of the gradient colorKey
|
|
89
|
-
*/
|
|
90
|
-
constructor(time: number, color: Color);
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* The alpha key of the particle gradient.
|
|
94
|
-
*/
|
|
95
|
-
export declare class GradientAlphaKey {
|
|
96
|
-
private _time;
|
|
97
|
-
private _alpha;
|
|
98
|
-
/**
|
|
99
|
-
* The key time.
|
|
100
|
-
*/
|
|
101
|
-
get time(): number;
|
|
102
|
-
set time(value: number);
|
|
103
|
-
/**
|
|
104
|
-
* The key alpha.
|
|
105
|
-
*/
|
|
106
|
-
get alpha(): number;
|
|
107
|
-
set alpha(value: number);
|
|
108
|
-
/**
|
|
109
|
-
* Constructor of GradientAlphaKey.
|
|
110
|
-
* @param time - The time of the gradient alpha key
|
|
111
|
-
* @param alpha - The alpha component of the gradient alpha key
|
|
112
|
-
*/
|
|
113
|
-
constructor(time: number, alpha: number);
|
|
114
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ShaderMacro } from "../../shader/ShaderMacro";
|
|
2
|
-
import { ShaderProperty } from "../../shader/ShaderProperty";
|
|
3
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
4
|
-
import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
5
|
-
/**
|
|
6
|
-
* Rotate particles throughout their lifetime.
|
|
7
|
-
*/
|
|
8
|
-
export declare class RotationOverLifetimeModule extends ParticleGeneratorModule {
|
|
9
|
-
static readonly _constantModeMacro: ShaderMacro;
|
|
10
|
-
static readonly _curveModeMacro: ShaderMacro;
|
|
11
|
-
static readonly _isSeparateMacro: ShaderMacro;
|
|
12
|
-
static readonly _isRandomTwoMacro: ShaderMacro;
|
|
13
|
-
static readonly _minConstantProperty: ShaderProperty;
|
|
14
|
-
static readonly _minCurveXProperty: ShaderProperty;
|
|
15
|
-
static readonly _minCurveYProperty: ShaderProperty;
|
|
16
|
-
static readonly _minCurveZProperty: ShaderProperty;
|
|
17
|
-
static readonly _maxConstantProperty: ShaderProperty;
|
|
18
|
-
static readonly _maxCurveXProperty: ShaderProperty;
|
|
19
|
-
static readonly _maxCurveYProperty: ShaderProperty;
|
|
20
|
-
static readonly _maxCurveZProperty: ShaderProperty;
|
|
21
|
-
/** Specifies whether the rotation is separate on each axis, when disabled, only `rotationZ` is used. */
|
|
22
|
-
separateAxes: boolean;
|
|
23
|
-
/** Rotation over lifetime for z axis. */
|
|
24
|
-
rotationX: ParticleCompositeCurve;
|
|
25
|
-
/** Rotation over lifetime for z axis. */
|
|
26
|
-
rotationY: ParticleCompositeCurve;
|
|
27
|
-
/** Rotation over lifetime for z axis. */
|
|
28
|
-
rotationZ: ParticleCompositeCurve;
|
|
29
|
-
private _rotationMinConstant;
|
|
30
|
-
private _rotationMaxConstant;
|
|
31
|
-
private _enableSeparateMacro;
|
|
32
|
-
private _isCurveMacro;
|
|
33
|
-
private _isRandomTwoMacro;
|
|
34
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ShaderMacro } from "../../shader/ShaderMacro";
|
|
2
|
-
import { ShaderProperty } from "../../shader/ShaderProperty";
|
|
3
|
-
import { ParticleGenerator } from "../ParticleGenerator";
|
|
4
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
5
|
-
import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
6
|
-
/**
|
|
7
|
-
* Size over lifetime module.
|
|
8
|
-
*/
|
|
9
|
-
export declare class SizeOverLifetimeModule extends ParticleGeneratorModule {
|
|
10
|
-
static readonly _curveModeMacro: ShaderMacro;
|
|
11
|
-
static readonly _isSeparateMacro: ShaderMacro;
|
|
12
|
-
static readonly _isRandomTwoMacro: ShaderMacro;
|
|
13
|
-
static readonly _minCurveXProperty: ShaderProperty;
|
|
14
|
-
static readonly _minCurveYProperty: ShaderProperty;
|
|
15
|
-
static readonly _minCurveZProperty: ShaderProperty;
|
|
16
|
-
static readonly _maxCurveXProperty: ShaderProperty;
|
|
17
|
-
static readonly _maxCurveYProperty: ShaderProperty;
|
|
18
|
-
static readonly _maxCurveZProperty: ShaderProperty;
|
|
19
|
-
private _separateAxes;
|
|
20
|
-
private _sizeX;
|
|
21
|
-
private _sizeY;
|
|
22
|
-
private _sizeZ;
|
|
23
|
-
private _enableSeparateMacro;
|
|
24
|
-
private _isCurveMacro;
|
|
25
|
-
private _isRandomTwoMacro;
|
|
26
|
-
/**
|
|
27
|
-
* Specifies whether the Size is separate on each axis.
|
|
28
|
-
*/
|
|
29
|
-
set separateAxes(value: boolean);
|
|
30
|
-
get separateAxes(): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Size curve over lifetime for x axis.
|
|
33
|
-
*/
|
|
34
|
-
get sizeX(): ParticleCompositeCurve;
|
|
35
|
-
set sizeX(value: ParticleCompositeCurve);
|
|
36
|
-
/**
|
|
37
|
-
* Size curve over lifetime for y axis.
|
|
38
|
-
*/
|
|
39
|
-
get sizeY(): ParticleCompositeCurve;
|
|
40
|
-
set sizeY(value: ParticleCompositeCurve);
|
|
41
|
-
/**
|
|
42
|
-
* Size curve over lifetime for z axis.
|
|
43
|
-
*/
|
|
44
|
-
get sizeZ(): ParticleCompositeCurve;
|
|
45
|
-
set sizeZ(value: ParticleCompositeCurve);
|
|
46
|
-
/**
|
|
47
|
-
* Size curve over lifetime.
|
|
48
|
-
*/
|
|
49
|
-
get size(): ParticleCompositeCurve;
|
|
50
|
-
set size(value: ParticleCompositeCurve);
|
|
51
|
-
constructor(generator: ParticleGenerator);
|
|
52
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Vector2 } from "@galacean/engine-math";
|
|
2
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
3
|
-
import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
4
|
-
import { ParticleGenerator } from "../ParticleGenerator";
|
|
5
|
-
/**
|
|
6
|
-
* Texture sheet animation module.
|
|
7
|
-
*/
|
|
8
|
-
export declare class TextureSheetAnimationModule extends ParticleGeneratorModule {
|
|
9
|
-
private static readonly _frameCurveMacro;
|
|
10
|
-
private static readonly _frameRandomCurvesMacro;
|
|
11
|
-
private static readonly _frameMinCurveProperty;
|
|
12
|
-
private static readonly _frameMaxCurveProperty;
|
|
13
|
-
private static readonly _cycleCountProperty;
|
|
14
|
-
private static readonly _tillingParamsProperty;
|
|
15
|
-
/** Frame over time curve of the texture sheet. */
|
|
16
|
-
readonly frameOverTime: ParticleCompositeCurve;
|
|
17
|
-
/** Texture sheet animation type. */
|
|
18
|
-
type: TextureSheetAnimationType;
|
|
19
|
-
/** Cycle count. */
|
|
20
|
-
cycleCount: number;
|
|
21
|
-
private _tiling;
|
|
22
|
-
private _frameCurveMacro;
|
|
23
|
-
/**
|
|
24
|
-
* Tiling of the texture sheet.
|
|
25
|
-
* */
|
|
26
|
-
get tiling(): Vector2;
|
|
27
|
-
set tiling(value: Vector2);
|
|
28
|
-
constructor(generator: ParticleGenerator);
|
|
29
|
-
private _onTilingChanged;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Texture sheet animation type.
|
|
33
|
-
*/
|
|
34
|
-
export declare enum TextureSheetAnimationType {
|
|
35
|
-
/** Animate over the whole texture sheet from left to right, top to bottom. */
|
|
36
|
-
WholeSheet = 0,
|
|
37
|
-
/** Animate a single row in the sheet from left to right. */
|
|
38
|
-
SingleRow = 1
|
|
39
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ShaderMacro } from "../../shader";
|
|
2
|
-
import { ShaderProperty } from "../../shader/ShaderProperty";
|
|
3
|
-
import { ParticleSimulationSpace } from "../enums/ParticleSimulationSpace";
|
|
4
|
-
import { ParticleGenerator } from "../ParticleGenerator";
|
|
5
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
6
|
-
import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
7
|
-
/**
|
|
8
|
-
* Velocity over lifetime module.
|
|
9
|
-
*/
|
|
10
|
-
export declare class VelocityOverLifetimeModule extends ParticleGeneratorModule {
|
|
11
|
-
static readonly _constantModeMacro: ShaderMacro;
|
|
12
|
-
static readonly _curveModeMacro: ShaderMacro;
|
|
13
|
-
static readonly _isRandomMacro: ShaderMacro;
|
|
14
|
-
static readonly _minConstantProperty: ShaderProperty;
|
|
15
|
-
static readonly _maxConstantProperty: ShaderProperty;
|
|
16
|
-
static readonly _minGradientXProperty: ShaderProperty;
|
|
17
|
-
static readonly _minGradientYProperty: ShaderProperty;
|
|
18
|
-
static readonly _minGradientZProperty: ShaderProperty;
|
|
19
|
-
static readonly _maxGradientXProperty: ShaderProperty;
|
|
20
|
-
static readonly _maxGradientYProperty: ShaderProperty;
|
|
21
|
-
static readonly _maxGradientZProperty: ShaderProperty;
|
|
22
|
-
static readonly _spaceProperty: ShaderProperty;
|
|
23
|
-
private _velocityMinConstant;
|
|
24
|
-
private _velocityMaxConstant;
|
|
25
|
-
private _velocityMacro;
|
|
26
|
-
private _randomModeMacro;
|
|
27
|
-
private _velocityX;
|
|
28
|
-
private _velocityY;
|
|
29
|
-
private _velocityZ;
|
|
30
|
-
private _space;
|
|
31
|
-
/**
|
|
32
|
-
* Velocity over lifetime for x axis.
|
|
33
|
-
*/
|
|
34
|
-
get velocityX(): ParticleCompositeCurve;
|
|
35
|
-
set velocityX(value: ParticleCompositeCurve);
|
|
36
|
-
/**
|
|
37
|
-
* Velocity over lifetime for y axis.
|
|
38
|
-
*/
|
|
39
|
-
get velocityY(): ParticleCompositeCurve;
|
|
40
|
-
set velocityY(value: ParticleCompositeCurve);
|
|
41
|
-
/**
|
|
42
|
-
* Velocity over lifetime for z axis.
|
|
43
|
-
*/
|
|
44
|
-
get velocityZ(): ParticleCompositeCurve;
|
|
45
|
-
set velocityZ(value: ParticleCompositeCurve);
|
|
46
|
-
/**
|
|
47
|
-
* Velocity space.
|
|
48
|
-
*/
|
|
49
|
-
get space(): ParticleSimulationSpace;
|
|
50
|
-
set space(value: ParticleSimulationSpace);
|
|
51
|
-
get enabled(): boolean;
|
|
52
|
-
set enabled(value: boolean);
|
|
53
|
-
constructor(generator: ParticleGenerator);
|
|
54
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ParticleShapeType } from "./enums/ParticleShapeType";
|
|
2
|
-
import { UpdateFlagManager } from "../../../UpdateFlagManager";
|
|
3
|
-
/**
|
|
4
|
-
* Base class for all particle shapes.
|
|
5
|
-
*/
|
|
6
|
-
export declare abstract class BaseShape {
|
|
7
|
-
/** The type of shape to emit particles from. */
|
|
8
|
-
abstract readonly shapeType: ParticleShapeType;
|
|
9
|
-
protected _updateManager: UpdateFlagManager;
|
|
10
|
-
private _enabled;
|
|
11
|
-
private _randomDirectionAmount;
|
|
12
|
-
/**
|
|
13
|
-
* Specifies whether the ShapeModule is enabled or disabled.
|
|
14
|
-
*/
|
|
15
|
-
get enabled(): boolean;
|
|
16
|
-
set enabled(value: boolean);
|
|
17
|
-
/**
|
|
18
|
-
* Randomizes the starting direction of particles.
|
|
19
|
-
*/
|
|
20
|
-
get randomDirectionAmount(): number;
|
|
21
|
-
set randomDirectionAmount(value: number);
|
|
22
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
-
import { BaseShape } from "./BaseShape";
|
|
3
|
-
import { ParticleShapeType } from "./enums/ParticleShapeType";
|
|
4
|
-
/**
|
|
5
|
-
* Particle shape that emits particles from a box.
|
|
6
|
-
*/
|
|
7
|
-
export declare class BoxShape extends BaseShape {
|
|
8
|
-
private static _tempVector30;
|
|
9
|
-
readonly shapeType = ParticleShapeType.Box;
|
|
10
|
-
private _size;
|
|
11
|
-
/**
|
|
12
|
-
* The size of the box.
|
|
13
|
-
*/
|
|
14
|
-
get size(): Vector3;
|
|
15
|
-
set size(value: Vector3);
|
|
16
|
-
constructor();
|
|
17
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { BaseShape } from "./BaseShape";
|
|
2
|
-
import { ParticleShapeArcMode } from "./enums/ParticleShapeArcMode";
|
|
3
|
-
import { ParticleShapeType } from "./enums/ParticleShapeType";
|
|
4
|
-
/**
|
|
5
|
-
* Particle shape that emits particles from a circle.
|
|
6
|
-
*/
|
|
7
|
-
export declare class CircleShape extends BaseShape {
|
|
8
|
-
private static _tempPositionPoint;
|
|
9
|
-
readonly shapeType = ParticleShapeType.Circle;
|
|
10
|
-
private _radius;
|
|
11
|
-
private _arc;
|
|
12
|
-
private _arcMode;
|
|
13
|
-
private _arcSpeed;
|
|
14
|
-
/**
|
|
15
|
-
* Radius of the shape to emit particles from.
|
|
16
|
-
*/
|
|
17
|
-
get radius(): number;
|
|
18
|
-
set radius(value: number);
|
|
19
|
-
/**
|
|
20
|
-
* Angle of the circle arc to emit particles from.
|
|
21
|
-
*/
|
|
22
|
-
get arc(): number;
|
|
23
|
-
set arc(value: number);
|
|
24
|
-
/**
|
|
25
|
-
* The mode to generate particles around the arc.
|
|
26
|
-
*/
|
|
27
|
-
get arcMode(): ParticleShapeArcMode;
|
|
28
|
-
set arcMode(value: ParticleShapeArcMode);
|
|
29
|
-
/**
|
|
30
|
-
* The speed of complete 360 degree rotation.
|
|
31
|
-
*/
|
|
32
|
-
get arcSpeed(): number;
|
|
33
|
-
set arcSpeed(value: number);
|
|
34
|
-
private _getUnitArcRange;
|
|
35
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { BaseShape } from "./BaseShape";
|
|
2
|
-
import { ParticleShapeType } from "./enums/ParticleShapeType";
|
|
3
|
-
/**
|
|
4
|
-
* Cone shape.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ConeShape extends BaseShape {
|
|
7
|
-
private static _tempVector20;
|
|
8
|
-
private static _tempVector21;
|
|
9
|
-
private static _tempVector30;
|
|
10
|
-
private static _tempVector31;
|
|
11
|
-
readonly shapeType = ParticleShapeType.Cone;
|
|
12
|
-
private _angle;
|
|
13
|
-
private _radius;
|
|
14
|
-
private _length;
|
|
15
|
-
private _emitType;
|
|
16
|
-
/**
|
|
17
|
-
* Angle of the cone to emit particles from.
|
|
18
|
-
*/
|
|
19
|
-
get angle(): number;
|
|
20
|
-
set angle(value: number);
|
|
21
|
-
/**
|
|
22
|
-
* Radius of the shape to emit particles from.
|
|
23
|
-
*/
|
|
24
|
-
get radius(): number;
|
|
25
|
-
set radius(value: number);
|
|
26
|
-
/**
|
|
27
|
-
* Length of the cone to emit particles from.
|
|
28
|
-
*/
|
|
29
|
-
get length(): number;
|
|
30
|
-
set length(value: number);
|
|
31
|
-
/**
|
|
32
|
-
* Cone emitter type.
|
|
33
|
-
*/
|
|
34
|
-
get emitType(): ConeEmitType;
|
|
35
|
-
set emitType(value: ConeEmitType);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Cone emitter type.
|
|
39
|
-
*/
|
|
40
|
-
export declare enum ConeEmitType {
|
|
41
|
-
/** Emit particles from the base of the cone. */
|
|
42
|
-
Base = 0,
|
|
43
|
-
/** Emit particles from the volume of the cone. */
|
|
44
|
-
Volume = 1
|
|
45
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseShape } from "./BaseShape";
|
|
2
|
-
import { ParticleShapeType } from "./enums/ParticleShapeType";
|
|
3
|
-
/**
|
|
4
|
-
* Particle shape that emits particles from a hemisphere.
|
|
5
|
-
*/
|
|
6
|
-
export declare class HemisphereShape extends BaseShape {
|
|
7
|
-
readonly shapeType = ParticleShapeType.Hemisphere;
|
|
8
|
-
private _radius;
|
|
9
|
-
/**
|
|
10
|
-
* Radius of the shape to emit particles from.
|
|
11
|
-
*/
|
|
12
|
-
get radius(): number;
|
|
13
|
-
set radius(value: number);
|
|
14
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ModelMesh } from "../../../mesh";
|
|
2
|
-
import { BaseShape } from "./BaseShape";
|
|
3
|
-
import { ParticleShapeType } from "./enums/ParticleShapeType";
|
|
4
|
-
/**
|
|
5
|
-
* Particle shape that emits particles from a mesh.
|
|
6
|
-
*/
|
|
7
|
-
export declare class MeshShape extends BaseShape {
|
|
8
|
-
readonly shapeType = ParticleShapeType.Mesh;
|
|
9
|
-
private _mesh;
|
|
10
|
-
private _positionBuffer;
|
|
11
|
-
private _normalBuffer;
|
|
12
|
-
private _positionElementInfo;
|
|
13
|
-
private _normalElementInfo;
|
|
14
|
-
/**
|
|
15
|
-
* Mesh to emit particles from.
|
|
16
|
-
*/
|
|
17
|
-
get mesh(): ModelMesh;
|
|
18
|
-
set mesh(value: ModelMesh);
|
|
19
|
-
private _getAttributeBuffer;
|
|
20
|
-
private _onMeshChanged;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BaseShape } from "./BaseShape";
|
|
2
|
-
import { ParticleShapeType } from "./enums/ParticleShapeType";
|
|
3
|
-
/**
|
|
4
|
-
* Particle shape that emits particles from a sphere.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SphereShape extends BaseShape {
|
|
7
|
-
readonly shapeType = ParticleShapeType.Sphere;
|
|
8
|
-
private _radius;
|
|
9
|
-
/**
|
|
10
|
-
* Radius of the shape to emit particles from.
|
|
11
|
-
*/
|
|
12
|
-
get radius(): number;
|
|
13
|
-
set radius(value: number);
|
|
14
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The emission shape.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ParticleShapeType {
|
|
5
|
-
/** Emit from the volume of a box. */
|
|
6
|
-
Box = 0,
|
|
7
|
-
/** Emit from a circle. */
|
|
8
|
-
Circle = 1,
|
|
9
|
-
/** Emit from the base of a cone. */
|
|
10
|
-
Cone = 2,
|
|
11
|
-
/** Emit from a half-sphere. */
|
|
12
|
-
Hemisphere = 3,
|
|
13
|
-
/** Emit from a sphere. */
|
|
14
|
-
Sphere = 4,
|
|
15
|
-
/** Emit from a mesh. */
|
|
16
|
-
Mesh = 5
|
|
17
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { BoxShape } from "./BoxShape";
|
|
2
|
-
export { CircleShape } from "./CircleShape";
|
|
3
|
-
export { ConeEmitType, ConeShape } from "./ConeShape";
|
|
4
|
-
export { ParticleShapeArcMode } from "./enums/ParticleShapeArcMode";
|
|
5
|
-
export { ParticleShapeType } from "./enums/ParticleShapeType";
|
|
6
|
-
export { HemisphereShape } from "./HemisphereShape";
|
|
7
|
-
export { MeshShape } from "./MeshShape";
|
|
8
|
-
export { SphereShape } from "./SphereShape";
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
-
import { Collider } from "./Collider";
|
|
3
|
-
import { ControllerNonWalkableMode } from "./enums/ControllerNonWalkableMode";
|
|
4
|
-
import { ColliderShape } from "./shape";
|
|
5
|
-
/**
|
|
6
|
-
* The character controllers.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CharacterController extends Collider {
|
|
9
|
-
private _stepOffset;
|
|
10
|
-
private _nonWalkableMode;
|
|
11
|
-
private _upDirection;
|
|
12
|
-
private _slopeLimit;
|
|
13
|
-
/**
|
|
14
|
-
* The step offset for the controller, the value must be greater than or equal to 0.
|
|
15
|
-
* @remarks Character can overcome obstacle less than the height(stepOffset + contractOffset of the shape).
|
|
16
|
-
*/
|
|
17
|
-
get stepOffset(): number;
|
|
18
|
-
set stepOffset(value: number);
|
|
19
|
-
/**
|
|
20
|
-
* The value of the non-walkable mode.
|
|
21
|
-
*/
|
|
22
|
-
get nonWalkableMode(): ControllerNonWalkableMode;
|
|
23
|
-
set nonWalkableMode(value: ControllerNonWalkableMode);
|
|
24
|
-
/**
|
|
25
|
-
* The up direction for the controller.
|
|
26
|
-
*/
|
|
27
|
-
get upDirection(): Vector3;
|
|
28
|
-
set upDirection(value: Vector3);
|
|
29
|
-
/**
|
|
30
|
-
* The slope limit in degrees for the controller, the value is the cosine value of the maximum slope angle.
|
|
31
|
-
* @defaultValue 45 degrees
|
|
32
|
-
*/
|
|
33
|
-
get slopeLimit(): number;
|
|
34
|
-
set slopeLimit(value: number);
|
|
35
|
-
/**
|
|
36
|
-
* Moves the character using a "collide-and-slide" algorithm.
|
|
37
|
-
* @param disp - Displacement vector
|
|
38
|
-
* @param minDist - The minimum travelled distance to consider.
|
|
39
|
-
* @param elapsedTime - Time elapsed since last call
|
|
40
|
-
* @return flags - The ControllerCollisionFlag
|
|
41
|
-
*/
|
|
42
|
-
move(disp: Vector3, minDist: number, elapsedTime: number): number;
|
|
43
|
-
/**
|
|
44
|
-
* Add collider shape on this controller.
|
|
45
|
-
* @param shape - Collider shape
|
|
46
|
-
*/
|
|
47
|
-
addShape(shape: ColliderShape): void;
|
|
48
|
-
protected _syncNative(): void;
|
|
49
|
-
private _syncWorldPositionFromPhysicalSpace;
|
|
50
|
-
private _setUpDirection;
|
|
51
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { BoolUpdateFlag } from "../BoolUpdateFlag";
|
|
2
|
-
import { ICustomClone } from "../clone/ComponentCloner";
|
|
3
|
-
import { Component } from "../Component";
|
|
4
|
-
import { Layer } from "../Layer";
|
|
5
|
-
import { ColliderShape } from "./shape/ColliderShape";
|
|
6
|
-
/**
|
|
7
|
-
* Base class for all colliders.
|
|
8
|
-
* @decorator `@dependentComponents(Transform, DependentMode.CheckOnly)`
|
|
9
|
-
*/
|
|
10
|
-
export declare class Collider extends Component implements ICustomClone {
|
|
11
|
-
protected _updateFlag: BoolUpdateFlag;
|
|
12
|
-
protected _shapes: ColliderShape[];
|
|
13
|
-
protected _collisionLayerIndex: number;
|
|
14
|
-
/**
|
|
15
|
-
* The shapes of this collider.
|
|
16
|
-
*/
|
|
17
|
-
get shapes(): Readonly<ColliderShape[]>;
|
|
18
|
-
/**
|
|
19
|
-
* The collision layer of this collider, only support single layer.
|
|
20
|
-
*
|
|
21
|
-
* @defaultValue `Layer.Layer0`
|
|
22
|
-
*/
|
|
23
|
-
get collisionLayer(): Layer;
|
|
24
|
-
set collisionLayer(value: Layer);
|
|
25
|
-
/**
|
|
26
|
-
* Add collider shape on this collider.
|
|
27
|
-
* @param shape - Collider shape
|
|
28
|
-
*/
|
|
29
|
-
addShape(shape: ColliderShape): void;
|
|
30
|
-
/**
|
|
31
|
-
* Remove a collider shape.
|
|
32
|
-
* @param shape - The collider shape.
|
|
33
|
-
*/
|
|
34
|
-
removeShape(shape: ColliderShape): void;
|
|
35
|
-
/**
|
|
36
|
-
* Remove all shape attached.
|
|
37
|
-
*/
|
|
38
|
-
clearShapes(): void;
|
|
39
|
-
protected _syncNative(): void;
|
|
40
|
-
protected _addNativeShape(shape: ColliderShape): void;
|
|
41
|
-
protected _removeNativeShape(shape: ColliderShape): void;
|
|
42
|
-
private _setCollisionLayer;
|
|
43
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ContactPoint } from "./ContactPoint";
|
|
2
|
-
import { ColliderShape } from "./shape";
|
|
3
|
-
/**
|
|
4
|
-
* Collision information between two shapes when they collide.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Collision {
|
|
7
|
-
/** The target shape be collided. */
|
|
8
|
-
shape: ColliderShape;
|
|
9
|
-
/**
|
|
10
|
-
* Count of contact points.
|
|
11
|
-
*/
|
|
12
|
-
get contactCount(): number;
|
|
13
|
-
/**
|
|
14
|
-
* Get contact points.
|
|
15
|
-
* @param outContacts - The result of contact points
|
|
16
|
-
* @returns The actual count of contact points
|
|
17
|
-
*
|
|
18
|
-
* @remarks To optimize performance, the engine does not modify the length of the array you pass.
|
|
19
|
-
* You need to obtain the actual number of contact points from the function's return value.
|
|
20
|
-
*/
|
|
21
|
-
getContacts(outContacts: ContactPoint[]): number;
|
|
22
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Vector3 } from "@galacean/engine-math";
|
|
2
|
-
/**
|
|
3
|
-
* Describes a contact point where the collision occurs.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ContactPoint {
|
|
6
|
-
/** The position of the contact point between the shapes, in world space. */
|
|
7
|
-
readonly position: Vector3;
|
|
8
|
-
/** The normal of the contacting surfaces at the contact point. The normal direction points from the other shape to the self shape. */
|
|
9
|
-
readonly normal: Vector3;
|
|
10
|
-
/** The impulse applied at the contact point, in world space. Divide by the simulation time step to get a force value. */
|
|
11
|
-
readonly impulse: Vector3;
|
|
12
|
-
/** The separation of the shapes at the contact point. A negative separation denotes a penetration. */
|
|
13
|
-
separation: number;
|
|
14
|
-
}
|