@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/engine-core",
3
- "version": "2.0.0-alpha.17",
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.17"
21
+ "@galacean/engine-math": "2.0.0-alpha.18"
22
22
  },
23
23
  "devDependencies": {
24
- "@galacean/engine-design": "2.0.0-alpha.17"
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 _limitConstantModeMacro: ShaderMacro;
14
- static readonly _limitCurveModeMacro: ShaderMacro;
15
- static readonly _limitIsRandomMacro: ShaderMacro;
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 _limitMaxConstProperty: ShaderProperty;
21
- static readonly _limitMinConstProperty: ShaderProperty;
22
- static readonly _limitMaxCurveProperty: ShaderProperty;
23
- static readonly _limitMinCurveProperty: ShaderProperty;
24
- static readonly _limitMaxConstVecProperty: ShaderProperty;
25
- static readonly _limitMinConstVecProperty: ShaderProperty;
26
- static readonly _limitXMaxCurveProperty: ShaderProperty;
27
- static readonly _limitXMinCurveProperty: ShaderProperty;
28
- static readonly _limitYMaxCurveProperty: ShaderProperty;
29
- static readonly _limitYMinCurveProperty: ShaderProperty;
30
- static readonly _limitZMaxCurveProperty: ShaderProperty;
31
- static readonly _limitZMinCurveProperty: ShaderProperty;
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 _limitMinConstantVec;
38
- private _limitMaxConstantVec;
37
+ private _speedMinConstantVec;
38
+ private _speedMaxConstantVec;
39
39
  private _dragConstantVec;
40
40
  private _enabledModuleMacro;
41
41
  private _separateAxesCachedMacro;
42
- private _limitModeMacro;
43
- private _limitRandomMacro;
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 _limitX;
50
- private _limitY;
51
- private _limitZ;
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 limit(): ParticleCompositeCurve;
66
- set limit(value: ParticleCompositeCurve);
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 limitX(): ParticleCompositeCurve;
71
- set limitX(value: ParticleCompositeCurve);
70
+ get speedX(): ParticleCompositeCurve;
71
+ set speedX(value: ParticleCompositeCurve);
72
72
  /**
73
73
  * Speed limit for the y-axis.
74
74
  */
75
- get limitY(): ParticleCompositeCurve;
76
- set limitY(value: ParticleCompositeCurve);
75
+ get speedY(): ParticleCompositeCurve;
76
+ set speedY(value: ParticleCompositeCurve);
77
77
  /**
78
78
  * Speed limit for the z-axis.
79
79
  */
80
- get limitZ(): ParticleCompositeCurve;
81
- set limitZ(value: ParticleCompositeCurve);
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 _uploadScalarLimit;
116
- private _uploadSeparateAxisLimits;
116
+ private _uploadScalarSpeed;
117
+ private _uploadSeparateAxisSpeeds;
117
118
  private _uploadDrag;
118
119
  }