@galacean/engine-core 1.1.0-beta.2 → 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.
- package/dist/main.js +7720 -7225
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +7720 -7225
- package/dist/module.js +7710 -7227
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/2d/atlas/types.d.ts +3 -0
- package/types/2d/enums/SpriteModifyFlags.d.ts +2 -1
- package/types/Background.d.ts +8 -0
- package/types/Component.d.ts +1 -1
- package/types/DisorderedArray.d.ts +1 -1
- package/types/RenderPipeline/MeshRenderElement.d.ts +3 -1
- package/types/RenderPipeline/SpriteElement.d.ts +3 -1
- package/types/RenderPipeline/SpriteMaskElement.d.ts +3 -1
- package/types/RenderPipeline/TextRenderElement.d.ts +3 -1
- package/types/Scene.d.ts +6 -0
- package/types/asset/AssetPromise.d.ts +1 -0
- package/types/asset/ResourceManager.d.ts +0 -1
- package/types/enums/DepthMode.d.ts +8 -0
- package/types/lighting/DirectLight.d.ts +8 -1
- package/types/lighting/Light.d.ts +0 -4
- package/types/lighting/LightManager.d.ts +7 -0
- package/types/lighting/PointLight.d.ts +9 -1
- package/types/lighting/SpotLight.d.ts +12 -1
- package/types/mesh/SkinnedMeshRenderer.d.ts +1 -1
- package/types/particle/ParticleGenerator.d.ts +0 -2
- package/types/particle/enum/ParticleShapeType.d.ts +1 -1
- package/types/particle/index.d.ts +10 -0
- package/types/particle/module/shape/BaseShape.d.ts +4 -7
- package/types/particle/module/shape/BoxShape.d.ts +3 -11
- package/types/particle/module/shape/CircleShape.d.ts +1 -9
- package/types/particle/module/shape/ConeShape.d.ts +1 -9
- package/types/particle/module/shape/HemisphereShape.d.ts +1 -9
- package/types/particle/module/shape/SphereShape.d.ts +1 -9
- package/types/particle/modules/EmissionModule.d.ts +0 -1
- package/types/particle/modules/MainModule.d.ts +7 -6
- package/types/particle/modules/ParticleGeneratorModule.d.ts +0 -1
- package/types/particle/modules/RotationOverLifetimeModule.d.ts +1 -1
- package/types/particle/modules/TextureSheetAnimationModule.d.ts +0 -4
- package/types/particle/moudules/Burst.d.ts +12 -4
- package/types/particle/moudules/Emission.d.ts +27 -11
- package/types/particle/moudules/ParticleCurve.d.ts +1 -17
- package/types/physics/Collider.d.ts +3 -1
- package/types/physics/PhysicsManager.d.ts +2 -4
- 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/xr/IXRDevice.d.ts +26 -0
- package/types/xr/XRManager.d.ts +91 -24
- package/types/xr/feature/XRFeatureManager.d.ts +65 -0
- package/types/xr/feature/XRFeatureType.d.ts +17 -0
- package/types/xr/feature/XRPlatformFeature.d.ts +17 -0
- package/types/xr/index.d.ts +16 -18
- package/types/xr/input/XRCamera.d.ts +28 -0
- package/types/xr/input/XRController.d.ts +38 -0
- package/types/xr/input/XRControllerPoseMode.d.ts +9 -0
- package/types/xr/input/XRInputButton.d.ts +19 -0
- package/types/xr/input/XRInputEvent.d.ts +21 -0
- package/types/xr/input/XRInputManager.d.ts +58 -0
- package/types/xr/input/XRInputType.d.ts +23 -0
- package/types/xr/input/XRTrackedUpdateFlag.d.ts +11 -0
- package/types/xr/input/XRTrackingState.d.ts +11 -0
- package/types/xr/session/XRSessionManager.d.ts +76 -0
- package/types/xr/session/XRSessionState.d.ts +13 -0
- package/types/xr/session/XRSessionType.d.ts +7 -0
- package/types/RenderPipeline/RenderElementX.d.ts +0 -12
- package/types/Ticker.d.ts +0 -30
- package/types/animation/internal/AnimationCurveOwnerLayerData.d.ts +0 -1
- package/types/graphic/PrimitiveVertexBinding.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/modules/ShapeModule.d.ts +0 -9
- package/types/particle/modules/shape/enums/ParticleShapeMultiModeValue.d.ts +0 -9
- package/types/particle/moudules/EmissionModule.d.ts +0 -49
- package/types/particle/moudules/MainModule.d.ts +0 -59
- 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/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/provider/XRProvider.d.ts +0 -19
- package/types/xr/subsystem/XRInputSubsystem.d.ts +0 -5
- package/types/xr/subsystem/XRSubsystem.d.ts +0 -30
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { IXRFrame, IXRSession, IXRFeatureDescriptor } from "@galacean/engine-design";
|
|
2
|
+
import { Engine } from "../../Engine";
|
|
3
|
+
import { XRSessionType } from "./XRSessionType";
|
|
4
|
+
import { XRSessionState } from "./XRSessionState";
|
|
5
|
+
type TXRSessionStateChangeListener = (from: XRSessionState, to: XRSessionState) => void;
|
|
6
|
+
export declare class XRSessionManager {
|
|
7
|
+
protected _engine: Engine;
|
|
8
|
+
protected _session: IXRSession;
|
|
9
|
+
protected _frame: IXRFrame;
|
|
10
|
+
protected _state: XRSessionState;
|
|
11
|
+
private _rhi;
|
|
12
|
+
private _listeners;
|
|
13
|
+
/**
|
|
14
|
+
* Return the current session state.
|
|
15
|
+
*/
|
|
16
|
+
get state(): XRSessionState;
|
|
17
|
+
/**
|
|
18
|
+
* Return the current session.
|
|
19
|
+
*/
|
|
20
|
+
get session(): IXRSession;
|
|
21
|
+
/**
|
|
22
|
+
* Return a list of supported frame rates.(only available in-session)
|
|
23
|
+
*/
|
|
24
|
+
get supportedFrameRate(): Float32Array;
|
|
25
|
+
/**
|
|
26
|
+
* Return the current frame rate as reported by the device.
|
|
27
|
+
*/
|
|
28
|
+
get frameRate(): number;
|
|
29
|
+
/**
|
|
30
|
+
* Returns requestAnimationFrame in XR.
|
|
31
|
+
*/
|
|
32
|
+
get requestAnimationFrame(): (callback: FrameRequestCallback) => number;
|
|
33
|
+
/**
|
|
34
|
+
* Returns cancelAnimationFrame in XR.
|
|
35
|
+
*/
|
|
36
|
+
get cancelAnimationFrame(): (id: number) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Initialize the session.
|
|
39
|
+
* @param mode - The mode of the session
|
|
40
|
+
* @param requestFeatures - The requested features
|
|
41
|
+
* @returns The promise of the session
|
|
42
|
+
*/
|
|
43
|
+
initialize(mode: XRSessionType, requestFeatures: IXRFeatureDescriptor[]): Promise<IXRSession>;
|
|
44
|
+
/**
|
|
45
|
+
* Start the session.
|
|
46
|
+
* @returns The promise of the session
|
|
47
|
+
*/
|
|
48
|
+
start(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Stop the session.
|
|
51
|
+
* @returns The promise of the session
|
|
52
|
+
*/
|
|
53
|
+
stop(): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Destroy the session.
|
|
56
|
+
* @returns The promise of the session
|
|
57
|
+
*/
|
|
58
|
+
destroy(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Add a session state change listener.
|
|
61
|
+
* @param listener - The listener to add
|
|
62
|
+
*/
|
|
63
|
+
addSessionStateChangeListener(listener: TXRSessionStateChangeListener): void;
|
|
64
|
+
/**
|
|
65
|
+
* Remove a session state change listener.
|
|
66
|
+
* @param listener - The listener to remove
|
|
67
|
+
*/
|
|
68
|
+
removeSessionStateChangeListener(listener: TXRSessionStateChangeListener): void;
|
|
69
|
+
/**
|
|
70
|
+
* Remove all session state change listeners.
|
|
71
|
+
*/
|
|
72
|
+
removeAllSessionStateChangeListener(): void;
|
|
73
|
+
constructor(_engine: Engine);
|
|
74
|
+
private _dispatchSessionStateChange;
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Renderer } from "../Renderer";
|
|
2
|
-
import { Primitive } from "../graphic/Primitive";
|
|
3
|
-
import { Material } from "../material/Material";
|
|
4
|
-
import { ShaderPass } from "../shader/ShaderPass";
|
|
5
|
-
import { IPoolElement } from "./IPoolElement";
|
|
6
|
-
export declare class RenderElementX implements IPoolElement {
|
|
7
|
-
shaderPasses: ReadonlyArray<ShaderPass>;
|
|
8
|
-
component: Renderer;
|
|
9
|
-
material: Material;
|
|
10
|
-
primitive: Primitive;
|
|
11
|
-
dispose(): void;
|
|
12
|
-
}
|
package/types/Ticker.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare class Ticker {
|
|
2
|
-
private _vSyncCount;
|
|
3
|
-
private _vSyncCounter;
|
|
4
|
-
private _requestId;
|
|
5
|
-
private _animationLoop;
|
|
6
|
-
private _requestAnimationFrame;
|
|
7
|
-
private _cancelAnimationFrame;
|
|
8
|
-
/**
|
|
9
|
-
* The number of vertical synchronization means the number of vertical blanking for one frame.
|
|
10
|
-
* @remarks 0 means that the vertical synchronization is turned off.
|
|
11
|
-
*/
|
|
12
|
-
get vSyncCount(): number;
|
|
13
|
-
set vSyncCount(value: number);
|
|
14
|
-
get requestAnimationFrame(): (...params: any[]) => any;
|
|
15
|
-
set requestAnimationFrame(func: (...params: any[]) => any);
|
|
16
|
-
get cancelAnimationFrame(): (...params: any[]) => any;
|
|
17
|
-
set cancelAnimationFrame(func: (...params: any[]) => any);
|
|
18
|
-
get animationLoop(): (...params: any[]) => any;
|
|
19
|
-
set animationLoop(func: (...params: any[]) => any);
|
|
20
|
-
/**
|
|
21
|
-
* Pause the engine.
|
|
22
|
-
*/
|
|
23
|
-
pause(): void;
|
|
24
|
-
/**
|
|
25
|
-
* Resume the engine.
|
|
26
|
-
*/
|
|
27
|
-
resume(): void;
|
|
28
|
-
private _onAnimationFrame;
|
|
29
|
-
constructor();
|
|
30
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -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
|
-
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,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,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,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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* High-performance unordered array, delete uses exchange method to improve performance, internal capacity only increases.
|
|
3
|
-
*/
|
|
4
|
-
export declare class DisorderedArray<T> {
|
|
5
|
-
_elements: T[];
|
|
6
|
-
length: number;
|
|
7
|
-
constructor(count?: number);
|
|
8
|
-
add(element: T): void;
|
|
9
|
-
delete(element: T): void;
|
|
10
|
-
get(index: number): T;
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param index
|
|
14
|
-
* @returns The replaced item is used to reset its index.
|
|
15
|
-
*/
|
|
16
|
-
deleteByIndex(index: number): T;
|
|
17
|
-
garbageCollection(): void;
|
|
18
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Used to update tags.
|
|
3
|
-
*/
|
|
4
|
-
export declare abstract class UpdateFlag {
|
|
5
|
-
/**
|
|
6
|
-
* Dispatch.
|
|
7
|
-
* @param bit - Bit
|
|
8
|
-
* @param param - Parameter
|
|
9
|
-
*/
|
|
10
|
-
abstract dispatch(bit?: number, param?: Object): void;
|
|
11
|
-
/**
|
|
12
|
-
* Clear.
|
|
13
|
-
*/
|
|
14
|
-
clearFromManagers(): void;
|
|
15
|
-
/**
|
|
16
|
-
* Destroy.
|
|
17
|
-
*/
|
|
18
|
-
destroy(): void;
|
|
19
|
-
private _removeFromManagers;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|