@galacean/engine-core 1.1.0-beta.5 → 1.1.0-beta.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +8329 -7307
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +8329 -7307
- package/dist/module.js +8318 -7309
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/2d/atlas/types.d.ts +5 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +2 -1
- package/types/2d/text/TextRenderer.d.ts +1 -0
- package/types/Background.d.ts +6 -0
- package/types/Camera.d.ts +1 -1
- package/types/Canvas.d.ts +15 -5
- package/types/Deprecated.d.ts +101 -0
- package/types/DisorderedArray.d.ts +1 -1
- package/types/animation/AnimatorLayerMask.d.ts +45 -0
- package/types/animation/LayerPathMask.d.ts +16 -0
- package/types/animation/animationCurve/AnimationStringCurve.d.ts +7 -0
- package/types/asset/AssetPromise.d.ts +1 -0
- package/types/asset/ResourceManager.d.ts +0 -1
- package/types/enums/Downsampling.d.ts +11 -0
- package/types/enums/MSAASamples.d.ts +13 -0
- package/types/index.d.ts +1 -1
- package/types/mesh/PrimitiveMesh.d.ts +22 -0
- package/types/mesh/SkinnedMeshRenderer.d.ts +1 -1
- package/types/particle/ParticleGenerator.d.ts +0 -2
- package/types/particle/index.d.ts +10 -0
- package/types/particle/modules/EmissionModule.d.ts +0 -1
- package/types/particle/modules/MainModule.d.ts +0 -1
- package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -1
- package/types/particle/modules/ParticleGradient.d.ts +38 -18
- package/types/physics/Collider.d.ts +3 -1
- package/types/physics/HitResult.d.ts +3 -0
- package/types/physics/PhysicsMaterial.d.ts +1 -0
- package/types/physics/joint/HingeJoint.d.ts +1 -1
- package/types/physics/joint/Joint.d.ts +4 -3
- package/types/physics/shape/ColliderShape.d.ts +2 -1
- package/types/physics/shape/SphereColliderShape.d.ts +1 -0
- package/types/shader/Shader.d.ts +1 -1
- package/types/texture/enums/PixelFormat.d.ts +73 -0
- package/types/xr/XRManager.d.ts +3 -29
- package/types/RenderPipeline/MeshRenderData.d.ts +0 -17
- package/types/RenderPipeline/MeshRenderElement.d.ts +0 -19
- package/types/RenderPipeline/RenderElementX.d.ts +0 -12
- package/types/RenderPipeline/SpriteElement.d.ts +0 -15
- package/types/RenderPipeline/SpriteMaskElement.d.ts +0 -12
- package/types/RenderPipeline/TextRenderElement.d.ts +0 -8
- package/types/SafeLoopArray.d.ts +0 -37
- package/types/Ticker.d.ts +0 -30
- package/types/asset/IRefObject.d.ts +0 -2
- package/types/asset/RefObject.d.ts +0 -27
- package/types/base/Event.d.ts +0 -24
- package/types/base/Util.d.ts +0 -14
- package/types/particle/ParticleData.d.ts +0 -1
- package/types/particle/ParticleMesh.d.ts +0 -289
- package/types/particle/ParticleShaderDeclaration.d.ts +0 -1
- package/types/particle/ParticleShaderMacro.d.ts +0 -1
- package/types/particle/ParticleShaderProperty.d.ts +0 -1
- package/types/particle/ParticleSystem.d.ts +0 -41
- package/types/particle/ParticleVertexElements.d.ts +0 -1
- package/types/particle/ParticleVertexUtils.d.ts +0 -1
- package/types/particle/enum/ParticleAnimationRowMode.d.ts +0 -9
- package/types/particle/enum/ParticleAnimationType.d.ts +0 -9
- package/types/particle/enum/ParticleCurveMode.d.ts +0 -13
- package/types/particle/enum/ParticleGradientMode.d.ts +0 -13
- package/types/particle/enum/ParticleRenderMode.d.ts +0 -17
- package/types/particle/enum/ParticleScaleMode.d.ts +0 -11
- package/types/particle/enum/ParticleShapeMultiModeValue.d.ts +0 -9
- package/types/particle/enum/ParticleShapeType.d.ts +0 -15
- package/types/particle/enum/ParticleSimulationSpace.d.ts +0 -9
- package/types/particle/enum/index.d.ts +0 -9
- package/types/particle/module/Burst.d.ts +0 -38
- package/types/particle/module/ColorGradient.d.ts +0 -75
- package/types/particle/module/ColorOverLifetimeModule.d.ts +0 -20
- package/types/particle/module/EmissionModule.d.ts +0 -63
- package/types/particle/module/FrameOverTime.d.ts +0 -73
- package/types/particle/module/ParticleCurve.d.ts +0 -37
- package/types/particle/module/RotationOverLifetimeModule.d.ts +0 -21
- package/types/particle/module/RotationVelocityGradient.d.ts +0 -184
- package/types/particle/module/SizeGradient.d.ts +0 -151
- package/types/particle/module/SizeOverLifetimeModule.d.ts +0 -21
- package/types/particle/module/StartFrame.d.ts +0 -46
- package/types/particle/module/TextureSheetAnimationModule.d.ts +0 -37
- package/types/particle/module/VelocityGradient.d.ts +0 -110
- package/types/particle/module/VelocityOverLifetimeModule.d.ts +0 -22
- package/types/particle/module/index.d.ts +0 -15
- package/types/particle/module/shape/BaseShape.d.ts +0 -26
- package/types/particle/module/shape/BoxShape.d.ts +0 -20
- package/types/particle/module/shape/CircleShape.d.ts +0 -27
- package/types/particle/module/shape/ConeShape.d.ts +0 -35
- package/types/particle/module/shape/HemisphereShape.d.ts +0 -23
- package/types/particle/module/shape/ShapeUtils.d.ts +0 -1
- package/types/particle/module/shape/SphereShape.d.ts +0 -23
- package/types/particle/module/shape/index.d.ts +0 -5
- package/types/particle/modules/ShapeModule.d.ts +0 -9
- package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
- package/types/particle/moudules/Burst.d.ts +0 -25
- package/types/particle/moudules/Emission.d.ts +0 -47
- package/types/particle/moudules/EmissionModule.d.ts +0 -49
- package/types/particle/moudules/MainModule.d.ts +0 -59
- package/types/particle/moudules/ParticleCurve.d.ts +0 -27
- package/types/particle/moudules/ParticleGradient.d.ts +0 -28
- package/types/particle/moudules/ShapeModule.d.ts +0 -7
- package/types/particle/moudules/shape/BaseShape.d.ts +0 -28
- package/types/particle/moudules/shape/BoxShape.d.ts +0 -20
- package/types/particle/moudules/shape/CircleShape.d.ts +0 -27
- package/types/particle/moudules/shape/ConeShape.d.ts +0 -35
- package/types/particle/moudules/shape/HemisphereShape.d.ts +0 -23
- package/types/particle/moudules/shape/ShapeUtils.d.ts +0 -1
- package/types/particle/moudules/shape/SphereShape.d.ts +0 -23
- package/types/particle/moudules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
- package/types/particle/moudules/shape/enums/ParticleShapeType.d.ts +0 -15
- package/types/particle/moudules/shape/index.d.ts +0 -5
- package/types/physics/PhysicsManager.d.ts +0 -78
- package/types/shadow/PipelinePass.d.ts +0 -16
- package/types/utils/BoolUpdateFlag.d.ts +0 -12
- package/types/utils/DisorderedArray.d.ts +0 -18
- package/types/utils/UpdateFlag.d.ts +0 -20
- package/types/utils/UpdateFlagManager.d.ts +0 -1
- package/types/utils/Utils.d.ts +0 -31
- package/types/xr/component/XRPoseDriver.d.ts +0 -10
- package/types/xr/data/XRCamera.d.ts +0 -6
- package/types/xr/data/XRDevice.d.ts +0 -9
- package/types/xr/data/XRHandle.d.ts +0 -10
- package/types/xr/enum/EnumXRButton.d.ts +0 -5
- package/types/xr/enum/EnumXRDevicePhase.d.ts +0 -4
- package/types/xr/enum/EnumXRFeature.d.ts +0 -9
- package/types/xr/enum/EnumXRInputSource.d.ts +0 -8
- package/types/xr/enum/EnumXRMode.d.ts +0 -7
- package/types/xr/enum/EnumXRSubsystem.d.ts +0 -4
- package/types/xr/enum/EnumXRTrackingMode.d.ts +0 -7
- package/types/xr/feature/XRCameraManager.d.ts +0 -21
- package/types/xr/feature/XRFeature.d.ts +0 -29
- package/types/xr/feature/XRImageTrackManager.d.ts +0 -10
- package/types/xr/feature/XRInputManager.d.ts +0 -16
- package/types/xr/index.d.ts +0 -18
- package/types/xr/provider/XRProvider.d.ts +0 -19
- package/types/xr/subsystem/XRInputSubsystem.d.ts +0 -5
- package/types/xr/subsystem/XRSubsystem.d.ts +0 -30
- /package/types/{2d/data/RenderData2D.d.ts → BasicResources.d.ts} +0 -0
- /package/types/{animation/internal/AnimationCurveOwnerLayerData.d.ts → RenderPipeline/OpaqueTexturePass.d.ts} +0 -0
- /package/types/{graphic/PrimitiveVertexBinding.d.ts → enums/CameraType.d.ts} +0 -0
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { ParticleCurve } from "./ParticleCurve";
|
|
2
|
-
import { IClone } from "@galacean/engine-design";
|
|
3
|
-
import { Vector3 } from "@galacean/engine-math";
|
|
4
|
-
import { ParticleCurveMode } from "../enum";
|
|
5
|
-
/**
|
|
6
|
-
* Rotation over lifetime curve.
|
|
7
|
-
*/
|
|
8
|
-
export declare class RotationVelocityGradient implements IClone {
|
|
9
|
-
/**
|
|
10
|
-
* A single constant value for the entire curve.
|
|
11
|
-
* @param constant - Constant value.
|
|
12
|
-
*/
|
|
13
|
-
static createByConstant(constant: number): RotationVelocityGradient;
|
|
14
|
-
/**
|
|
15
|
-
* A single constant value for the entire curve.
|
|
16
|
-
* @param separateConstant - Constant value.
|
|
17
|
-
*/
|
|
18
|
-
static createByConstantSeparate(separateConstant: Vector3): RotationVelocityGradient;
|
|
19
|
-
/**
|
|
20
|
-
* Use one curve when evaluating numbers along this Min-Max curve.
|
|
21
|
-
* @param gradient - A single curve to evaluate.
|
|
22
|
-
*/
|
|
23
|
-
static createByGradient(gradient: ParticleCurve): RotationVelocityGradient;
|
|
24
|
-
/**
|
|
25
|
-
* Use one curve when evaluating numbers along this Min-Max curve.
|
|
26
|
-
* @param gradientX - A single curve to evaluate against on X.
|
|
27
|
-
* @param gradientY - A single curve to evaluate against on Y.
|
|
28
|
-
* @param gradientZ - A single curve to evaluate against on Z.
|
|
29
|
-
*/
|
|
30
|
-
static createByGradientSeparate(gradientX: ParticleCurve, gradientY: ParticleCurve, gradientZ: ParticleCurve): RotationVelocityGradient;
|
|
31
|
-
/**
|
|
32
|
-
* Randomly select values based on the interval between the minimum and maximum constants.
|
|
33
|
-
* @param constantMin - The constant describing the minimum values to be evaluated.
|
|
34
|
-
* @param constantMax - The constant describing the maximum values to be evaluated.
|
|
35
|
-
*/
|
|
36
|
-
static createByRandomTwoConstant(constantMin: number, constantMax: number): RotationVelocityGradient;
|
|
37
|
-
/**
|
|
38
|
-
* Randomly select values based on the interval between the minimum and maximum constants.
|
|
39
|
-
* @param separateConstantMin - The constant describing the minimum values to be evaluated.
|
|
40
|
-
* @param separateConstantMax - The constant describing the maximum values to be evaluated.
|
|
41
|
-
*/
|
|
42
|
-
static createByRandomTwoConstantSeparate(separateConstantMin: Vector3, separateConstantMax: Vector3): RotationVelocityGradient;
|
|
43
|
-
/**
|
|
44
|
-
* Randomly select values based on the interval between the minimum and maximum curves.
|
|
45
|
-
* @param gradientMin - The curve describing the minimum values to be evaluated on X.
|
|
46
|
-
* @param gradientMax - The curve describing the maximum values to be evaluated on X.
|
|
47
|
-
*/
|
|
48
|
-
static createByRandomTwoGradient(gradientMin: ParticleCurve, gradientMax: ParticleCurve): RotationVelocityGradient;
|
|
49
|
-
/**
|
|
50
|
-
* Randomly select values based on the interval between the minimum and maximum curves.
|
|
51
|
-
* @param gradientXMin - The curve describing the minimum values to be evaluated on X.
|
|
52
|
-
* @param gradientXMax - The curve describing the maximum values to be evaluated on X.
|
|
53
|
-
* @param gradientYMin - The curve describing the minimum values to be evaluated on Y.
|
|
54
|
-
* @param gradientYMax - The curve describing the maximum values to be evaluated on Y.
|
|
55
|
-
* @param gradientZMin - The curve describing the minimum values to be evaluated on Z.
|
|
56
|
-
* @param gradientZMax - The curve describing the maximum values to be evaluated on Z.
|
|
57
|
-
* @param gradientWMin - The curve describing the minimum values to be evaluated on W.
|
|
58
|
-
* @param gradientWMax - The curve describing the maximum values to be evaluated on W.
|
|
59
|
-
*/
|
|
60
|
-
static createByRandomTwoGradientSeparate(gradientXMin: ParticleCurve, gradientXMax: ParticleCurve, gradientYMin: ParticleCurve, gradientYMax: ParticleCurve, gradientZMin: ParticleCurve, gradientZMax: ParticleCurve, gradientWMin: ParticleCurve, gradientWMax: ParticleCurve): RotationVelocityGradient;
|
|
61
|
-
private _mode;
|
|
62
|
-
private _separateAxes;
|
|
63
|
-
private _constant;
|
|
64
|
-
private _constantSeparate;
|
|
65
|
-
private _constantMin;
|
|
66
|
-
private _constantMinSeparate;
|
|
67
|
-
private _constantMax;
|
|
68
|
-
private _constantMaxSeparate;
|
|
69
|
-
private _gradient;
|
|
70
|
-
private _gradientX;
|
|
71
|
-
private _gradientY;
|
|
72
|
-
private _gradientZ;
|
|
73
|
-
private _gradientW;
|
|
74
|
-
private _gradientMin;
|
|
75
|
-
private _gradientXMin;
|
|
76
|
-
private _gradientYMin;
|
|
77
|
-
private _gradientZMin;
|
|
78
|
-
private _gradientWMin;
|
|
79
|
-
private _gradientMax;
|
|
80
|
-
private _gradientXMax;
|
|
81
|
-
private _gradientYMax;
|
|
82
|
-
private _gradientZMax;
|
|
83
|
-
private _gradientWMax;
|
|
84
|
-
/**
|
|
85
|
-
* The mode that the min-max curve uses to evaluate values.
|
|
86
|
-
*/
|
|
87
|
-
get mode(): ParticleCurveMode;
|
|
88
|
-
/**
|
|
89
|
-
* The rotation over lifetime on each axis separately.
|
|
90
|
-
*/
|
|
91
|
-
get separateAxes(): boolean;
|
|
92
|
-
/**
|
|
93
|
-
* The constant value.
|
|
94
|
-
*/
|
|
95
|
-
get constant(): number;
|
|
96
|
-
/**
|
|
97
|
-
* The constant separate value.
|
|
98
|
-
*/
|
|
99
|
-
get constantSeparate(): Vector3;
|
|
100
|
-
/**
|
|
101
|
-
* The curve.
|
|
102
|
-
*/
|
|
103
|
-
get gradient(): ParticleCurve;
|
|
104
|
-
/**
|
|
105
|
-
* The curve on X.
|
|
106
|
-
*/
|
|
107
|
-
get gradientX(): ParticleCurve;
|
|
108
|
-
/**
|
|
109
|
-
* The curve on Y.
|
|
110
|
-
*/
|
|
111
|
-
get gradientY(): ParticleCurve;
|
|
112
|
-
/**
|
|
113
|
-
* The curve on Z.
|
|
114
|
-
*/
|
|
115
|
-
get gradientZ(): ParticleCurve;
|
|
116
|
-
/**
|
|
117
|
-
* The curve on W.
|
|
118
|
-
*/
|
|
119
|
-
get gradientW(): ParticleCurve;
|
|
120
|
-
/**
|
|
121
|
-
* The constant for the lower bound.
|
|
122
|
-
*/
|
|
123
|
-
get constantMin(): number;
|
|
124
|
-
/**
|
|
125
|
-
* The constant for the upper bound.
|
|
126
|
-
*/
|
|
127
|
-
get constantMax(): number;
|
|
128
|
-
/**
|
|
129
|
-
* The constant separate for the lower bound.
|
|
130
|
-
*/
|
|
131
|
-
get constantMinSeparate(): Vector3;
|
|
132
|
-
/**
|
|
133
|
-
* The constant separate for the upper bound.
|
|
134
|
-
*/
|
|
135
|
-
get constantMaxSeparate(): Vector3;
|
|
136
|
-
/**
|
|
137
|
-
* The curve for the lower bound
|
|
138
|
-
*/
|
|
139
|
-
get gradientMin(): ParticleCurve;
|
|
140
|
-
/**
|
|
141
|
-
* The curve for the upper bound
|
|
142
|
-
*/
|
|
143
|
-
get gradientMax(): ParticleCurve;
|
|
144
|
-
/**
|
|
145
|
-
* The curve for the lower bound on X
|
|
146
|
-
*/
|
|
147
|
-
get gradientXMin(): ParticleCurve;
|
|
148
|
-
/**
|
|
149
|
-
* The curve for the upper bound on X
|
|
150
|
-
*/
|
|
151
|
-
get gradientXMax(): ParticleCurve;
|
|
152
|
-
/**
|
|
153
|
-
* The curve for the lower bound on Y
|
|
154
|
-
*/
|
|
155
|
-
get gradientYMin(): ParticleCurve;
|
|
156
|
-
/**
|
|
157
|
-
* The curve for the upper bound on Y
|
|
158
|
-
*/
|
|
159
|
-
get gradientYMax(): ParticleCurve;
|
|
160
|
-
/**
|
|
161
|
-
* The curve for the lower bound on Z
|
|
162
|
-
*/
|
|
163
|
-
get gradientZMin(): ParticleCurve;
|
|
164
|
-
/**
|
|
165
|
-
* The curve for the upper bound on Z
|
|
166
|
-
*/
|
|
167
|
-
get gradientZMax(): ParticleCurve;
|
|
168
|
-
/**
|
|
169
|
-
* The curve for the lower bound on W
|
|
170
|
-
*/
|
|
171
|
-
get gradientWMin(): ParticleCurve;
|
|
172
|
-
/**
|
|
173
|
-
* The curve for the upper bound on W
|
|
174
|
-
*/
|
|
175
|
-
get gradientWMax(): ParticleCurve;
|
|
176
|
-
/**
|
|
177
|
-
* @override
|
|
178
|
-
*/
|
|
179
|
-
cloneTo(destGradientAngularVelocity: RotationVelocityGradient): void;
|
|
180
|
-
/**
|
|
181
|
-
* @override
|
|
182
|
-
*/
|
|
183
|
-
clone(): RotationVelocityGradient;
|
|
184
|
-
}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { ParticleCurve } from "./ParticleCurve";
|
|
2
|
-
import { IClone } from "@galacean/engine-design";
|
|
3
|
-
import { Vector3 } from "@galacean/engine-math";
|
|
4
|
-
import { ParticleCurveMode } from "../enum";
|
|
5
|
-
/**
|
|
6
|
-
* Curve to control particle size based on lifetime
|
|
7
|
-
*/
|
|
8
|
-
export declare class SizeGradient implements IClone {
|
|
9
|
-
/**
|
|
10
|
-
* Use one curve when evaluating numbers along this Min-Max curve.
|
|
11
|
-
* @param gradient - A single curve to evaluate.
|
|
12
|
-
*/
|
|
13
|
-
static createByGradient(gradient: ParticleCurve): SizeGradient;
|
|
14
|
-
/**
|
|
15
|
-
* Use one curve when evaluating numbers along this Min-Max curve.
|
|
16
|
-
* @param gradientX - A single curve to evaluate against on X.
|
|
17
|
-
* @param gradientY - A single curve to evaluate against on Y.
|
|
18
|
-
* @param gradientZ - A single curve to evaluate against on Z.
|
|
19
|
-
*/
|
|
20
|
-
static createByGradientSeparate(gradientX: ParticleCurve, gradientY: ParticleCurve, gradientZ: ParticleCurve): SizeGradient;
|
|
21
|
-
/**
|
|
22
|
-
* Randomly select values based on the interval between the minimum and maximum constants.
|
|
23
|
-
* @param constantMin - The constant describing the minimum values to be evaluated.
|
|
24
|
-
* @param constantMax - The constant describing the maximum values to be evaluated.
|
|
25
|
-
*/
|
|
26
|
-
static createByRandomTwoConstant(constantMin: number, constantMax: number): SizeGradient;
|
|
27
|
-
/**
|
|
28
|
-
* Randomly select values based on the interval between the minimum and maximum constants.
|
|
29
|
-
* @param constantMinSeparate - The constant describing the minimum values to be evaluated.
|
|
30
|
-
* @param constantMaxSeparate - The constant describing the maximum values to be evaluated.
|
|
31
|
-
*/
|
|
32
|
-
static createByRandomTwoConstantSeparate(constantMinSeparate: Vector3, constantMaxSeparate: Vector3): SizeGradient;
|
|
33
|
-
/**
|
|
34
|
-
* Randomly select values based on the interval between the minimum and maximum curves.
|
|
35
|
-
* @param gradientMin - The curve describing the minimum values to be evaluated.
|
|
36
|
-
* @param gradientMax - The curve describing the maximum values to be evaluated.
|
|
37
|
-
*/
|
|
38
|
-
static createByRandomTwoGradient(gradientMin: ParticleCurve, gradientMax: ParticleCurve): SizeGradient;
|
|
39
|
-
/**
|
|
40
|
-
* Randomly select values based on the interval between the minimum and maximum curves.
|
|
41
|
-
* @param gradientXMin - The curve describing the minimum values to be evaluated on X.
|
|
42
|
-
* @param gradientXMax - The curve describing the maximum values to be evaluated on X.
|
|
43
|
-
* @param gradientYMin - The curve describing the minimum values to be evaluated on Y.
|
|
44
|
-
* @param gradientYMax - The curve describing the maximum values to be evaluated on Y.
|
|
45
|
-
* @param gradientZMin - The curve describing the minimum values to be evaluated on Z.
|
|
46
|
-
* @param gradientZMax - The curve describing the maximum values to be evaluated on Z.
|
|
47
|
-
*/
|
|
48
|
-
static createByRandomTwoGradientSeparate(gradientXMin: ParticleCurve, gradientXMax: ParticleCurve, gradientYMin: ParticleCurve, gradientYMax: ParticleCurve, gradientZMin: ParticleCurve, gradientZMax: ParticleCurve): SizeGradient;
|
|
49
|
-
private _mode;
|
|
50
|
-
private _separateAxes;
|
|
51
|
-
private _gradient;
|
|
52
|
-
private _gradientX;
|
|
53
|
-
private _gradientY;
|
|
54
|
-
private _gradientZ;
|
|
55
|
-
private _constantMin;
|
|
56
|
-
private _constantMinSeparate;
|
|
57
|
-
private _constantMax;
|
|
58
|
-
private _constantMaxSeparate;
|
|
59
|
-
private _gradientMin;
|
|
60
|
-
private _gradientXMin;
|
|
61
|
-
private _gradientYMin;
|
|
62
|
-
private _gradientZMin;
|
|
63
|
-
private _gradientMax;
|
|
64
|
-
private _gradientXMax;
|
|
65
|
-
private _gradientYMax;
|
|
66
|
-
private _gradientZMax;
|
|
67
|
-
/**
|
|
68
|
-
* The mode that the min-max curve uses to evaluate values.
|
|
69
|
-
*/
|
|
70
|
-
get mode(): ParticleCurveMode;
|
|
71
|
-
/**
|
|
72
|
-
* The size over lifetime on each axis separately.
|
|
73
|
-
*/
|
|
74
|
-
get separateAxes(): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* The curve.
|
|
77
|
-
*/
|
|
78
|
-
get gradient(): ParticleCurve;
|
|
79
|
-
/**
|
|
80
|
-
* The curve on X.
|
|
81
|
-
*/
|
|
82
|
-
get gradientX(): ParticleCurve;
|
|
83
|
-
/**
|
|
84
|
-
* The curve on Y.
|
|
85
|
-
*/
|
|
86
|
-
get gradientY(): ParticleCurve;
|
|
87
|
-
/**
|
|
88
|
-
* The curve on Z.
|
|
89
|
-
*/
|
|
90
|
-
get gradientZ(): ParticleCurve;
|
|
91
|
-
/**
|
|
92
|
-
* The constant for the lower bound.
|
|
93
|
-
*/
|
|
94
|
-
get constantMin(): number;
|
|
95
|
-
/**
|
|
96
|
-
* The constant for the upper bound.
|
|
97
|
-
*/
|
|
98
|
-
get constantMax(): number;
|
|
99
|
-
/**
|
|
100
|
-
* The constant for the lower bound.
|
|
101
|
-
*/
|
|
102
|
-
get constantMinSeparate(): Vector3;
|
|
103
|
-
/**
|
|
104
|
-
* The constant for the upper bound.
|
|
105
|
-
*/
|
|
106
|
-
get constantMaxSeparate(): Vector3;
|
|
107
|
-
/**
|
|
108
|
-
* The curve for the lower bound
|
|
109
|
-
*/
|
|
110
|
-
get gradientMin(): ParticleCurve;
|
|
111
|
-
/**
|
|
112
|
-
* The curve for the upper bound
|
|
113
|
-
*/
|
|
114
|
-
get gradientMax(): ParticleCurve;
|
|
115
|
-
/**
|
|
116
|
-
* The curve for the lower bound on X
|
|
117
|
-
*/
|
|
118
|
-
get gradientXMin(): ParticleCurve;
|
|
119
|
-
/**
|
|
120
|
-
* The curve for the upper bound on X
|
|
121
|
-
*/
|
|
122
|
-
get gradientXMax(): ParticleCurve;
|
|
123
|
-
/**
|
|
124
|
-
* The curve for the lower bound on Y
|
|
125
|
-
*/
|
|
126
|
-
get gradientYMin(): ParticleCurve;
|
|
127
|
-
/**
|
|
128
|
-
* The curve for the upper bound on Y
|
|
129
|
-
*/
|
|
130
|
-
get gradientYMax(): ParticleCurve;
|
|
131
|
-
/**
|
|
132
|
-
* The curve for the lower bound on Z
|
|
133
|
-
*/
|
|
134
|
-
get gradientZMin(): ParticleCurve;
|
|
135
|
-
/**
|
|
136
|
-
* The curve for the upper bound on Z
|
|
137
|
-
*/
|
|
138
|
-
get gradientZMax(): ParticleCurve;
|
|
139
|
-
/**
|
|
140
|
-
* 获取最大尺寸。
|
|
141
|
-
*/
|
|
142
|
-
getMaxSizeInGradient(meshMode?: boolean): number;
|
|
143
|
-
/**
|
|
144
|
-
* @override
|
|
145
|
-
*/
|
|
146
|
-
cloneTo(destGradientSize: SizeGradient): void;
|
|
147
|
-
/**
|
|
148
|
-
* @override
|
|
149
|
-
*/
|
|
150
|
-
clone(): SizeGradient;
|
|
151
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SizeGradient } from "./SizeGradient";
|
|
2
|
-
import { IClone } from "@galacean/engine-design";
|
|
3
|
-
/**
|
|
4
|
-
* This module controls the size of particles throughout their lifetime.
|
|
5
|
-
*/
|
|
6
|
-
export declare class SizeOverLifetimeModule implements IClone {
|
|
7
|
-
/** Curve to control particle size based on lifetime. */
|
|
8
|
-
size: SizeGradient;
|
|
9
|
-
/** Specifies whether the SizeOverLifetimeModule is enabled or disabled. */
|
|
10
|
-
enable: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* @override
|
|
13
|
-
* @inheritDoc
|
|
14
|
-
*/
|
|
15
|
-
cloneTo(destSizeOverLifetime: SizeOverLifetimeModule): void;
|
|
16
|
-
/**
|
|
17
|
-
* @override
|
|
18
|
-
* @inheritDoc
|
|
19
|
-
*/
|
|
20
|
-
clone(): SizeOverLifetimeModule;
|
|
21
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IClone } from "@galacean/engine-design";
|
|
2
|
-
import { ParticleCurveMode } from "../enum";
|
|
3
|
-
/**
|
|
4
|
-
* Curve to control start frame based on lifetime.
|
|
5
|
-
*/
|
|
6
|
-
export declare class StartFrame implements IClone {
|
|
7
|
-
/**
|
|
8
|
-
* A single constant value for the entire curve.
|
|
9
|
-
* @param constant - Constant value.
|
|
10
|
-
*/
|
|
11
|
-
static createByConstant(constant?: number): StartFrame;
|
|
12
|
-
/**
|
|
13
|
-
* Randomly select values based on the interval between the minimum and maximum constants.
|
|
14
|
-
* @param constantMin - The constant describing the minimum values to be evaluated.
|
|
15
|
-
* @param constantMax - The constant describing the maximum values to be evaluated.
|
|
16
|
-
*/
|
|
17
|
-
static createByRandomTwoConstant(constantMin?: number, constantMax?: number): StartFrame;
|
|
18
|
-
private _mode;
|
|
19
|
-
private _constant;
|
|
20
|
-
private _constantMin;
|
|
21
|
-
private _constantMax;
|
|
22
|
-
/**
|
|
23
|
-
* The mode that the min-max curve uses to evaluate values.
|
|
24
|
-
*/
|
|
25
|
-
get mode(): ParticleCurveMode;
|
|
26
|
-
/**
|
|
27
|
-
* The constant value.
|
|
28
|
-
*/
|
|
29
|
-
get constant(): number;
|
|
30
|
-
/**
|
|
31
|
-
* The constant for the lower bound.
|
|
32
|
-
*/
|
|
33
|
-
get constantMin(): number;
|
|
34
|
-
/**
|
|
35
|
-
* The constant for the upper bound.
|
|
36
|
-
*/
|
|
37
|
-
get constantMax(): number;
|
|
38
|
-
/**
|
|
39
|
-
* @override
|
|
40
|
-
*/
|
|
41
|
-
cloneTo(destStartFrame: StartFrame): void;
|
|
42
|
-
/**
|
|
43
|
-
* @override
|
|
44
|
-
*/
|
|
45
|
-
clone(): StartFrame;
|
|
46
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { FrameOverTime } from "./FrameOverTime";
|
|
2
|
-
import { StartFrame } from "./StartFrame";
|
|
3
|
-
import { IClone } from "@galacean/engine-design";
|
|
4
|
-
import { ParticleAnimationRowMode, ParticleAnimationType } from "../enum";
|
|
5
|
-
/**
|
|
6
|
-
* This module allows you to add animations to your particle textures.
|
|
7
|
-
*/
|
|
8
|
-
export declare class TextureSheetAnimationModule implements IClone {
|
|
9
|
-
/** Specifies the animation type.*/
|
|
10
|
-
animation: ParticleAnimationType;
|
|
11
|
-
/** Specifies how many times the animation loops during the lifetime of the particle. */
|
|
12
|
-
cyclesCount: number;
|
|
13
|
-
/** Specifies whether the TextureSheetAnimationModule is enabled or disabled. */
|
|
14
|
-
enable: boolean;
|
|
15
|
-
/** A curve to control which frame of the Texture sheet animation to play. */
|
|
16
|
-
frameOverTime: FrameOverTime;
|
|
17
|
-
/** Defines the tiling of the Texture in the x-axis. */
|
|
18
|
-
numTilesX: number;
|
|
19
|
-
/** Defines the tiling of the texture in the y-axis. */
|
|
20
|
-
numTilesY: number;
|
|
21
|
-
/** Explicitly select which row of the Texture sheet to use. */
|
|
22
|
-
rowIndex: number;
|
|
23
|
-
/** Select how particles choose which row of a Texture Sheet Animation to use. */
|
|
24
|
-
rowMode: ParticleAnimationRowMode;
|
|
25
|
-
/** Define a random starting frame for the Texture sheet animation. */
|
|
26
|
-
startFrame: StartFrame;
|
|
27
|
-
/**
|
|
28
|
-
* @override
|
|
29
|
-
* @inheritDoc
|
|
30
|
-
*/
|
|
31
|
-
cloneTo(destTextureSheetAnimation: TextureSheetAnimationModule): void;
|
|
32
|
-
/**
|
|
33
|
-
* @override
|
|
34
|
-
* @inheritDoc
|
|
35
|
-
*/
|
|
36
|
-
clone(): TextureSheetAnimationModule;
|
|
37
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { ParticleCurve } from "./ParticleCurve";
|
|
2
|
-
import { IClone } from "@galacean/engine-design";
|
|
3
|
-
import { Vector3 } from "@galacean/engine-math";
|
|
4
|
-
import { ParticleCurveMode } from "../enum";
|
|
5
|
-
/**
|
|
6
|
-
* Curve to control particle speed based on lifetime
|
|
7
|
-
*/
|
|
8
|
-
export declare class VelocityGradient implements IClone {
|
|
9
|
-
/**
|
|
10
|
-
* A single constant value for the entire curve.
|
|
11
|
-
* @param constant - Constant value.
|
|
12
|
-
*/
|
|
13
|
-
static createByConstant(constant: Vector3): VelocityGradient;
|
|
14
|
-
/**
|
|
15
|
-
* Use one curve when evaluating numbers along this Min-Max curve.
|
|
16
|
-
* @param gradientX - A single curve to evaluate against on X.
|
|
17
|
-
* @param gradientY - A single curve to evaluate against on Y.
|
|
18
|
-
* @param gradientZ - A single curve to evaluate against on Z.
|
|
19
|
-
*/
|
|
20
|
-
static createByGradient(gradientX: ParticleCurve, gradientY: ParticleCurve, gradientZ: ParticleCurve): VelocityGradient;
|
|
21
|
-
/**
|
|
22
|
-
* Randomly select values based on the interval between the minimum and maximum constants.
|
|
23
|
-
* @param constantMin - The constant describing the minimum values to be evaluated.
|
|
24
|
-
* @param constantMax - The constant describing the maximum values to be evaluated.
|
|
25
|
-
*/
|
|
26
|
-
static createByRandomTwoConstant(constantMin: Vector3, constantMax: Vector3): VelocityGradient;
|
|
27
|
-
/**
|
|
28
|
-
* Randomly select values based on the interval between the minimum and maximum curves.
|
|
29
|
-
* @param gradientXMin - The curve describing the minimum values to be evaluated on X.
|
|
30
|
-
* @param gradientXMax - The curve describing the maximum values to be evaluated on X.
|
|
31
|
-
* @param gradientYMin - The curve describing the minimum values to be evaluated on Y.
|
|
32
|
-
* @param gradientYMax - The curve describing the maximum values to be evaluated on Y.
|
|
33
|
-
* @param gradientZMin - The curve describing the minimum values to be evaluated on Z.
|
|
34
|
-
* @param gradientZMax - The curve describing the maximum values to be evaluated on Z.
|
|
35
|
-
*/
|
|
36
|
-
static createByRandomTwoGradient(gradientXMin: ParticleCurve, gradientXMax: ParticleCurve, gradientYMin: ParticleCurve, gradientYMax: ParticleCurve, gradientZMin: ParticleCurve, gradientZMax: ParticleCurve): VelocityGradient;
|
|
37
|
-
private _mode;
|
|
38
|
-
private _constant;
|
|
39
|
-
private _constantMin;
|
|
40
|
-
private _constantMax;
|
|
41
|
-
private _gradientX;
|
|
42
|
-
private _gradientY;
|
|
43
|
-
private _gradientZ;
|
|
44
|
-
private _gradientXMin;
|
|
45
|
-
private _gradientYMin;
|
|
46
|
-
private _gradientZMin;
|
|
47
|
-
private _gradientXMax;
|
|
48
|
-
private _gradientYMax;
|
|
49
|
-
private _gradientZMax;
|
|
50
|
-
/**
|
|
51
|
-
* The mode that the min-max curve uses to evaluate values.
|
|
52
|
-
*/
|
|
53
|
-
get mode(): ParticleCurveMode;
|
|
54
|
-
/**
|
|
55
|
-
* The constant value.
|
|
56
|
-
*/
|
|
57
|
-
get constant(): Vector3;
|
|
58
|
-
/**
|
|
59
|
-
* The curve on X.
|
|
60
|
-
*/
|
|
61
|
-
get gradientX(): ParticleCurve;
|
|
62
|
-
/**
|
|
63
|
-
* The curve on Y.
|
|
64
|
-
*/
|
|
65
|
-
get gradientY(): ParticleCurve;
|
|
66
|
-
/**
|
|
67
|
-
* The curve on Z.
|
|
68
|
-
*/
|
|
69
|
-
get gradientZ(): ParticleCurve;
|
|
70
|
-
/**
|
|
71
|
-
* The constant for the lower bound.
|
|
72
|
-
*/
|
|
73
|
-
get constantMin(): Vector3;
|
|
74
|
-
/**
|
|
75
|
-
* The constant for the upper bound.
|
|
76
|
-
*/
|
|
77
|
-
get constantMax(): Vector3;
|
|
78
|
-
/**
|
|
79
|
-
* The curve for the lower bound on X.
|
|
80
|
-
*/
|
|
81
|
-
get gradientXMin(): ParticleCurve;
|
|
82
|
-
/**
|
|
83
|
-
* The curve for the upper bound on X.
|
|
84
|
-
*/
|
|
85
|
-
get gradientXMax(): ParticleCurve;
|
|
86
|
-
/**
|
|
87
|
-
* The curve for the lower bound on Y.
|
|
88
|
-
*/
|
|
89
|
-
get gradientYMin(): ParticleCurve;
|
|
90
|
-
/**
|
|
91
|
-
* The curve for the upper bound on Y.
|
|
92
|
-
*/
|
|
93
|
-
get gradientYMax(): ParticleCurve;
|
|
94
|
-
/**
|
|
95
|
-
* The curve for the lower bound on Z.
|
|
96
|
-
*/
|
|
97
|
-
get gradientZMin(): ParticleCurve;
|
|
98
|
-
/**
|
|
99
|
-
* The curve for the upper bound on Z.
|
|
100
|
-
*/
|
|
101
|
-
get gradientZMax(): ParticleCurve;
|
|
102
|
-
/**
|
|
103
|
-
* @override
|
|
104
|
-
*/
|
|
105
|
-
cloneTo(destGradientVelocity: VelocityGradient): void;
|
|
106
|
-
/**
|
|
107
|
-
* @override
|
|
108
|
-
*/
|
|
109
|
-
clone(): VelocityGradient;
|
|
110
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { VelocityGradient } from "./VelocityGradient";
|
|
2
|
-
import { IClone } from "@galacean/engine-design";
|
|
3
|
-
import { ParticleSimulationSpace } from "../enum";
|
|
4
|
-
/**
|
|
5
|
-
* This module sets the velocity of particles during their lifetime.
|
|
6
|
-
*/
|
|
7
|
-
export declare class VelocityOverLifetimeModule implements IClone {
|
|
8
|
-
/** Get Gradient Velocity。 */
|
|
9
|
-
velocity: VelocityGradient;
|
|
10
|
-
/** Specifies whether the VelocityOverLifetimeModule is enabled or disabled. */
|
|
11
|
-
enable: boolean;
|
|
12
|
-
/** Specifies if the velocities are in local space (rotated with the transform) or world space. */
|
|
13
|
-
space: ParticleSimulationSpace;
|
|
14
|
-
/**
|
|
15
|
-
* @override
|
|
16
|
-
*/
|
|
17
|
-
cloneTo(destVelocityOverLifetime: VelocityOverLifetimeModule): void;
|
|
18
|
-
/**
|
|
19
|
-
* @override
|
|
20
|
-
*/
|
|
21
|
-
clone(): VelocityOverLifetimeModule;
|
|
22
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from "./shape";
|
|
2
|
-
export { Burst } from "./Burst";
|
|
3
|
-
export { EmissionModule } from "./EmissionModule";
|
|
4
|
-
export { ColorGradient } from "./ColorGradient";
|
|
5
|
-
export { ColorOverLifetimeModule } from "./ColorOverLifetimeModule";
|
|
6
|
-
export { ParticleCurve } from "./ParticleCurve";
|
|
7
|
-
export { VelocityGradient } from "./VelocityGradient";
|
|
8
|
-
export { VelocityOverLifetimeModule } from "./VelocityOverLifetimeModule";
|
|
9
|
-
export { RotationVelocityGradient } from "./RotationVelocityGradient";
|
|
10
|
-
export { RotationOverLifetimeModule } from "./RotationOverLifetimeModule";
|
|
11
|
-
export { SizeGradient } from "./SizeGradient";
|
|
12
|
-
export { SizeOverLifetimeModule } from "./SizeOverLifetimeModule";
|
|
13
|
-
export { StartFrame } from "./StartFrame";
|
|
14
|
-
export { FrameOverTime } from "./FrameOverTime";
|
|
15
|
-
export { TextureSheetAnimationModule } from "./TextureSheetAnimationModule";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { IClone } from "@galacean/engine-design";
|
|
2
|
-
import { BoundingBox } from "@galacean/engine-math";
|
|
3
|
-
import { ParticleShapeType } from "../../enum/ParticleShapeType";
|
|
4
|
-
/**
|
|
5
|
-
* Configures the initial positions and directions of particles.
|
|
6
|
-
*/
|
|
7
|
-
export declare class BaseShape implements IClone {
|
|
8
|
-
/** The type of shape to emit particles from. */
|
|
9
|
-
shapeType: ParticleShapeType;
|
|
10
|
-
/** Specifies whether the ShapeModule is enabled or disabled. */
|
|
11
|
-
enable: boolean;
|
|
12
|
-
/** Randomizes the starting direction of particles. */
|
|
13
|
-
randomDirectionAmount: number;
|
|
14
|
-
/**
|
|
15
|
-
* @override
|
|
16
|
-
* @inheritDoc
|
|
17
|
-
*/
|
|
18
|
-
cloneTo(destShape: BaseShape): void;
|
|
19
|
-
/**
|
|
20
|
-
* @override
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
clone(): BaseShape;
|
|
24
|
-
protected _getShapeBoundBox(boundBox: BoundingBox): void;
|
|
25
|
-
protected _getSpeedBoundBox(boundBox: BoundingBox): void;
|
|
26
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BaseShape } from "./BaseShape";
|
|
2
|
-
import { BoundingBox, Vector3 } from "@galacean/engine-math";
|
|
3
|
-
/**
|
|
4
|
-
* Box emitter shape
|
|
5
|
-
*/
|
|
6
|
-
export declare class BoxShape extends BaseShape {
|
|
7
|
-
/** Thickness of the box to emit particles from. */
|
|
8
|
-
boxThickness: Vector3;
|
|
9
|
-
constructor();
|
|
10
|
-
/**
|
|
11
|
-
* @inheritDoc
|
|
12
|
-
*/
|
|
13
|
-
protected _getShapeBoundBox(boundBox: BoundingBox): void;
|
|
14
|
-
/**
|
|
15
|
-
* @inheritDoc
|
|
16
|
-
*/
|
|
17
|
-
protected _getSpeedBoundBox(boundBox: BoundingBox): void;
|
|
18
|
-
cloneTo(destShape: BoxShape): void;
|
|
19
|
-
clone(): BoxShape;
|
|
20
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BaseShape } from "./BaseShape";
|
|
2
|
-
import { BoundingBox, Rand, Vector2, Vector3 } from "@galacean/engine-math";
|
|
3
|
-
import { ParticleShapeMultiModeValue } from "../../enum";
|
|
4
|
-
/**
|
|
5
|
-
* Circle Particle Emitter
|
|
6
|
-
*/
|
|
7
|
-
export declare class CircleShape extends BaseShape {
|
|
8
|
-
protected static _tempPositionPoint: Vector2;
|
|
9
|
-
/** Radius of the shape to emit particles from. */
|
|
10
|
-
radius: number;
|
|
11
|
-
/** Angle of the circle arc to emit particles from. */
|
|
12
|
-
arc: number;
|
|
13
|
-
/** The mode to generate particles around the arc. */
|
|
14
|
-
arcMode: ParticleShapeMultiModeValue;
|
|
15
|
-
constructor();
|
|
16
|
-
/**
|
|
17
|
-
* @inheritDoc
|
|
18
|
-
*/
|
|
19
|
-
protected _getShapeBoundBox(boundBox: BoundingBox): void;
|
|
20
|
-
/**
|
|
21
|
-
* @inheritDoc
|
|
22
|
-
*/
|
|
23
|
-
protected _getSpeedBoundBox(boundBox: BoundingBox): void;
|
|
24
|
-
_generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void;
|
|
25
|
-
cloneTo(destShape: CircleShape): void;
|
|
26
|
-
clone(): CircleShape;
|
|
27
|
-
}
|