@galacean/engine-core 2.0.0-alpha.28 → 2.0.0-alpha.29

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 CHANGED
@@ -35813,9 +35813,9 @@ __decorate([
35813
35813
  /**
35814
35814
  * Control how Particle Generator apply transform scale.
35815
35815
  */ var ParticleScaleMode = /*#__PURE__*/ function(ParticleScaleMode) {
35816
- /** Scale the Particle Generator using the entire transform hierarchy. */ ParticleScaleMode[ParticleScaleMode["Hierarchy"] = 0] = "Hierarchy";
35817
- /** Scale the Particle Generator using only its own transform scale. (Ignores parent scale). */ ParticleScaleMode[ParticleScaleMode["Local"] = 1] = "Local";
35818
- /** Only apply transform scale to the shape component, which controls where particles are spawned, but does not affect their size or movement. */ ParticleScaleMode[ParticleScaleMode["World"] = 2] = "World";
35816
+ /** Scale the Particle Generator using the world scale, including all parent transforms. */ ParticleScaleMode[ParticleScaleMode["World"] = 0] = "World";
35817
+ /** Scale the Particle Generator using only its own transform scale, ignoring parent scale. */ ParticleScaleMode[ParticleScaleMode["Local"] = 1] = "Local";
35818
+ /** Scale only the emitter shape positions; particle size and movement are unaffected. */ ParticleScaleMode[ParticleScaleMode["Shape"] = 2] = "Shape";
35819
35819
  return ParticleScaleMode;
35820
35820
  }({});
35821
35821
 
@@ -35867,8 +35867,8 @@ var MainModule = /*#__PURE__*/ function() {
35867
35867
  */ _proto._getPositionScale = function _getPositionScale() {
35868
35868
  var transform = this._generator._renderer.entity.transform;
35869
35869
  switch(this.scalingMode){
35870
- case ParticleScaleMode.Hierarchy:
35871
35870
  case ParticleScaleMode.World:
35871
+ case ParticleScaleMode.Shape:
35872
35872
  return transform.lossyWorldScale;
35873
35873
  case ParticleScaleMode.Local:
35874
35874
  return transform.scale;
@@ -35892,7 +35892,7 @@ var MainModule = /*#__PURE__*/ function() {
35892
35892
  throw new Error("ParticleRenderer: SimulationSpace value is invalid.");
35893
35893
  }
35894
35894
  switch(this.scalingMode){
35895
- case ParticleScaleMode.Hierarchy:
35895
+ case ParticleScaleMode.World:
35896
35896
  var scale = transform.lossyWorldScale;
35897
35897
  shaderData.setVector3(MainModule._positionScale, scale);
35898
35898
  shaderData.setVector3(MainModule._sizeScale, scale);
@@ -35902,7 +35902,7 @@ var MainModule = /*#__PURE__*/ function() {
35902
35902
  shaderData.setVector3(MainModule._positionScale, scale);
35903
35903
  shaderData.setVector3(MainModule._sizeScale, scale);
35904
35904
  break;
35905
- case ParticleScaleMode.World:
35905
+ case ParticleScaleMode.Shape:
35906
35906
  shaderData.setVector3(MainModule._positionScale, transform.lossyWorldScale);
35907
35907
  shaderData.setVector3(MainModule._sizeScale, MainModule._vector3One);
35908
35908
  break;