@galacean/engine-core 1.1.0-beta.20 → 1.1.0-beta.22
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 +2 -2
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +2 -2
- package/dist/module.js +2 -2
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/animation/AnimatorLayerMask.d.ts +45 -0
- package/types/animation/LayerPathMask.d.ts +16 -0
- package/types/xr/XRManager.d.ts +29 -31
- package/types/xr/feature/XRFeature.d.ts +46 -15
- package/types/xr/feature/XRFeatureManager.d.ts +1 -1
- package/types/xr/feature/XRFeatureType.d.ts +4 -6
- package/types/xr/feature/camera/XRCameraManager.d.ts +11 -12
- package/types/xr/feature/hitTest/TrackableType.d.ts +12 -0
- package/types/xr/feature/hitTest/XRHitTest.d.ts +41 -0
- package/types/xr/feature/movementTracking/XRMovementTracking.d.ts +18 -0
- package/types/xr/feature/movementTracking/XRMovementTrackingManager.d.ts +4 -2
- package/types/xr/feature/trackable/XRTrackableFeature.d.ts +44 -0
- package/types/xr/feature/trackable/XRTrackableManager.d.ts +1 -1
- package/types/xr/feature/trackable/anchor/XRAnchorTracking.d.ts +29 -0
- package/types/xr/feature/trackable/anchor/XRAnchorTrackingManager.d.ts +5 -7
- package/types/xr/feature/trackable/image/XRImageTracking.d.ts +40 -0
- package/types/xr/feature/trackable/image/XRImageTrackingManager.d.ts +3 -5
- package/types/xr/feature/trackable/image/XRReferenceImage.d.ts +3 -6
- package/types/xr/feature/trackable/plane/XRPlaneTracking.d.ts +20 -0
- package/types/xr/feature/trackable/plane/XRPlaneTrackingManager.d.ts +2 -5
- package/types/xr/index.d.ts +9 -22
- package/types/xr/input/XRCamera.d.ts +0 -2
- package/types/xr/input/XRController.d.ts +0 -2
- package/types/xr/input/XRInputManager.d.ts +0 -1
- package/types/xr/session/XRSessionManager.d.ts +4 -23
- package/types/xr/session/XRSessionMode.d.ts +8 -0
- package/types/2d/data/RenderData2D.d.ts +0 -1
- 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/animation/internal/AnimationCurveOwnerLayerData.d.ts +0 -1
- 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/graphic/PrimitiveVertexBinding.d.ts +0 -1
- package/types/mesh/SubModelMesh.d.ts +0 -260
- 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/IXRDevice.d.ts +0 -26
- package/types/xr/XRModule.d.ts +0 -126
- package/types/xr/component/XRPoseDriver.d.ts +0 -10
- package/types/xr/component/XRTrackingMode.d.ts +0 -15
- package/types/xr/component/trackable/XRAnchor.d.ts +0 -4
- package/types/xr/component/trackable/XRImage.d.ts +0 -6
- package/types/xr/component/trackable/XRPlane.d.ts +0 -7
- package/types/xr/component/trackable/XRTracked.d.ts +0 -13
- 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/XRImageTrackManager.d.ts +0 -10
- package/types/xr/feature/XRInputManager.d.ts +0 -16
- package/types/xr/feature/XRPlatformFeature.d.ts +0 -17
- package/types/xr/feature/camera/IXRCameraDescriptor.d.ts +0 -7
- package/types/xr/feature/camera/XRPlatformCamera.d.ts +0 -5
- package/types/xr/feature/movementTracking/IXRMovementTrackingDescriptor.d.ts +0 -9
- package/types/xr/feature/movementTracking/XRPlatformMovementTracking.d.ts +0 -10
- package/types/xr/feature/trackable/XRTrackablePlatformFeature.d.ts +0 -29
- package/types/xr/feature/trackable/XRTracked.d.ts +0 -9
- package/types/xr/feature/trackable/XRTrackedUpdateFlag.d.ts +0 -11
- package/types/xr/feature/trackable/XRTrackingState.d.ts +0 -11
- package/types/xr/feature/trackable/anchor/IXRAnchorTrackingDescriptor.d.ts +0 -8
- package/types/xr/feature/trackable/anchor/XRAnchorTrackingMode.d.ts +0 -4
- package/types/xr/feature/trackable/anchor/XRPlatformAnchorTracking.d.ts +0 -12
- package/types/xr/feature/trackable/anchor/XRRequestTrackingAnchor.d.ts +0 -10
- package/types/xr/feature/trackable/image/IXRImageTrackingDescriptor.d.ts +0 -5
- package/types/xr/feature/trackable/image/XRPlatformImageTracking.d.ts +0 -14
- package/types/xr/feature/trackable/image/XRRequestTrackingImage.d.ts +0 -11
- package/types/xr/feature/trackable/image/XRTrackedImage.d.ts +0 -5
- package/types/xr/feature/trackable/plane/IXRPlaneTrackingDescriptor.d.ts +0 -9
- package/types/xr/feature/trackable/plane/XRPlaneDetectionMode.d.ts +0 -13
- package/types/xr/feature/trackable/plane/XRPlatformPlaneTracking.d.ts +0 -11
- package/types/xr/feature/trackable/plane/XRRequestTrackingPlane.d.ts +0 -11
- package/types/xr/feature/trackable/plane/XRTrackedPlane.d.ts +0 -11
- package/types/xr/input/XRInput.d.ts +0 -14
- package/types/xr/provider/XRProvider.d.ts +0 -19
- package/types/xr/session/XRSessionType.d.ts +0 -7
- package/types/xr/subsystem/XRInputSubsystem.d.ts +0 -5
- package/types/xr/subsystem/XRSubsystem.d.ts +0 -30
- /package/types/xr/feature/hitTest/{XRHItTestType.d.ts → XRHitTestType.d.ts} +0 -0
|
@@ -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,289 +0,0 @@
|
|
|
1
|
-
import { BoundingBox, Color, Vector2, Vector3 } from "@galacean/engine-math";
|
|
2
|
-
import { ParticleRenderer } from "./ParticleRenderer";
|
|
3
|
-
import { BufferMesh } from "../mesh";
|
|
4
|
-
import { Buffer, VertexElement } from "../graphic";
|
|
5
|
-
import { ColorOverLifetimeModule, EmissionModule, ParticleCurve, RotationOverLifetimeModule, SizeOverLifetimeModule, TextureSheetAnimationModule, VelocityOverLifetimeModule } from "./module";
|
|
6
|
-
import { BaseShape } from "./module/shape/BaseShape";
|
|
7
|
-
import { ParticleCurveMode, ParticleScaleMode, ParticleSimulationSpace } from "./enum";
|
|
8
|
-
/**
|
|
9
|
-
* Particle Mesh
|
|
10
|
-
*/
|
|
11
|
-
export declare class ParticleMesh extends BufferMesh {
|
|
12
|
-
protected static VERTEX_STRIDE: number;
|
|
13
|
-
protected static VERTEX_ELEMENTS: VertexElement[];
|
|
14
|
-
protected static halfKSqrtOf2: number;
|
|
15
|
-
protected static g: number;
|
|
16
|
-
protected static _maxElapsedTime: number;
|
|
17
|
-
protected static _tempVector30: Vector3;
|
|
18
|
-
protected static _tempVector31: Vector3;
|
|
19
|
-
protected static _tempVector32: Vector3;
|
|
20
|
-
protected static _tempVector33: Vector3;
|
|
21
|
-
protected static _tempVector34: Vector3;
|
|
22
|
-
protected static _tempVector35: Vector3;
|
|
23
|
-
protected static _tempVector36: Vector3;
|
|
24
|
-
protected static _tempVector37: Vector3;
|
|
25
|
-
protected static _tempPosition: Vector3;
|
|
26
|
-
protected static _tempDirection: Vector3;
|
|
27
|
-
protected _simulateUpdate: boolean;
|
|
28
|
-
protected _drawCounter: number;
|
|
29
|
-
protected _isEmitting: boolean;
|
|
30
|
-
protected _isPlaying: boolean;
|
|
31
|
-
protected _isPaused: boolean;
|
|
32
|
-
protected _playStartDelay: number;
|
|
33
|
-
protected _frameRateTime: number;
|
|
34
|
-
protected _emissionTime: number;
|
|
35
|
-
protected _totalDelayTime: number;
|
|
36
|
-
protected _emissionDistance: number;
|
|
37
|
-
protected _emissionLastPosition: Vector3;
|
|
38
|
-
protected _uvLength: Vector2;
|
|
39
|
-
protected _renderer: ParticleRenderer;
|
|
40
|
-
protected _indexBuffer: Buffer;
|
|
41
|
-
protected _vertexBuffer: Buffer;
|
|
42
|
-
protected _vertices: Float32Array;
|
|
43
|
-
protected _simulationUV_Index: number;
|
|
44
|
-
protected _startLifeTimeIndex: number;
|
|
45
|
-
protected _timeIndex: number;
|
|
46
|
-
protected _burstsIndex: number;
|
|
47
|
-
protected _firstActiveElement: number;
|
|
48
|
-
protected _firstNewElement: number;
|
|
49
|
-
protected _firstFreeElement: number;
|
|
50
|
-
protected _firstRetiredElement: number;
|
|
51
|
-
protected _vertexStride: number;
|
|
52
|
-
protected _indexStride: number;
|
|
53
|
-
protected _floatCountPerVertex: number;
|
|
54
|
-
protected _bufferMaxParticles: number;
|
|
55
|
-
protected _emission: EmissionModule;
|
|
56
|
-
protected _shape: BaseShape;
|
|
57
|
-
protected _velocityOverLifetime: VelocityOverLifetimeModule;
|
|
58
|
-
protected _colorOverLifetime: ColorOverLifetimeModule;
|
|
59
|
-
protected _sizeOverLifetime: SizeOverLifetimeModule;
|
|
60
|
-
protected _rotationOverLifetime: RotationOverLifetimeModule;
|
|
61
|
-
protected _textureSheetAnimation: TextureSheetAnimationModule;
|
|
62
|
-
protected _startLifetimeType: ParticleCurveMode;
|
|
63
|
-
protected _startLifetimeConstant: number;
|
|
64
|
-
protected _startLifeTimeGradient: ParticleCurve;
|
|
65
|
-
protected _startLifetimeConstantMin: number;
|
|
66
|
-
protected _startLifetimeConstantMax: number;
|
|
67
|
-
protected _startLifeTimeGradientMin: ParticleCurve;
|
|
68
|
-
protected _startLifeTimeGradientMax: ParticleCurve;
|
|
69
|
-
protected _maxStartLifetime: number;
|
|
70
|
-
/** The mode of drag */
|
|
71
|
-
dragType: ParticleCurveMode;
|
|
72
|
-
/** Apply drag to particles within the volume of the Force Field. */
|
|
73
|
-
dragConstant: number;
|
|
74
|
-
/** Min apply drag to particles within the volume of the Force Field. */
|
|
75
|
-
dragSpeedConstantMin: number;
|
|
76
|
-
/** Max apply drag to particles within the volume of the Force Field. */
|
|
77
|
-
dragSpeedConstantMax: number;
|
|
78
|
-
/** Random seed.(should set before play()) */
|
|
79
|
-
randomSeed: Uint32Array;
|
|
80
|
-
/** Whether to use random seed */
|
|
81
|
-
autoRandomSeed: boolean;
|
|
82
|
-
/** Whether to use performance mode, which will delay particle release.*/
|
|
83
|
-
isPerformanceMode: boolean;
|
|
84
|
-
/** The duration of the Particle System in seconds. */
|
|
85
|
-
duration: number;
|
|
86
|
-
/** Specifies whether the Particle System is looping. */
|
|
87
|
-
looping: boolean;
|
|
88
|
-
/** A scale that this Particle System applies to gravity, defined by Physics.gravity. */
|
|
89
|
-
gravityModifier: number;
|
|
90
|
-
/** Control how the Particle System applies its Transform component to the particles it emits. */
|
|
91
|
-
scalingMode: ParticleScaleMode;
|
|
92
|
-
/** This selects the space in which to simulate particles. It can be either world or local space. */
|
|
93
|
-
simulationSpace: ParticleSimulationSpace;
|
|
94
|
-
/** Override the default playback speed of the Particle System. */
|
|
95
|
-
simulationSpeed: number;
|
|
96
|
-
/** If set to true, the Particle System automatically begins to play on startup. */
|
|
97
|
-
playOnAwake: boolean;
|
|
98
|
-
/** Makes some particles spin in the opposite direction. */
|
|
99
|
-
flipRotation: number;
|
|
100
|
-
/** Start delay mode. */
|
|
101
|
-
startDelayType: ParticleCurveMode;
|
|
102
|
-
/** Start delay in seconds. */
|
|
103
|
-
startDelay: number;
|
|
104
|
-
/** Start delay in min seconds. */
|
|
105
|
-
startDelayMin: number;
|
|
106
|
-
/** Start delay in max seconds. */
|
|
107
|
-
startDelayMax: number;
|
|
108
|
-
/** The mode of start particles speed */
|
|
109
|
-
startSpeedType: ParticleCurveMode;
|
|
110
|
-
/** The initial speed of particles when the Particle System first spawns them. */
|
|
111
|
-
startSpeedConstant: number;
|
|
112
|
-
/** The min initial speed of particles when the Particle System first spawns them. */
|
|
113
|
-
startSpeedConstantMin: number;
|
|
114
|
-
/** The max initial speed of particles when the Particle System first spawns them. */
|
|
115
|
-
startSpeedConstantMax: number;
|
|
116
|
-
/** A flag to enable 3D particle rotation. */
|
|
117
|
-
startRotation3D: boolean;
|
|
118
|
-
/** The mode of start rotation */
|
|
119
|
-
startRotationType: ParticleCurveMode;
|
|
120
|
-
/** The initial rotation of particles when the Particle System first spawns them. */
|
|
121
|
-
startRotationConstant: number;
|
|
122
|
-
/** The initial rotation of particles when the Particle System first spawns them. */
|
|
123
|
-
startRotationConstantSeparate: Vector3;
|
|
124
|
-
/** The min initial rotation of particles when the Particle System first spawns them. */
|
|
125
|
-
startRotationConstantMin: number;
|
|
126
|
-
/** The max initial rotation of particles when the Particle System first spawns them. */
|
|
127
|
-
startRotationConstantMax: number;
|
|
128
|
-
/** The min initial rotation of particles when the Particle System first spawns them. */
|
|
129
|
-
startRotationConstantMinSeparate: Vector3;
|
|
130
|
-
/** The max initial rotation of particles when the Particle System first spawns them. */
|
|
131
|
-
startRotationConstantMaxSeparate: Vector3;
|
|
132
|
-
/** A flag to enable specifying particle size individually for each axis. */
|
|
133
|
-
startSize3D: boolean;
|
|
134
|
-
/** The mode of start size */
|
|
135
|
-
startSizeType: ParticleCurveMode;
|
|
136
|
-
/** The initial size of particles when the Particle System first spawns them. */
|
|
137
|
-
startSizeConstant: number;
|
|
138
|
-
/** The initial size of particles when the Particle System first spawns them. */
|
|
139
|
-
startSizeConstantSeparate: Vector3;
|
|
140
|
-
/** The min initial size of particles when the Particle System first spawns them. */
|
|
141
|
-
startSizeConstantMin: number;
|
|
142
|
-
/** The max initial size of particles when the Particle System first spawns them. */
|
|
143
|
-
startSizeConstantMax: number;
|
|
144
|
-
/** The min initial size of particles when the Particle System first spawns them. */
|
|
145
|
-
startSizeConstantMinSeparate: Vector3;
|
|
146
|
-
/** The max initial size of particles when the Particle System first spawns them. */
|
|
147
|
-
startSizeConstantMaxSeparate: Vector3;
|
|
148
|
-
/** The mode of start color */
|
|
149
|
-
startColorType: ParticleCurveMode;
|
|
150
|
-
/** The initial color of particles when the Particle System first spawns them. */
|
|
151
|
-
startColorConstant: Color;
|
|
152
|
-
/** The min initial color of particles when the Particle System first spawns them. */
|
|
153
|
-
startColorConstantMin: Color;
|
|
154
|
-
/** The max initial color of particles when the Particle System first spawns them. */
|
|
155
|
-
startColorConstantMax: Color;
|
|
156
|
-
/**
|
|
157
|
-
* The mode of total lifetime.
|
|
158
|
-
*/
|
|
159
|
-
get startLifetimeType(): ParticleCurveMode;
|
|
160
|
-
set startLifetimeType(value: ParticleCurveMode);
|
|
161
|
-
/**
|
|
162
|
-
* The total lifetime in seconds that each new particle has.
|
|
163
|
-
*/
|
|
164
|
-
get startLifetimeConstant(): number;
|
|
165
|
-
set startLifetimeConstant(value: number);
|
|
166
|
-
/**
|
|
167
|
-
* The total lifetime in seconds that each new particle has.
|
|
168
|
-
*/
|
|
169
|
-
get startLifeTimeGradient(): ParticleCurve;
|
|
170
|
-
set startLifeTimeGradient(value: ParticleCurve);
|
|
171
|
-
/**
|
|
172
|
-
* The lower total lifetime in seconds that each new particle has.
|
|
173
|
-
*/
|
|
174
|
-
get startLifetimeConstantMin(): number;
|
|
175
|
-
set startLifetimeConstantMin(value: number);
|
|
176
|
-
/**
|
|
177
|
-
* The upper total lifetime in seconds that each new particle has.
|
|
178
|
-
*/
|
|
179
|
-
get startLifetimeConstantMax(): number;
|
|
180
|
-
set startLifetimeConstantMax(value: number);
|
|
181
|
-
/**
|
|
182
|
-
* The lower total lifetime in seconds that each new particle has.
|
|
183
|
-
*/
|
|
184
|
-
get startLifeTimeGradientMin(): ParticleCurve;
|
|
185
|
-
set startLifeTimeGradientMin(value: ParticleCurve);
|
|
186
|
-
/**
|
|
187
|
-
* The upper total lifetime in seconds that each new particle has.
|
|
188
|
-
*/
|
|
189
|
-
get startLifeTimeGradientMax(): ParticleCurve;
|
|
190
|
-
set startLifeTimeGradientMax(value: ParticleCurve);
|
|
191
|
-
/**
|
|
192
|
-
* The ShapeModule of a Particle System.
|
|
193
|
-
*/
|
|
194
|
-
get shape(): BaseShape;
|
|
195
|
-
set shape(value: BaseShape);
|
|
196
|
-
/**
|
|
197
|
-
* The maximum number of particles to emit.
|
|
198
|
-
*/
|
|
199
|
-
get maxParticles(): number;
|
|
200
|
-
set maxParticles(value: number);
|
|
201
|
-
/**
|
|
202
|
-
* the sum of all alive particles within the particle system.
|
|
203
|
-
*/
|
|
204
|
-
get aliveParticleCount(): number;
|
|
205
|
-
/**
|
|
206
|
-
* The emission time of the Particle System in seconds.
|
|
207
|
-
*/
|
|
208
|
-
get emissionTime(): number;
|
|
209
|
-
/**
|
|
210
|
-
* The EmissionModule of a Particle System.
|
|
211
|
-
*/
|
|
212
|
-
get emission(): EmissionModule;
|
|
213
|
-
/**
|
|
214
|
-
* Determines whether the Particle System is alive
|
|
215
|
-
*/
|
|
216
|
-
get isAlive(): boolean;
|
|
217
|
-
/**
|
|
218
|
-
* Determines whether the Particle System is emitting particles.
|
|
219
|
-
*/
|
|
220
|
-
get isEmitting(): boolean;
|
|
221
|
-
/**
|
|
222
|
-
* Determines whether the Particle System is playing.
|
|
223
|
-
*/
|
|
224
|
-
get isPlaying(): boolean;
|
|
225
|
-
/**
|
|
226
|
-
* Determines whether the Particle System is paused.
|
|
227
|
-
*/
|
|
228
|
-
get isPaused(): boolean;
|
|
229
|
-
/**
|
|
230
|
-
* The VelocityOverLifetimeModule of a Particle System.
|
|
231
|
-
*/
|
|
232
|
-
get velocityOverLifetime(): VelocityOverLifetimeModule;
|
|
233
|
-
set velocityOverLifetime(value: VelocityOverLifetimeModule);
|
|
234
|
-
/**
|
|
235
|
-
* The ColorOverLifetimeModule of a Particle System.
|
|
236
|
-
*/
|
|
237
|
-
get colorOverLifetime(): ColorOverLifetimeModule;
|
|
238
|
-
set colorOverLifetime(value: ColorOverLifetimeModule);
|
|
239
|
-
/**
|
|
240
|
-
* The SizeOverLifetimeModule of a Particle System.
|
|
241
|
-
*/
|
|
242
|
-
get sizeOverLifetime(): SizeOverLifetimeModule;
|
|
243
|
-
set sizeOverLifetime(value: SizeOverLifetimeModule);
|
|
244
|
-
/**
|
|
245
|
-
* The RotationOverLifetimeModule of a Particle System.
|
|
246
|
-
*/
|
|
247
|
-
get rotationOverLifetime(): RotationOverLifetimeModule;
|
|
248
|
-
set rotationOverLifetime(value: RotationOverLifetimeModule);
|
|
249
|
-
/**
|
|
250
|
-
* The TextureSheetAnimationModule of a Particle System.
|
|
251
|
-
*/
|
|
252
|
-
get textureSheetAnimation(): TextureSheetAnimationModule;
|
|
253
|
-
set textureSheetAnimation(value: TextureSheetAnimationModule);
|
|
254
|
-
/**
|
|
255
|
-
* Self-defined bounding box
|
|
256
|
-
*/
|
|
257
|
-
get customBounds(): BoundingBox;
|
|
258
|
-
set customBounds(value: BoundingBox);
|
|
259
|
-
constructor(renderer: ParticleRenderer);
|
|
260
|
-
/**
|
|
261
|
-
* Starts the Particle System.
|
|
262
|
-
*/
|
|
263
|
-
play(): void;
|
|
264
|
-
/**
|
|
265
|
-
* Pauses the system so no new particles are emitted and the existing particles are not updated.
|
|
266
|
-
*/
|
|
267
|
-
pause(): void;
|
|
268
|
-
/**
|
|
269
|
-
* Fast-forwards the Particle System by simulating particles over the given period of time, then pauses it.
|
|
270
|
-
* @param time - Time period in seconds to advance the ParticleSystem simulation by.
|
|
271
|
-
* @param restart - Restart and start from the beginning.
|
|
272
|
-
*/
|
|
273
|
-
simulate(time: number, restart?: boolean): void;
|
|
274
|
-
/**
|
|
275
|
-
* Stops playing the Particle System using the supplied stop behaviour.
|
|
276
|
-
*/
|
|
277
|
-
stop(): void;
|
|
278
|
-
protected _updateEmission(elapsedTime: number): void;
|
|
279
|
-
protected _updateParticles(elapsedTime: number): void;
|
|
280
|
-
protected _advanceTime(elapsedTime: number, emitTime: number): void;
|
|
281
|
-
protected _advanceDistance(emitTime: number): void;
|
|
282
|
-
protected _burst(fromTime: number, toTime: number): number;
|
|
283
|
-
protected _retireActiveParticles(): void;
|
|
284
|
-
protected _freeRetiredParticles(): void;
|
|
285
|
-
protected _emit(time: number): boolean;
|
|
286
|
-
protected _addParticle(position: Vector3, direction: Vector3, time: number): boolean;
|
|
287
|
-
protected _addNewParticlesToVertexBuffer(): void;
|
|
288
|
-
protected _updateParticlesSimulationRestart(time: number): void;
|
|
289
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -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
|
-
/**
|
|
2
|
-
* The mode used for selecting rows of an animation in the Texture Sheet Animation Module.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ParticleAnimationRowMode {
|
|
5
|
-
/** Use a random row for each particle. */
|
|
6
|
-
Random = 0,
|
|
7
|
-
/** Use the mesh index as the row, so that meshes can be mapped to specific animation frames. */
|
|
8
|
-
MeshIndex = 1
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Controls how texture sheet animations play.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ParticleAnimationType {
|
|
5
|
-
/** Animate over the whole texture sheet from left to right, top to bottom. */
|
|
6
|
-
WholeSheet = 0,
|
|
7
|
-
/** Animate a single row in the sheet from left to right. */
|
|
8
|
-
SingleRow = 1
|
|
9
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The particle curve mode.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ParticleCurveMode {
|
|
5
|
-
/** Use a single constant for the MinMaxCurve. */
|
|
6
|
-
Constant = 0,
|
|
7
|
-
/** Use a single curve for the MinMaxCurve. */
|
|
8
|
-
Curve = 1,
|
|
9
|
-
/** Use a random value between 2 constants for the MinMaxCurve. */
|
|
10
|
-
TwoConstants = 2,
|
|
11
|
-
/** Use a random value between 2 curves for the MinMaxCurve. */
|
|
12
|
-
TwoCurves = 3
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The particle gradient mode.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ParticleGradientMode {
|
|
5
|
-
/** Use a single color for the MinMaxGradient. */
|
|
6
|
-
Color = 0,
|
|
7
|
-
/** Use a single color gradient for the MinMaxGradient. */
|
|
8
|
-
Gradient = 1,
|
|
9
|
-
/** Use a random value between 2 colors for the MinMaxGradient. */
|
|
10
|
-
TwoColors = 2,
|
|
11
|
-
/** Use a random value between 2 color gradients for the MinMaxGradient. */
|
|
12
|
-
TwoGradients = 3
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The rendering mode for particle systems.
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ParticleRenderMode {
|
|
5
|
-
/** Render particles as billboards facing the active camera. (Default) */
|
|
6
|
-
Billboard = 0,
|
|
7
|
-
/** Stretch particles in the direction of motion. */
|
|
8
|
-
Stretch = 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
|
-
}
|