@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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The rendering mode for particle renderer.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ParticleRenderMode {
|
|
5
|
-
/** Render particles as billboards facing the active camera. */
|
|
6
|
-
Billboard = 0,
|
|
7
|
-
/** Stretch particles in the direction of motion. */
|
|
8
|
-
StretchBillboard = 1,
|
|
9
|
-
/** Render particles as billboards always facing up along the y-Axis. */
|
|
10
|
-
HorizontalBillboard = 2,
|
|
11
|
-
/** Render particles as billboards always facing the player, but not pitching along the x-Axis. */
|
|
12
|
-
VerticalBillboard = 3,
|
|
13
|
-
/** Render particles as meshes. */
|
|
14
|
-
Mesh = 4,
|
|
15
|
-
/** Do not render particles. */
|
|
16
|
-
None = 5
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Control how Particle Generator apply transform scale.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ParticleScaleMode {
|
|
5
|
-
/** Scale the Particle Generator using the entire transform hierarchy. */
|
|
6
|
-
Hierarchy = 0,
|
|
7
|
-
/** Scale the Particle Generator using only its own transform scale. (Ignores parent scale). */
|
|
8
|
-
Local = 1,
|
|
9
|
-
/** Only apply transform scale to the shape component, which controls where particles are spawned, but does not affect their size or movement. */
|
|
10
|
-
World = 2
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export { ParticleGenerator } from "./ParticleGenerator";
|
|
2
|
-
export { ParticleMaterial } from "./ParticleMaterial";
|
|
3
|
-
export { ParticleRenderer } from "./ParticleRenderer";
|
|
4
|
-
export { ParticleCurveMode } from "./enums/ParticleCurveMode";
|
|
5
|
-
export { ParticleGradientMode } from "./enums/ParticleGradientMode";
|
|
6
|
-
export { ParticleRenderMode } from "./enums/ParticleRenderMode";
|
|
7
|
-
export { ParticleScaleMode } from "./enums/ParticleScaleMode";
|
|
8
|
-
export { ParticleSimulationSpace } from "./enums/ParticleSimulationSpace";
|
|
9
|
-
export { ParticleStopMode } from "./enums/ParticleStopMode";
|
|
10
|
-
export { Burst } from "./modules/Burst";
|
|
11
|
-
export { ColorOverLifetimeModule } from "./modules/ColorOverLifetimeModule";
|
|
12
|
-
export { EmissionModule } from "./modules/EmissionModule";
|
|
13
|
-
export { MainModule } from "./modules/MainModule";
|
|
14
|
-
export { ParticleCompositeCurve } from "./modules/ParticleCompositeCurve";
|
|
15
|
-
export { ParticleCompositeGradient } from "./modules/ParticleCompositeGradient";
|
|
16
|
-
export { CurveKey, ParticleCurve } from "./modules/ParticleCurve";
|
|
17
|
-
export { GradientAlphaKey, GradientColorKey, ParticleGradient } from "./modules/ParticleGradient";
|
|
18
|
-
export { RotationOverLifetimeModule } from "./modules/RotationOverLifetimeModule";
|
|
19
|
-
export { SizeOverLifetimeModule } from "./modules/SizeOverLifetimeModule";
|
|
20
|
-
export { TextureSheetAnimationModule } from "./modules/TextureSheetAnimationModule";
|
|
21
|
-
export { VelocityOverLifetimeModule } from "./modules/VelocityOverLifetimeModule";
|
|
22
|
-
export * from "./modules/shape/index";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
2
|
-
/**
|
|
3
|
-
* A burst is a particle emission event, where a number of particles are all emitted at the same time
|
|
4
|
-
*/
|
|
5
|
-
export declare class Burst {
|
|
6
|
-
time: number;
|
|
7
|
-
count: ParticleCompositeCurve;
|
|
8
|
-
/**
|
|
9
|
-
* Create burst object.
|
|
10
|
-
* @param time - Time to emit the burst
|
|
11
|
-
* @param count - Count of particles to emit
|
|
12
|
-
*/
|
|
13
|
-
constructor(time: number, count: ParticleCompositeCurve);
|
|
14
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ShaderMacro } from "../../shader/ShaderMacro";
|
|
2
|
-
import { ShaderProperty } from "../../shader/ShaderProperty";
|
|
3
|
-
import { ParticleCompositeGradient } from "./ParticleCompositeGradient";
|
|
4
|
-
import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
5
|
-
/**
|
|
6
|
-
* Color over lifetime module.
|
|
7
|
-
*/
|
|
8
|
-
export declare class ColorOverLifetimeModule extends ParticleGeneratorModule {
|
|
9
|
-
static readonly _gradientMacro: ShaderMacro;
|
|
10
|
-
static readonly _randomGradientsMacro: ShaderMacro;
|
|
11
|
-
static readonly _minGradientColor: ShaderProperty;
|
|
12
|
-
static readonly _minGradientAlpha: ShaderProperty;
|
|
13
|
-
static readonly _maxGradientColor: ShaderProperty;
|
|
14
|
-
static readonly _maxGradientAlpha: ShaderProperty;
|
|
15
|
-
static readonly _gradientKeysCount: ShaderProperty;
|
|
16
|
-
/** Color gradient over lifetime. */
|
|
17
|
-
color: ParticleCompositeGradient;
|
|
18
|
-
private _gradientKeysCount;
|
|
19
|
-
private _colorMacro;
|
|
20
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Burst } from "./Burst";
|
|
2
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
3
|
-
import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
4
|
-
import { BaseShape } from "./shape/BaseShape";
|
|
5
|
-
/**
|
|
6
|
-
* The EmissionModule of a Particle Generator.
|
|
7
|
-
*/
|
|
8
|
-
export declare class EmissionModule extends ParticleGeneratorModule {
|
|
9
|
-
/** The rate of particle emission. */
|
|
10
|
-
rateOverTime: ParticleCompositeCurve;
|
|
11
|
-
/** The rate at which the emitter spawns new particles over distance. */
|
|
12
|
-
rateOverDistance: ParticleCompositeCurve;
|
|
13
|
-
_shape: BaseShape;
|
|
14
|
-
private _bursts;
|
|
15
|
-
private _currentBurstIndex;
|
|
16
|
-
private _burstRand;
|
|
17
|
-
/**
|
|
18
|
-
* The shape of the emitter.
|
|
19
|
-
*/
|
|
20
|
-
get shape(): BaseShape;
|
|
21
|
-
set shape(value: BaseShape);
|
|
22
|
-
/**
|
|
23
|
-
* Gets the burst array.
|
|
24
|
-
*/
|
|
25
|
-
get bursts(): ReadonlyArray<Burst>;
|
|
26
|
-
/**
|
|
27
|
-
* Add a single burst.
|
|
28
|
-
* @param burst - The burst
|
|
29
|
-
*/
|
|
30
|
-
addBurst(burst: Burst): void;
|
|
31
|
-
/**
|
|
32
|
-
* Remove a single burst from the array of bursts.
|
|
33
|
-
* @param burst - The burst data
|
|
34
|
-
*/
|
|
35
|
-
removeBurst(burst: Burst): void;
|
|
36
|
-
/**
|
|
37
|
-
* Remove a single burst from the array of bursts.
|
|
38
|
-
* @param index - The burst data index
|
|
39
|
-
*/
|
|
40
|
-
removeBurstByIndex(index: number): void;
|
|
41
|
-
/**
|
|
42
|
-
* Clear burst data.
|
|
43
|
-
*/
|
|
44
|
-
clearBurst(): void;
|
|
45
|
-
private _emitByRateOverTime;
|
|
46
|
-
private _emitByBurst;
|
|
47
|
-
private _emitBySubBurst;
|
|
48
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ShaderMacro, ShaderProperty } from "../../shader";
|
|
2
|
-
import { ParticleSimulationSpace } from "../enums/ParticleSimulationSpace";
|
|
3
|
-
import { ParticleGenerator } from "../ParticleGenerator";
|
|
4
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
5
|
-
import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
6
|
-
/**
|
|
7
|
-
* Force over lifetime module.
|
|
8
|
-
*/
|
|
9
|
-
export declare class ForceOverLifetimeModule extends ParticleGeneratorModule {
|
|
10
|
-
static readonly _constantModeMacro: ShaderMacro;
|
|
11
|
-
static readonly _curveModeMacro: ShaderMacro;
|
|
12
|
-
static readonly _isRandomMacro: ShaderMacro;
|
|
13
|
-
static readonly _minConstantProperty: ShaderProperty;
|
|
14
|
-
static readonly _maxConstantProperty: ShaderProperty;
|
|
15
|
-
static readonly _minGradientXProperty: ShaderProperty;
|
|
16
|
-
static readonly _minGradientYProperty: ShaderProperty;
|
|
17
|
-
static readonly _minGradientZProperty: ShaderProperty;
|
|
18
|
-
static readonly _maxGradientXProperty: ShaderProperty;
|
|
19
|
-
static readonly _maxGradientYProperty: ShaderProperty;
|
|
20
|
-
static readonly _maxGradientZProperty: ShaderProperty;
|
|
21
|
-
static readonly _spaceProperty: ShaderProperty;
|
|
22
|
-
private _forceMinConstant;
|
|
23
|
-
private _forceMaxConstant;
|
|
24
|
-
private _forceMacro;
|
|
25
|
-
private _randomModeMacro;
|
|
26
|
-
private _forceX;
|
|
27
|
-
private _forceY;
|
|
28
|
-
private _forceZ;
|
|
29
|
-
private _space;
|
|
30
|
-
/**
|
|
31
|
-
* Force over lifetime for x axis.
|
|
32
|
-
*/
|
|
33
|
-
get forceX(): ParticleCompositeCurve;
|
|
34
|
-
set forceX(value: ParticleCompositeCurve);
|
|
35
|
-
/**
|
|
36
|
-
* Force over lifetime for y axis.
|
|
37
|
-
*/
|
|
38
|
-
get forceY(): ParticleCompositeCurve;
|
|
39
|
-
set forceY(value: ParticleCompositeCurve);
|
|
40
|
-
/**
|
|
41
|
-
* Force over lifetime for z axis.
|
|
42
|
-
*/
|
|
43
|
-
get forceZ(): ParticleCompositeCurve;
|
|
44
|
-
set forceZ(value: ParticleCompositeCurve);
|
|
45
|
-
/**
|
|
46
|
-
* Force space.
|
|
47
|
-
*/
|
|
48
|
-
get space(): ParticleSimulationSpace;
|
|
49
|
-
set space(value: ParticleSimulationSpace);
|
|
50
|
-
constructor(generator: ParticleGenerator);
|
|
51
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { Rand } from "@galacean/engine-math";
|
|
2
|
-
import { ICustomClone } from "../../clone/ComponentCloner";
|
|
3
|
-
import { ParticleScaleMode } from "../enums/ParticleScaleMode";
|
|
4
|
-
import { ParticleSimulationSpace } from "../enums/ParticleSimulationSpace";
|
|
5
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
6
|
-
import { ParticleCompositeGradient } from "./ParticleCompositeGradient";
|
|
7
|
-
export declare class MainModule implements ICustomClone {
|
|
8
|
-
private _tempVector40;
|
|
9
|
-
private static _vector3One;
|
|
10
|
-
private static readonly _positionScale;
|
|
11
|
-
private static readonly _sizeScale;
|
|
12
|
-
private static readonly _worldPosition;
|
|
13
|
-
private static readonly _worldRotation;
|
|
14
|
-
private static readonly _gravity;
|
|
15
|
-
private static readonly _simulationSpace;
|
|
16
|
-
private static readonly _startRotation3D;
|
|
17
|
-
private static readonly _scaleMode;
|
|
18
|
-
/** The duration of the Particle Generator in seconds. */
|
|
19
|
-
duration: number;
|
|
20
|
-
/** Specifies whether the Particle Generator loops. */
|
|
21
|
-
isLoop: boolean;
|
|
22
|
-
/** Start delay in seconds. */
|
|
23
|
-
startDelay: ParticleCompositeCurve;
|
|
24
|
-
/** A flag to enable 3D particle rotation, when disabled, only `startRotationZ` is used. */
|
|
25
|
-
startRotation3D: boolean;
|
|
26
|
-
/** The initial rotation of particles around the x-axis when emitted.*/
|
|
27
|
-
startRotationX: ParticleCompositeCurve;
|
|
28
|
-
/** The initial rotation of particles around the y-axis when emitted. */
|
|
29
|
-
startRotationY: ParticleCompositeCurve;
|
|
30
|
-
/** The initial rotation of particles around the z-axis when emitted. */
|
|
31
|
-
startRotationZ: ParticleCompositeCurve;
|
|
32
|
-
/** Makes some particles spin in the opposite direction. */
|
|
33
|
-
flipRotation: number;
|
|
34
|
-
/** The mode of start color */
|
|
35
|
-
startColor: ParticleCompositeGradient;
|
|
36
|
-
/** A scale that this Particle Generator applies to gravity, defined by Physics.gravity. */
|
|
37
|
-
/** Override the default playback speed of the Particle Generator. */
|
|
38
|
-
simulationSpeed: number;
|
|
39
|
-
/** Control how the Particle Generator applies its Transform component to the particles it emits. */
|
|
40
|
-
scalingMode: ParticleScaleMode;
|
|
41
|
-
/** If set to true, the Particle Generator automatically begins to play on startup. */
|
|
42
|
-
playOnEnabled: boolean;
|
|
43
|
-
readonly _gravityModifierRand: Rand;
|
|
44
|
-
private _startLifetime;
|
|
45
|
-
private _startSpeed;
|
|
46
|
-
private _startSize3D;
|
|
47
|
-
private _startSizeX;
|
|
48
|
-
private _startSizeY;
|
|
49
|
-
private _startSizeZ;
|
|
50
|
-
private _gravityModifier;
|
|
51
|
-
private _simulationSpace;
|
|
52
|
-
private _generator;
|
|
53
|
-
/**
|
|
54
|
-
* The initial lifetime of particles when emitted.
|
|
55
|
-
*/
|
|
56
|
-
get startLifetime(): ParticleCompositeCurve;
|
|
57
|
-
set startLifetime(value: ParticleCompositeCurve);
|
|
58
|
-
/**
|
|
59
|
-
* The initial speed of particles when the Particle Generator first spawns them.
|
|
60
|
-
*/
|
|
61
|
-
get startSpeed(): ParticleCompositeCurve;
|
|
62
|
-
set startSpeed(value: ParticleCompositeCurve);
|
|
63
|
-
/**
|
|
64
|
-
* A flag to enable specifying particle size individually for each axis.
|
|
65
|
-
*/
|
|
66
|
-
get startSize3D(): boolean;
|
|
67
|
-
set startSize3D(value: boolean);
|
|
68
|
-
/**
|
|
69
|
-
* The initial size of particles along the x-axis when the Particle Generator first spawns them.
|
|
70
|
-
*/
|
|
71
|
-
get startSizeX(): ParticleCompositeCurve;
|
|
72
|
-
set startSizeX(value: ParticleCompositeCurve);
|
|
73
|
-
/**
|
|
74
|
-
* The initial size of particles along the y-axis when the Particle Generator first spawns them.
|
|
75
|
-
*/
|
|
76
|
-
get startSizeY(): ParticleCompositeCurve;
|
|
77
|
-
set startSizeY(value: ParticleCompositeCurve);
|
|
78
|
-
/**
|
|
79
|
-
* The initial size of particles along the z-axis when the Particle Generator first spawns them.
|
|
80
|
-
*/
|
|
81
|
-
get startSizeZ(): ParticleCompositeCurve;
|
|
82
|
-
set startSizeZ(value: ParticleCompositeCurve);
|
|
83
|
-
/**
|
|
84
|
-
* A scale that this Particle Generator applies to gravity, defined by Physics.gravity.
|
|
85
|
-
*/
|
|
86
|
-
get gravityModifier(): ParticleCompositeCurve;
|
|
87
|
-
set gravityModifier(value: ParticleCompositeCurve);
|
|
88
|
-
/**
|
|
89
|
-
* This selects the space in which to simulate particles. It can be either world or local space.
|
|
90
|
-
*/
|
|
91
|
-
get simulationSpace(): ParticleSimulationSpace;
|
|
92
|
-
set simulationSpace(value: ParticleSimulationSpace);
|
|
93
|
-
/**
|
|
94
|
-
* Max particles count.
|
|
95
|
-
*/
|
|
96
|
-
get maxParticles(): number;
|
|
97
|
-
set maxParticles(value: number);
|
|
98
|
-
/**
|
|
99
|
-
* The initial size of particles when the Particle Generator first spawns them.
|
|
100
|
-
*/
|
|
101
|
-
get startSize(): ParticleCompositeCurve;
|
|
102
|
-
set startSize(value: ParticleCompositeCurve);
|
|
103
|
-
private _onCompositeCurveChange;
|
|
104
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { ParticleCurveMode } from "../enums/ParticleCurveMode";
|
|
2
|
-
import { ParticleCurve } from "./ParticleCurve";
|
|
3
|
-
/**
|
|
4
|
-
* Particle composite curve.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ParticleCompositeCurve {
|
|
7
|
-
private _updateManager;
|
|
8
|
-
private _mode;
|
|
9
|
-
private _constantMin;
|
|
10
|
-
private _constantMax;
|
|
11
|
-
private _curveMin;
|
|
12
|
-
private _curveMax;
|
|
13
|
-
private _updateDispatch;
|
|
14
|
-
/**
|
|
15
|
-
* The curve mode.
|
|
16
|
-
*/
|
|
17
|
-
get mode(): ParticleCurveMode;
|
|
18
|
-
set mode(value: ParticleCurveMode);
|
|
19
|
-
/**
|
|
20
|
-
* The min constant value used by the curve if mode is set to `TwoConstants`.
|
|
21
|
-
*/
|
|
22
|
-
get constantMin(): number;
|
|
23
|
-
set constantMin(value: number);
|
|
24
|
-
/**
|
|
25
|
-
* The max constant value used by the curve if mode is set to `TwoConstants`.
|
|
26
|
-
*/
|
|
27
|
-
get constantMax(): number;
|
|
28
|
-
set constantMax(value: number);
|
|
29
|
-
/**
|
|
30
|
-
* The min curve used by the curve if mode is set to `TwoCurves`.
|
|
31
|
-
*/
|
|
32
|
-
get curveMin(): ParticleCurve;
|
|
33
|
-
set curveMin(value: ParticleCurve);
|
|
34
|
-
/**
|
|
35
|
-
* The max curve used by the curve if mode is set to `TwoCurves`.
|
|
36
|
-
*/
|
|
37
|
-
get curveMax(): ParticleCurve;
|
|
38
|
-
set curveMax(value: ParticleCurve);
|
|
39
|
-
/**
|
|
40
|
-
* The constant value used by the curve if mode is set to `Constant`.
|
|
41
|
-
*/
|
|
42
|
-
get constant(): number;
|
|
43
|
-
set constant(value: number);
|
|
44
|
-
/**
|
|
45
|
-
* The curve used by the curve if mode is set to `Curve`.
|
|
46
|
-
*/
|
|
47
|
-
get curve(): ParticleCurve;
|
|
48
|
-
set curve(value: ParticleCurve);
|
|
49
|
-
/**
|
|
50
|
-
* Create a particle curve that generates a constant value.
|
|
51
|
-
* @param constant - The constant value
|
|
52
|
-
*/
|
|
53
|
-
constructor(constant: number);
|
|
54
|
-
/**
|
|
55
|
-
* Create a particle curve that can generate values between a minimum constant and a maximum constant.
|
|
56
|
-
* @param constantMin - The min constant value
|
|
57
|
-
* @param constantMax - The max constant value
|
|
58
|
-
*/
|
|
59
|
-
constructor(constantMin: number, constantMax: number);
|
|
60
|
-
/**
|
|
61
|
-
* Create a particle composite curve by a curve.
|
|
62
|
-
* @param curve - The curve
|
|
63
|
-
*/
|
|
64
|
-
constructor(curve: ParticleCurve);
|
|
65
|
-
/**
|
|
66
|
-
* Create a particle composite curve by min and max curves.
|
|
67
|
-
* @param curveMin - The min curve
|
|
68
|
-
* @param curveMax - The max curve
|
|
69
|
-
*/
|
|
70
|
-
constructor(curveMin: ParticleCurve, curveMax: ParticleCurve);
|
|
71
|
-
/**
|
|
72
|
-
* Query the value at the specified time.
|
|
73
|
-
* @param time - Normalized time at which to evaluate the curve, Valid when `mode` is set to `Curve` or `TwoCurves`
|
|
74
|
-
* @param lerpFactor - Lerp factor between two constants or curves, Valid when `mode` is set to `TwoConstants` or `TwoCurves`
|
|
75
|
-
* @returns - The result curve value
|
|
76
|
-
*/
|
|
77
|
-
evaluate(time: number, lerpFactor: number): number;
|
|
78
|
-
private _getMaxKeyValue;
|
|
79
|
-
private _getMinKeyValue;
|
|
80
|
-
private _onCurveChange;
|
|
81
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Color } from "@galacean/engine-math";
|
|
2
|
-
import { ParticleGradientMode } from "../enums/ParticleGradientMode";
|
|
3
|
-
import { ParticleGradient } from "./ParticleGradient";
|
|
4
|
-
/**
|
|
5
|
-
* Particle composite gradient.
|
|
6
|
-
*/
|
|
7
|
-
export declare class ParticleCompositeGradient {
|
|
8
|
-
/** The gradient mode. */
|
|
9
|
-
mode: ParticleGradientMode;
|
|
10
|
-
constantMin: Color;
|
|
11
|
-
constantMax: Color;
|
|
12
|
-
/** The min gradient used by the gradient if mode is set to `Gradient`. */
|
|
13
|
-
gradientMin: ParticleGradient;
|
|
14
|
-
/** The max gradient used by the gradient if mode is set to `Gradient`. */
|
|
15
|
-
gradientMax: ParticleGradient;
|
|
16
|
-
/**
|
|
17
|
-
* The constant color used by the gradient if mode is set to `Constant`.
|
|
18
|
-
*/
|
|
19
|
-
get constant(): Color;
|
|
20
|
-
set constant(value: Color);
|
|
21
|
-
/**
|
|
22
|
-
* The gradient used by the gradient if mode is set to `Gradient`.
|
|
23
|
-
*/
|
|
24
|
-
get gradient(): ParticleGradient;
|
|
25
|
-
set gradient(value: ParticleGradient);
|
|
26
|
-
/**
|
|
27
|
-
* Create a particle gradient that generates a constant color.
|
|
28
|
-
* @param constant - The constant color
|
|
29
|
-
*/
|
|
30
|
-
constructor(constant: Color);
|
|
31
|
-
/**
|
|
32
|
-
* Create a particle gradient that can generate color between a minimum constant and a maximum constant.
|
|
33
|
-
* @param constantMin - The min constant color
|
|
34
|
-
* @param constantMax - The max constant color
|
|
35
|
-
*/
|
|
36
|
-
constructor(constantMin: Color, constantMax: Color);
|
|
37
|
-
/**
|
|
38
|
-
* Create a particle gradient that generates a color from a gradient.
|
|
39
|
-
* @param gradient - The gradient
|
|
40
|
-
*/
|
|
41
|
-
constructor(gradient: ParticleGradient);
|
|
42
|
-
/**
|
|
43
|
-
* Create a particle gradient that can generate color from a minimum gradient and a maximum gradient.
|
|
44
|
-
* @param gradientMin - The min gradient
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
constructor(gradientMin: ParticleGradient, gradientMax: ParticleGradient);
|
|
48
|
-
/**
|
|
49
|
-
* Query the color at the specified time.
|
|
50
|
-
* @param time - Normalized time at which to evaluate the gradient, Valid when `mode` is set to `Gradient` or `TwoGradients`
|
|
51
|
-
* @param lerpFactor - Lerp factor between two constants or gradients, Valid when `mode` is set to `TwoConstants` or `TwoGradients`
|
|
52
|
-
* @param out - The result color
|
|
53
|
-
*/
|
|
54
|
-
evaluate(time: number, lerpFactor: number, out: Color): void;
|
|
55
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Particle curve.
|
|
3
|
-
*/
|
|
4
|
-
export declare class ParticleCurve {
|
|
5
|
-
private _updateManager;
|
|
6
|
-
private _keys;
|
|
7
|
-
private _typeArray;
|
|
8
|
-
private _typeArrayDirty;
|
|
9
|
-
private _updateDispatch;
|
|
10
|
-
/**
|
|
11
|
-
* The keys of the curve.
|
|
12
|
-
*/
|
|
13
|
-
get keys(): ReadonlyArray<CurveKey>;
|
|
14
|
-
/**
|
|
15
|
-
* Create a new particle curve.
|
|
16
|
-
* @param keys - The keys of the curve
|
|
17
|
-
*/
|
|
18
|
-
constructor(...keys: CurveKey[]);
|
|
19
|
-
/**
|
|
20
|
-
* Add an key to the curve.
|
|
21
|
-
* @param key - The key
|
|
22
|
-
*/
|
|
23
|
-
addKey(key: CurveKey): void;
|
|
24
|
-
/**
|
|
25
|
-
* Add an key to the curve.
|
|
26
|
-
* @param time - The key time
|
|
27
|
-
* @param value - The key value
|
|
28
|
-
*/
|
|
29
|
-
addKey(time: number, value: number): void;
|
|
30
|
-
/**
|
|
31
|
-
* Remove a key from the curve.
|
|
32
|
-
* @param index - The remove key index
|
|
33
|
-
*/
|
|
34
|
-
removeKey(index: number): void;
|
|
35
|
-
/**
|
|
36
|
-
* Set the keys of the curve.
|
|
37
|
-
* @param keys - The keys
|
|
38
|
-
*/
|
|
39
|
-
setKeys(keys: CurveKey[]): void;
|
|
40
|
-
private _addKey;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* The key of the curve.
|
|
44
|
-
*/
|
|
45
|
-
export declare class CurveKey {
|
|
46
|
-
private _updateManager;
|
|
47
|
-
private _time;
|
|
48
|
-
private _value;
|
|
49
|
-
/**
|
|
50
|
-
* The key time.
|
|
51
|
-
*/
|
|
52
|
-
get time(): number;
|
|
53
|
-
set time(value: number);
|
|
54
|
-
/**
|
|
55
|
-
* The key value.
|
|
56
|
-
*/
|
|
57
|
-
get value(): number;
|
|
58
|
-
set value(value: number);
|
|
59
|
-
/**
|
|
60
|
-
* Create a new key.
|
|
61
|
-
*/
|
|
62
|
-
constructor(time: number, value: number);
|
|
63
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ShaderData, ShaderMacro } from "../../shader";
|
|
2
|
-
import { ParticleGenerator } from "../ParticleGenerator";
|
|
3
|
-
import { ParticleCompositeCurve } from "./ParticleCompositeCurve";
|
|
4
|
-
/**
|
|
5
|
-
* Particle generator module.
|
|
6
|
-
*/
|
|
7
|
-
export declare abstract class ParticleGeneratorModule {
|
|
8
|
-
protected _generator: ParticleGenerator;
|
|
9
|
-
protected _enabled: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Specifies whether the module is enabled or not.
|
|
12
|
-
*/
|
|
13
|
-
get enabled(): boolean;
|
|
14
|
-
set enabled(value: boolean);
|
|
15
|
-
protected _enableMacro(shaderData: ShaderData, lastEnableMacro: ShaderMacro, enableMacro: ShaderMacro): ShaderMacro;
|
|
16
|
-
protected _onCompositeCurveChange(lastValue: ParticleCompositeCurve, value: ParticleCompositeCurve): void;
|
|
17
|
-
}
|