@galacean/engine-core 2.0.0-alpha.17 → 2.0.0-alpha.18
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 +97 -96
- package/dist/main.js.map +1 -1
- package/dist/module.js +97 -96
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/particle/modules/LimitVelocityOverLifetimeModule.d.ts +33 -32
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/engine-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.18",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"types/**/*"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@galacean/engine-math": "2.0.0-alpha.
|
|
21
|
+
"@galacean/engine-math": "2.0.0-alpha.18"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@galacean/engine-design": "2.0.0-alpha.
|
|
24
|
+
"@galacean/engine-design": "2.0.0-alpha.18"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"b:types": "tsc"
|
|
@@ -10,45 +10,45 @@ import { ParticleGeneratorModule } from "./ParticleGeneratorModule";
|
|
|
10
10
|
export declare class LimitVelocityOverLifetimeModule extends ParticleGeneratorModule {
|
|
11
11
|
static readonly _enabledMacro: ShaderMacro;
|
|
12
12
|
static readonly _separateAxesMacro: ShaderMacro;
|
|
13
|
-
static readonly
|
|
14
|
-
static readonly
|
|
15
|
-
static readonly
|
|
13
|
+
static readonly _speedConstantModeMacro: ShaderMacro;
|
|
14
|
+
static readonly _speedCurveModeMacro: ShaderMacro;
|
|
15
|
+
static readonly _speedIsRandomMacro: ShaderMacro;
|
|
16
16
|
static readonly _dragCurveModeMacro: ShaderMacro;
|
|
17
17
|
static readonly _dragIsRandomMacro: ShaderMacro;
|
|
18
18
|
static readonly _multiplyDragBySizeMacro: ShaderMacro;
|
|
19
19
|
static readonly _multiplyDragByVelocityMacro: ShaderMacro;
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
20
|
+
static readonly _speedMaxConstProperty: ShaderProperty;
|
|
21
|
+
static readonly _speedMinConstProperty: ShaderProperty;
|
|
22
|
+
static readonly _speedMaxCurveProperty: ShaderProperty;
|
|
23
|
+
static readonly _speedMinCurveProperty: ShaderProperty;
|
|
24
|
+
static readonly _speedMaxConstVecProperty: ShaderProperty;
|
|
25
|
+
static readonly _speedMinConstVecProperty: ShaderProperty;
|
|
26
|
+
static readonly _speedXMaxCurveProperty: ShaderProperty;
|
|
27
|
+
static readonly _speedXMinCurveProperty: ShaderProperty;
|
|
28
|
+
static readonly _speedYMaxCurveProperty: ShaderProperty;
|
|
29
|
+
static readonly _speedYMinCurveProperty: ShaderProperty;
|
|
30
|
+
static readonly _speedZMaxCurveProperty: ShaderProperty;
|
|
31
|
+
static readonly _speedZMinCurveProperty: ShaderProperty;
|
|
32
32
|
static readonly _dampenProperty: ShaderProperty;
|
|
33
33
|
static readonly _dragConstantProperty: ShaderProperty;
|
|
34
34
|
static readonly _dragMaxCurveProperty: ShaderProperty;
|
|
35
35
|
static readonly _dragMinCurveProperty: ShaderProperty;
|
|
36
36
|
static readonly _spaceProperty: ShaderProperty;
|
|
37
|
-
private
|
|
38
|
-
private
|
|
37
|
+
private _speedMinConstantVec;
|
|
38
|
+
private _speedMaxConstantVec;
|
|
39
39
|
private _dragConstantVec;
|
|
40
40
|
private _enabledModuleMacro;
|
|
41
41
|
private _separateAxesCachedMacro;
|
|
42
|
-
private
|
|
43
|
-
private
|
|
42
|
+
private _speedModeMacro;
|
|
43
|
+
private _speedRandomMacro;
|
|
44
44
|
private _dragCurveCachedMacro;
|
|
45
45
|
private _dragRandomCachedMacro;
|
|
46
46
|
private _dragSizeMacro;
|
|
47
47
|
private _dragVelocityMacro;
|
|
48
48
|
private _separateAxes;
|
|
49
|
-
private
|
|
50
|
-
private
|
|
51
|
-
private
|
|
49
|
+
private _speedX;
|
|
50
|
+
private _speedY;
|
|
51
|
+
private _speedZ;
|
|
52
52
|
private _dampen;
|
|
53
53
|
private _drag;
|
|
54
54
|
private _multiplyDragByParticleSize;
|
|
@@ -62,23 +62,23 @@ export declare class LimitVelocityOverLifetimeModule extends ParticleGeneratorMo
|
|
|
62
62
|
/**
|
|
63
63
|
* Speed limit when separateAxes is false.
|
|
64
64
|
*/
|
|
65
|
-
get
|
|
66
|
-
set
|
|
65
|
+
get speed(): ParticleCompositeCurve;
|
|
66
|
+
set speed(value: ParticleCompositeCurve);
|
|
67
67
|
/**
|
|
68
68
|
* Speed limit for the x-axis (or overall limit when separateAxes is false).
|
|
69
69
|
*/
|
|
70
|
-
get
|
|
71
|
-
set
|
|
70
|
+
get speedX(): ParticleCompositeCurve;
|
|
71
|
+
set speedX(value: ParticleCompositeCurve);
|
|
72
72
|
/**
|
|
73
73
|
* Speed limit for the y-axis.
|
|
74
74
|
*/
|
|
75
|
-
get
|
|
76
|
-
set
|
|
75
|
+
get speedY(): ParticleCompositeCurve;
|
|
76
|
+
set speedY(value: ParticleCompositeCurve);
|
|
77
77
|
/**
|
|
78
78
|
* Speed limit for the z-axis.
|
|
79
79
|
*/
|
|
80
|
-
get
|
|
81
|
-
set
|
|
80
|
+
get speedZ(): ParticleCompositeCurve;
|
|
81
|
+
set speedZ(value: ParticleCompositeCurve);
|
|
82
82
|
/**
|
|
83
83
|
* Controls how much the velocity is dampened when it exceeds the limit.
|
|
84
84
|
* @remarks Value is clamped to [0, 1]. 0 means no damping, 1 means full damping.
|
|
@@ -102,6 +102,7 @@ export declare class LimitVelocityOverLifetimeModule extends ParticleGeneratorMo
|
|
|
102
102
|
set multiplyDragByParticleVelocity(value: boolean);
|
|
103
103
|
/**
|
|
104
104
|
* Specifies if the velocity limits are in local space or world space.
|
|
105
|
+
* @remarks Only takes effect when 'separateAxes' is enabled.
|
|
105
106
|
*/
|
|
106
107
|
get space(): ParticleSimulationSpace;
|
|
107
108
|
set space(value: ParticleSimulationSpace);
|
|
@@ -112,7 +113,7 @@ export declare class LimitVelocityOverLifetimeModule extends ParticleGeneratorMo
|
|
|
112
113
|
get enabled(): boolean;
|
|
113
114
|
set enabled(value: boolean);
|
|
114
115
|
constructor(generator: ParticleGenerator);
|
|
115
|
-
private
|
|
116
|
-
private
|
|
116
|
+
private _uploadScalarSpeed;
|
|
117
|
+
private _uploadSeparateAxisSpeeds;
|
|
117
118
|
private _uploadDrag;
|
|
118
119
|
}
|