@galacean/engine-core 1.1.0-beta.20 → 1.1.0-beta.21

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.
Files changed (113) hide show
  1. package/dist/main.js +2 -2
  2. package/dist/main.js.map +1 -1
  3. package/dist/miniprogram.js +2 -2
  4. package/dist/module.js +2 -2
  5. package/dist/module.js.map +1 -1
  6. package/package.json +3 -3
  7. package/types/enums/DepthMode.d.ts +8 -0
  8. package/types/particle/enum/ParticleShapeType.d.ts +1 -1
  9. package/types/particle/module/shape/BaseShape.d.ts +4 -7
  10. package/types/particle/module/shape/BoxShape.d.ts +3 -11
  11. package/types/particle/module/shape/CircleShape.d.ts +1 -9
  12. package/types/particle/module/shape/ConeShape.d.ts +1 -9
  13. package/types/particle/module/shape/HemisphereShape.d.ts +1 -9
  14. package/types/particle/module/shape/SphereShape.d.ts +1 -9
  15. package/types/particle/moudules/Burst.d.ts +12 -4
  16. package/types/particle/moudules/Emission.d.ts +27 -11
  17. package/types/particle/moudules/ParticleCurve.d.ts +1 -17
  18. package/types/physics/PhysicsManager.d.ts +2 -4
  19. package/types/xr/XRManager.d.ts +5 -3
  20. package/types/xr/feature/XRFeatureManager.d.ts +4 -4
  21. package/types/xr/index.d.ts +2 -25
  22. package/types/xr/input/XRInputEvent.d.ts +3 -6
  23. package/types/RenderPipeline/RenderElementX.d.ts +0 -12
  24. package/types/Ticker.d.ts +0 -30
  25. package/types/animation/internal/AnimationCurveOwnerLayerData.d.ts +0 -1
  26. package/types/graphic/PrimitiveVertexBinding.d.ts +0 -1
  27. package/types/mesh/SubModelMesh.d.ts +0 -260
  28. package/types/particle/ParticleShaderMacro.d.ts +0 -1
  29. package/types/particle/ParticleShaderProperty.d.ts +0 -1
  30. package/types/particle/ParticleSystem.d.ts +0 -41
  31. package/types/particle/ParticleVertexElements.d.ts +0 -1
  32. package/types/particle/ParticleVertexUtils.d.ts +0 -1
  33. package/types/particle/modules/ShapeModule.d.ts +0 -9
  34. package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
  35. package/types/particle/moudules/EmissionModule.d.ts +0 -49
  36. package/types/particle/moudules/MainModule.d.ts +0 -59
  37. package/types/particle/moudules/ParticleGradient.d.ts +0 -28
  38. package/types/particle/moudules/ShapeModule.d.ts +0 -7
  39. package/types/particle/moudules/shape/BaseShape.d.ts +0 -28
  40. package/types/particle/moudules/shape/BoxShape.d.ts +0 -20
  41. package/types/particle/moudules/shape/CircleShape.d.ts +0 -27
  42. package/types/particle/moudules/shape/ConeShape.d.ts +0 -35
  43. package/types/particle/moudules/shape/HemisphereShape.d.ts +0 -23
  44. package/types/particle/moudules/shape/ShapeUtils.d.ts +0 -1
  45. package/types/particle/moudules/shape/SphereShape.d.ts +0 -23
  46. package/types/particle/moudules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
  47. package/types/particle/moudules/shape/enums/ParticleShapeType.d.ts +0 -15
  48. package/types/particle/moudules/shape/index.d.ts +0 -5
  49. package/types/utils/BoolUpdateFlag.d.ts +0 -12
  50. package/types/utils/DisorderedArray.d.ts +0 -18
  51. package/types/utils/UpdateFlag.d.ts +0 -20
  52. package/types/utils/UpdateFlagManager.d.ts +0 -1
  53. package/types/utils/Utils.d.ts +0 -31
  54. package/types/xr/XRModule.d.ts +0 -126
  55. package/types/xr/component/XRPoseDriver.d.ts +0 -10
  56. package/types/xr/component/XRTrackingMode.d.ts +0 -15
  57. package/types/xr/component/trackable/XRAnchor.d.ts +0 -4
  58. package/types/xr/component/trackable/XRImage.d.ts +0 -6
  59. package/types/xr/component/trackable/XRPlane.d.ts +0 -7
  60. package/types/xr/component/trackable/XRTracked.d.ts +0 -13
  61. package/types/xr/data/XRCamera.d.ts +0 -6
  62. package/types/xr/data/XRDevice.d.ts +0 -9
  63. package/types/xr/data/XRHandle.d.ts +0 -10
  64. package/types/xr/enum/EnumXRButton.d.ts +0 -5
  65. package/types/xr/enum/EnumXRDevicePhase.d.ts +0 -4
  66. package/types/xr/enum/EnumXRFeature.d.ts +0 -9
  67. package/types/xr/enum/EnumXRInputSource.d.ts +0 -8
  68. package/types/xr/enum/EnumXRMode.d.ts +0 -7
  69. package/types/xr/enum/EnumXRSubsystem.d.ts +0 -4
  70. package/types/xr/enum/EnumXRTrackingMode.d.ts +0 -7
  71. package/types/xr/feature/XRCameraManager.d.ts +0 -21
  72. package/types/xr/feature/XRFeature.d.ts +0 -29
  73. package/types/xr/feature/XRImageTrackManager.d.ts +0 -10
  74. package/types/xr/feature/XRInputManager.d.ts +0 -16
  75. package/types/xr/feature/camera/IXRCameraDescriptor.d.ts +0 -7
  76. package/types/xr/feature/camera/XRCameraManager.d.ts +0 -35
  77. package/types/xr/feature/camera/XRPlatformCamera.d.ts +0 -5
  78. package/types/xr/feature/hitTest/XRHItTestType.d.ts +0 -16
  79. package/types/xr/feature/hitTest/XRHitTestManager.d.ts +0 -38
  80. package/types/xr/feature/movementTracking/IXRMovementTrackingDescriptor.d.ts +0 -9
  81. package/types/xr/feature/movementTracking/XRMovementTrackingManager.d.ts +0 -8
  82. package/types/xr/feature/movementTracking/XRMovementTrackingMode.d.ts +0 -5
  83. package/types/xr/feature/movementTracking/XRPlatformMovementTracking.d.ts +0 -10
  84. package/types/xr/feature/trackable/XRRequestTrackingState.d.ts +0 -11
  85. package/types/xr/feature/trackable/XRTrackableManager.d.ts +0 -41
  86. package/types/xr/feature/trackable/XRTrackablePlatformFeature.d.ts +0 -29
  87. package/types/xr/feature/trackable/XRTracked.d.ts +0 -9
  88. package/types/xr/feature/trackable/XRTrackedUpdateFlag.d.ts +0 -11
  89. package/types/xr/feature/trackable/XRTrackingState.d.ts +0 -11
  90. package/types/xr/feature/trackable/anchor/IXRAnchorTrackingDescriptor.d.ts +0 -8
  91. package/types/xr/feature/trackable/anchor/XRAnchorTrackingManager.d.ts +0 -22
  92. package/types/xr/feature/trackable/anchor/XRAnchorTrackingMode.d.ts +0 -4
  93. package/types/xr/feature/trackable/anchor/XRPlatformAnchorTracking.d.ts +0 -12
  94. package/types/xr/feature/trackable/anchor/XRRequestTrackingAnchor.d.ts +0 -10
  95. package/types/xr/feature/trackable/image/IXRImageTrackingDescriptor.d.ts +0 -5
  96. package/types/xr/feature/trackable/image/XRImageTrackingManager.d.ts +0 -33
  97. package/types/xr/feature/trackable/image/XRPlatformImageTracking.d.ts +0 -14
  98. package/types/xr/feature/trackable/image/XRReferenceImage.d.ts +0 -14
  99. package/types/xr/feature/trackable/image/XRRequestTrackingImage.d.ts +0 -11
  100. package/types/xr/feature/trackable/image/XRTrackedImage.d.ts +0 -5
  101. package/types/xr/feature/trackable/plane/IXRPlaneTrackingDescriptor.d.ts +0 -9
  102. package/types/xr/feature/trackable/plane/XRPlaneDetectionMode.d.ts +0 -13
  103. package/types/xr/feature/trackable/plane/XRPlaneMode.d.ts +0 -13
  104. package/types/xr/feature/trackable/plane/XRPlaneTrackingManager.d.ts +0 -14
  105. package/types/xr/feature/trackable/plane/XRPlatformPlaneTracking.d.ts +0 -11
  106. package/types/xr/feature/trackable/plane/XRRequestTrackingPlane.d.ts +0 -11
  107. package/types/xr/feature/trackable/plane/XRTrackedPlane.d.ts +0 -11
  108. package/types/xr/input/XRInput.d.ts +0 -14
  109. package/types/xr/input/XRInputEventType.d.ts +0 -11
  110. package/types/xr/input/XRTargetRayMode.d.ts +0 -12
  111. package/types/xr/provider/XRProvider.d.ts +0 -19
  112. package/types/xr/subsystem/XRInputSubsystem.d.ts +0 -5
  113. package/types/xr/subsystem/XRSubsystem.d.ts +0 -30
@@ -1,260 +0,0 @@
1
- import { Color, Vector2, Vector3, Vector4 } from "@galacean/engine-math";
2
- import { Engine } from "../Engine";
3
- import { Buffer } from "../graphic/Buffer";
4
- import { Mesh } from "../graphic/Mesh";
5
- import { VertexBufferBinding } from "../graphic/VertexBufferBinding";
6
- import { VertexElement } from "../graphic/VertexElement";
7
- import { BlendShape } from "./BlendShape";
8
- import { VertexAttribute } from "./enums/VertexAttribute";
9
- import { MeshTopology } from "../graphic/enums/MeshTopology";
10
- /**
11
- * Sub-model mesh.
12
- */
13
- export declare class SubModelMesh extends Mesh {
14
- private static _tempVec0;
15
- private static _tempVec1;
16
- private static _tempVec2;
17
- private static _tempVec3;
18
- private static _tempVec4;
19
- private _vertexCount;
20
- private _vertexCountDirty;
21
- private _dataVersionCounter;
22
- private _positions;
23
- private _normals;
24
- private _colors;
25
- private _tangents;
26
- private _uv;
27
- private _uv1;
28
- private _uv2;
29
- private _uv3;
30
- private _uv4;
31
- private _uv5;
32
- private _uv6;
33
- private _uv7;
34
- private _boneWeights;
35
- private _boneIndices;
36
- private _advancedElementUpdateFlag;
37
- private _advancedDataUpdateFlag;
38
- private _advancedVertexDataVersions;
39
- private _advancedDataSyncToBuffer;
40
- private _internalVertexBufferStride;
41
- private _internalVertexBufferCreatedInfo;
42
- private _internalVertexElementsOffset;
43
- private _internalVertexElementsFlags;
44
- private _vertexBufferInfos;
45
- private _indices;
46
- private _indicesFormat;
47
- private _indicesChangeFlag;
48
- /** Start drawing offset. */
49
- start: number;
50
- /** Drawing count. */
51
- count: number;
52
- /** Drawing topology. */
53
- topology: MeshTopology;
54
- /**
55
- * Vertex count of mesh.
56
- */
57
- get vertexCount(): number;
58
- /**
59
- * Vertex element collection.
60
- */
61
- get vertexElements(): Readonly<VertexElement[]>;
62
- /**
63
- * Vertex buffer binding collection.
64
- */
65
- get vertexBufferBindings(): ReadonlyArray<VertexBufferBinding>;
66
- /**
67
- * BlendShapes of this ModelMesh.
68
- */
69
- get blendShapes(): Readonly<BlendShape[]>;
70
- /**
71
- * BlendShape count of this ModelMesh.
72
- */
73
- get blendShapeCount(): number;
74
- /**
75
- * Create a model mesh.
76
- * @param engine - Engine to which the mesh belongs
77
- */
78
- constructor(engine: Engine);
79
- /**
80
- * Set positions for the mesh.
81
- * @param positions - The positions for the mesh
82
- */
83
- setPositions(positions: Vector3[] | null): void;
84
- /**
85
- * Get positions for the mesh.
86
- * @remarks Please call the setPositions() method after modification to ensure that the modification takes effect.
87
- */
88
- getPositions(): Vector3[] | null;
89
- /**
90
- * Set per-vertex normals for the mesh.
91
- * @param normals - The normals for the mesh
92
- */
93
- setNormals(normals: Vector3[] | null): void;
94
- /**
95
- * Get normals for the mesh.
96
- * @remarks Please call the setNormals() method after modification to ensure that the modification takes effect.
97
- */
98
- getNormals(): Vector3[] | null;
99
- /**
100
- * Set per-vertex colors for the mesh.
101
- * @param colors - The colors for the mesh
102
- */
103
- setColors(colors: Color[] | null): void;
104
- /**
105
- * Get colors for the mesh.
106
- * @remarks Please call the setColors() method after modification to ensure that the modification takes effect.
107
- */
108
- getColors(): Color[] | null;
109
- /**
110
- * Set per-vertex bone weights for the mesh.
111
- * @param boneWeights - The bone weights for the mesh
112
- */
113
- setBoneWeights(boneWeights: Vector4[] | null): void;
114
- /**
115
- * Get bone weights for the mesh.
116
- * @remarks Please call the setWeights() method after modification to ensure that the modification takes effect.
117
- */
118
- getBoneWeights(): Vector4[] | null;
119
- /**
120
- * Set per-vertex bone indices for the mesh.
121
- * @param boneIndices - The bone indices for the mesh
122
- */
123
- setBoneIndices(boneIndices: Vector4[] | null): void;
124
- /**
125
- * Get bone indices for the mesh.
126
- * @remarks Please call the setBoneIndices() method after modification to ensure that the modification takes effect.
127
- */
128
- getBoneIndices(): Vector4[] | null;
129
- /**
130
- * Set per-vertex tangents for the mesh.
131
- * @param tangents - The tangents for the mesh
132
- */
133
- setTangents(tangents: Vector4[] | null): void;
134
- /**
135
- * Get tangents for the mesh.
136
- * @remarks Please call the setTangents() method after modification to ensure that the modification takes effect.
137
- */
138
- getTangents(): Vector4[] | null;
139
- /**
140
- * Set per-vertex uv for the mesh.
141
- * @param uv - The uv for the mesh
142
- */
143
- setUVs(uv: Vector2[] | null): void;
144
- /**
145
- * Set per-vertex uv for the mesh by channelIndex.
146
- * @param uv - The uv for the mesh
147
- * @param channelIndex - The index of uv channels, in [0 ~ 7] range
148
- */
149
- setUVs(uv: Vector2[] | null, channelIndex: number): void;
150
- /**
151
- * Get uv for the mesh.
152
- * @remarks Please call the setUV() method after modification to ensure that the modification takes effect.
153
- */
154
- getUVs(): Vector2[] | null;
155
- /**
156
- * Get uv for the mesh by channelIndex.
157
- * @param channelIndex - The index of uv channels, in [0 ~ 7] range.
158
- * @remarks Please call the setUV() method after modification to ensure that the modification takes effect.
159
- */
160
- getUVs(channelIndex: number): Vector2[] | null;
161
- /**
162
- * Set indices for the mesh.
163
- * @param indices - The indices for the mesh
164
- */
165
- setIndices(indices: Uint8Array | Uint16Array | Uint32Array): void;
166
- /**
167
- * Get indices for the mesh.
168
- */
169
- getIndices(): Uint8Array | Uint16Array | Uint32Array;
170
- /**
171
- * Set vertex elements.
172
- * @param elements - Vertex element collection
173
- *
174
- * @remarks
175
- * Call this method will clear the vertex data set by the setPositions(), setNormals(), setColors(), setBoneWeights(), setBoneIndices(), setTangents(), setUVs() methods.
176
- */
177
- setVertexElements(elements: VertexElement[]): void;
178
- /**
179
- * Set vertex buffer binding.
180
- * @param vertexBufferBinding - Vertex buffer binding
181
- * @param index - Vertex buffer index, the default value is 0
182
- */
183
- setVertexBufferBinding(vertexBufferBinding: VertexBufferBinding, index?: number): void;
184
- /**
185
- * Set vertex buffer binding.
186
- * @param vertexBuffer - Vertex buffer
187
- * @param stride - Vertex buffer data stride
188
- * @param index - Vertex buffer index, the default value is 0
189
- */
190
- setVertexBufferBinding(vertexBuffer: Buffer, stride: number, index?: number): void;
191
- /**
192
- * Set vertex buffer binding.
193
- * @param vertexBufferBindings - Vertex buffer binding
194
- * @param firstIndex - First vertex buffer index, the default value is 0
195
- */
196
- setVertexBufferBindings(vertexBufferBindings: VertexBufferBinding[], firstIndex?: number): void;
197
- /**
198
- * Get `VertexElement` by attribute.
199
- * @param attribute - Vertex attribute
200
- * @returns Vertex element
201
- */
202
- getVertexElement(attribute: VertexAttribute): VertexElement | null;
203
- /**
204
- * Add a BlendShape for this ModelMesh.
205
- * @param blendShape - The BlendShape
206
- */
207
- addBlendShape(blendShape: BlendShape): void;
208
- /**
209
- * Clear all BlendShapes.
210
- */
211
- clearBlendShapes(): void;
212
- /**
213
- * Get name of BlendShape by given index.
214
- * @param index - The index of BlendShape
215
- * @returns The name of BlendShape
216
- */
217
- getBlendShapeName(index: number): string;
218
- /**
219
- * Upload data to GPU set by `setPositions()`, `setNormals()`, `setColors()`, `setBoneWeights()`, `setBoneIndices()`, `setTangents()`, `setUVs()`, `setIndices()` methods.
220
- * This method will be auto generate vertex element and vertex buffer binding if needed.
221
- *
222
- * @param releaseData - Whether to release the data cache, release data can reduce memory usage.
223
- */
224
- uploadData(releaseData: boolean): void;
225
- /**
226
- * Calculate mesh tangent.
227
- * @remark need to set positions(with or not with indices), normals, uv before calculation.
228
- * @remark based on http://foundationsofgameenginedev.com/FGED2-sample.pdf
229
- */
230
- calculateTangents(): void;
231
- private _getVertexElementData;
232
- private _beforeSetAdvancedVertexData;
233
- private _updateAdvancedVertexDataMarks;
234
- private _updateInternalVertexBuffer;
235
- private _readVector2VertexData;
236
- private _readVector3VertexData;
237
- private _readVector4VertexData;
238
- private _readColorVertexData;
239
- private _readVertexData;
240
- private _updateAdvancedVertexElement;
241
- private _updateAdvancedVertexElements;
242
- private _updateVertexElements;
243
- private _writeVector2AdvancedVertexData;
244
- private _writeVector3AdvancedVertexData;
245
- private _writeVector4AdvancedVertexData;
246
- private _writeColorAdvancedVertexData;
247
- private _writeAdvancedVertexData;
248
- private _updateAdvancedVertices;
249
- private _getInternalVertexBufferIndex;
250
- private _getAttributeFormat;
251
- private _getAttributeByteLength;
252
- private _releaseCache;
253
- /** @deprecated */
254
- private _accessible;
255
- /**
256
- * @deprecated
257
- * Whether to access data of the mesh.
258
- */
259
- get accessible(): boolean;
260
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,41 +0,0 @@
1
- import { ParticleRenderer } from "./ParticleRenderer";
2
- import { EmissionModule } from "./modules/EmissionModule";
3
- import { MainModule } from "./modules/MainModule";
4
- import { ShapeModule } from "./modules/ShapeModule";
5
- /**
6
- * Particle System.
7
- */
8
- export declare class ParticleGenerator {
9
- /** Use auto random seed. */
10
- useAutoRandomSeed: boolean;
11
- /** Main module. */
12
- readonly main: MainModule;
13
- /** Emission module. */
14
- readonly emission: EmissionModule;
15
- /** Shape module. */
16
- readonly shape: ShapeModule;
17
- private _waitProcessRetiredElementCount;
18
- private _instanceVertexBufferBinding;
19
- private _instanceVertices;
20
- private readonly _engine;
21
- private readonly _renderer;
22
- private readonly _particleIncreaseCount;
23
- /**
24
- * Random seed.
25
- * @remarks If `useAutoRandomSeed` is true, this value will be random changed when play.
26
- */
27
- get randomSeed(): number;
28
- set randomSeed(value: number);
29
- constructor(renderer: ParticleRenderer);
30
- /**
31
- * Emit a certain number of particles.
32
- * @param count - Number of particles to emit
33
- */
34
- emit(count: number): void;
35
- private _addNewParticle;
36
- private _retireActiveParticles;
37
- private _freeRetiredParticles;
38
- private _addNewParticlesToVertexBuffer;
39
- private _createParticleData;
40
- private _addVertexBufferBindingsFilterDuplicate;
41
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
2
- import { BaseShape } from "./shape/BaseShape";
3
- /**
4
- * Shape module of `ParticleGenerator`.
5
- */
6
- export declare class ShapeModule extends ParticleGeneratorModule {
7
- /** The shape of the emitter. */
8
- shape: BaseShape;
9
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * The mode used to generate new points in a shape.
3
- */
4
- export declare enum ParticleShapeMultiModeValue {
5
- /** Generate points randomly. (Default) */
6
- Random = 0,
7
- /** Animate the emission point around the shape. */
8
- Loop = 1
9
- }
@@ -1,49 +0,0 @@
1
- import { ParticleSystem } from "../ParticleSystem";
2
- import { Burst } from "./Burst";
3
- import { ParticleCurve } from "./ParticleCurve";
4
- /**
5
- * The EmissionModule of a Particle System.
6
- */
7
- export declare class EmissionModule {
8
- /** Specifies whether the EmissionModule is enabled or disabled. */
9
- enabled: boolean;
10
- /** The rate of particle emission. */
11
- rateOverTime: ParticleCurve;
12
- /** The rate at which the emitter spawns new particles over distance. */
13
- rateOverDistance: ParticleCurve;
14
- private _bursts;
15
- private _frameRateTime;
16
- private _currentBurstIndex;
17
- private _particleSystem;
18
- /**
19
- * Gets the burst array.
20
- */
21
- get bursts(): ReadonlyArray<Burst>;
22
- constructor(particleSystem: ParticleSystem);
23
- /**
24
- * Add a single burst.
25
- * @param burst - The burst
26
- */
27
- addBurst(burst: Burst): void;
28
- /**
29
- * Remove a single burst from the array of bursts.
30
- * @param burst - The burst data
31
- */
32
- removeBurst(burst: Burst): void;
33
- /**
34
- * Remove a single burst from the array of bursts.
35
- * @param index - The burst data index
36
- */
37
- removeBurstByIndex(index: number): void;
38
- /**
39
- * Clear burst data.
40
- */
41
- clearBurst(): void;
42
- /**
43
- * @override
44
- */
45
- cloneTo(destEmission: EmissionModule): void;
46
- private _emitByRateOverTime;
47
- private _emitByBurst;
48
- private _emitBySubBurst;
49
- }
@@ -1,59 +0,0 @@
1
- import { ParticleSystem } from "../ParticleSystem";
2
- import { ParticleScaleMode } from "../enums/ParticleScaleMode";
3
- import { ParticleSimulationSpace } from "../enums/ParticleSimulationSpace";
4
- import { ParticleCurve } from "./ParticleCurve";
5
- import { ParticleGradient } from "./ParticleGradient";
6
- export declare class MainModule {
7
- /** The duration of the Particle System in seconds. */
8
- duration: number;
9
- /** Specifies whether the Particle System is looping. */
10
- loop: boolean;
11
- /** Start delay in seconds. */
12
- startDelay: ParticleCurve;
13
- /** The initial lifetime of particles when emitted. */
14
- startLifetime: ParticleCurve;
15
- /** The initial speed of particles when the Particle System first spawns them. */
16
- startSpeed: ParticleCurve;
17
- /** A flag to enable specifying particle size individually for each axis. */
18
- startSize3D: boolean;
19
- /** The initial size of particles when the Particle System first spawns them. */
20
- startSize: ParticleCurve;
21
- /** The initial size of particles along the x-axis when the Particle System first spawns them. */
22
- startSizeX: ParticleCurve;
23
- /** The initial size of particles along the y-axis when the Particle System first spawns them. */
24
- startSizeY: ParticleCurve;
25
- /** The initial size of particles along the z-axis when the Particle System first spawns them. */
26
- startSizeZ: ParticleCurve;
27
- /** A flag to enable 3D particle rotation. */
28
- startRotation3D: boolean;
29
- /** The initial rotation of particles when the Particle System first spawns them. */
30
- startRotation: ParticleCurve;
31
- /** The initial rotation of particles around the x-axis when emitted.*/
32
- startRotationX: ParticleCurve;
33
- /** The initial rotation of particles around the y-axis when emitted. */
34
- startRotationY: ParticleCurve;
35
- /** The initial rotation of particles around the z-axis when emitted. */
36
- startRotationZ: ParticleCurve;
37
- /** Makes some particles spin in the opposite direction. */
38
- flipRotation: number;
39
- /** The mode of start color */
40
- startColor: ParticleGradient;
41
- /** A scale that this Particle System applies to gravity, defined by Physics.gravity. */
42
- gravityModifier: ParticleCurve;
43
- /** This selects the space in which to simulate particles. It can be either world or local space. */
44
- simulationSpace: ParticleSimulationSpace;
45
- /** Override the default playback speed of the Particle System. */
46
- simulationSpeed: number;
47
- /** Control how the Particle System applies its Transform component to the particles it emits. */
48
- scalingMode: ParticleScaleMode;
49
- /** If set to true, the Particle System automatically begins to play on startup. */
50
- playOnAwake: boolean;
51
- private _bufferMaxParticles;
52
- private _particleSystem;
53
- /**
54
- * Max particles count.
55
- */
56
- get maxParticles(): number;
57
- set maxParticles(value: number);
58
- constructor(particleSystem: ParticleSystem);
59
- }
@@ -1,28 +0,0 @@
1
- import { IClone } from "@galacean/engine-design";
2
- import { Color } from "@galacean/engine-math";
3
- import { ParticleGradientMode } from "../enums/ParticleGradientMode";
4
- /**
5
- * Particle curve.
6
- */
7
- export declare class ParticleGradient implements IClone {
8
- /** The curve mode. */
9
- mode: ParticleGradientMode;
10
- color: Color;
11
- colorMin: Color;
12
- colorMax: Color;
13
- /**
14
- * Query the color at the specified time.
15
- * @param time - Normalized time at which to evaluate the gradient, Valid when `mode` is set to `Gradient` or `TwoGradients`
16
- * @param lerpFactor - Lerp factor between two colors or gradients, Valid when `mode` is set to `TwoColors` or `TwoGradients`
17
- * @param out - The result color
18
- */
19
- evaluate(time: number, lerpFactor: number, out: Color): void;
20
- /**
21
- * @inheritDoc
22
- */
23
- cloneTo(destEmission: ParticleGradient): void;
24
- /**
25
- * @inheritDoc
26
- */
27
- clone(): ParticleGradient;
28
- }
@@ -1,7 +0,0 @@
1
- /**
2
- * Shape module of `ParticleSystem`.
3
- */
4
- export declare class ShapeModule {
5
- /** Specifies whether the Shape Module is enabled or disabled. */
6
- enabled: boolean;
7
- }
@@ -1,28 +0,0 @@
1
- import { IClone } from "@galacean/engine-design";
2
- import { BoundingBox, Rand } from "@galacean/engine-math";
3
- import { ParticleShapeType } from "./enums/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
- protected _rand: Rand;
15
- constructor(randSeed?: number);
16
- /**
17
- * @override
18
- * @inheritDoc
19
- */
20
- cloneTo(destShape: BaseShape): void;
21
- /**
22
- * @override
23
- * @inheritDoc
24
- */
25
- clone(): BaseShape;
26
- protected _getShapeBoundBox(boundBox: BoundingBox): void;
27
- protected _getSpeedBoundBox(boundBox: BoundingBox): void;
28
- }
@@ -1,20 +0,0 @@
1
- import { BoundingBox, Vector3 } from "@galacean/engine-math";
2
- import { BaseShape } from "./BaseShape";
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 { BoundingBox, Vector2, Vector3 } from "@galacean/engine-math";
2
- import { BaseShape } from "./BaseShape";
3
- import { ParticleShapeMultiModeValue } from "./enums/ParticleShapeMultiModeValue";
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): void;
25
- cloneTo(destShape: CircleShape): void;
26
- clone(): CircleShape;
27
- }
@@ -1,35 +0,0 @@
1
- import { BoundingBox, Vector2, Vector3 } from "@galacean/engine-math";
2
- import { BaseShape } from "./BaseShape";
3
- export declare enum ConeEmitType {
4
- Base = 0,
5
- BaseShell = 1,
6
- Volume = 2,
7
- VolumeShell = 3
8
- }
9
- /**
10
- * Cone particle emitter
11
- */
12
- export declare class ConeShape extends BaseShape {
13
- protected static _tempPositionPoint: Vector2;
14
- protected static _tempDirectionPoint: Vector2;
15
- /** Angle of the cone to emit particles from. */
16
- angle: number;
17
- /** Radius of the shape to emit particles from. */
18
- radius: number;
19
- /** Length of the cone to emit particles from. */
20
- length: number;
21
- /** Cone emitter subtype */
22
- emitType: ConeEmitType;
23
- constructor();
24
- /**
25
- * @inheritDoc
26
- */
27
- protected _getShapeBoundBox(boundBox: BoundingBox): void;
28
- /**
29
- * @inheritDoc
30
- */
31
- protected _getSpeedBoundBox(boundBox: BoundingBox): void;
32
- _generatePositionAndDirection(position: Vector3, direction: Vector3): void;
33
- cloneTo(destShape: ConeShape): void;
34
- clone(): ConeShape;
35
- }
@@ -1,23 +0,0 @@
1
- import { BoundingBox, Vector3 } from "@galacean/engine-math";
2
- import { BaseShape } from "./BaseShape";
3
- /**
4
- * Hemisphere emitter
5
- */
6
- export declare class HemisphereShape extends BaseShape {
7
- /** Radius of the shape to emit particles from. */
8
- radius: number;
9
- /** Whether emit from shell */
10
- emitFromShell: boolean;
11
- constructor();
12
- /**
13
- * @inheritDoc
14
- */
15
- protected _getShapeBoundBox(boundBox: BoundingBox): void;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _getSpeedBoundBox(boundBox: BoundingBox): void;
20
- _generatePositionAndDirection(position: Vector3, direction: Vector3): void;
21
- cloneTo(destShape: HemisphereShape): void;
22
- clone(): HemisphereShape;
23
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- import { BoundingBox, Rand, Vector3 } from "@galacean/engine-math";
2
- import { BaseShape } from "./BaseShape";
3
- /**
4
- * Sphere emitter
5
- */
6
- export declare class SphereShape extends BaseShape {
7
- /** Radius of the shape to emit particles from. */
8
- radius: number;
9
- /** Whether emit from shell */
10
- emitFromShell: boolean;
11
- constructor();
12
- /**
13
- * @inheritDoc
14
- */
15
- protected _getShapeBoundBox(boundBox: BoundingBox): void;
16
- /**
17
- * @inheritDoc
18
- */
19
- protected _getSpeedBoundBox(boundBox: BoundingBox): void;
20
- _generatePositionAndDirection(position: Vector3, direction: Vector3, rand?: Rand, randomSeeds?: Uint32Array): void;
21
- cloneTo(destShape: SphereShape): void;
22
- clone(): SphereShape;
23
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * The mode used to generate new points in a shape.
3
- */
4
- export declare enum ParticleShapeMultiModeValue {
5
- /** Generate points randomly. (Default) */
6
- Random = 0,
7
- /** Animate the emission point around the shape. */
8
- Loop = 1
9
- }
@@ -1,15 +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
- }