@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/module.js CHANGED
@@ -35809,9 +35809,9 @@ __decorate([
35809
35809
  /**
35810
35810
  * Control how Particle Generator apply transform scale.
35811
35811
  */ var ParticleScaleMode = /*#__PURE__*/ function(ParticleScaleMode) {
35812
- /** Scale the Particle Generator using the entire transform hierarchy. */ ParticleScaleMode[ParticleScaleMode["Hierarchy"] = 0] = "Hierarchy";
35813
- /** Scale the Particle Generator using only its own transform scale. (Ignores parent scale). */ ParticleScaleMode[ParticleScaleMode["Local"] = 1] = "Local";
35814
- /** 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";
35812
+ /** Scale the Particle Generator using the world scale, including all parent transforms. */ ParticleScaleMode[ParticleScaleMode["World"] = 0] = "World";
35813
+ /** Scale the Particle Generator using only its own transform scale, ignoring parent scale. */ ParticleScaleMode[ParticleScaleMode["Local"] = 1] = "Local";
35814
+ /** Scale only the emitter shape positions; particle size and movement are unaffected. */ ParticleScaleMode[ParticleScaleMode["Shape"] = 2] = "Shape";
35815
35815
  return ParticleScaleMode;
35816
35816
  }({});
35817
35817
 
@@ -35863,8 +35863,8 @@ var MainModule = /*#__PURE__*/ function() {
35863
35863
  */ _proto._getPositionScale = function _getPositionScale() {
35864
35864
  var transform = this._generator._renderer.entity.transform;
35865
35865
  switch(this.scalingMode){
35866
- case ParticleScaleMode.Hierarchy:
35867
35866
  case ParticleScaleMode.World:
35867
+ case ParticleScaleMode.Shape:
35868
35868
  return transform.lossyWorldScale;
35869
35869
  case ParticleScaleMode.Local:
35870
35870
  return transform.scale;
@@ -35888,7 +35888,7 @@ var MainModule = /*#__PURE__*/ function() {
35888
35888
  throw new Error("ParticleRenderer: SimulationSpace value is invalid.");
35889
35889
  }
35890
35890
  switch(this.scalingMode){
35891
- case ParticleScaleMode.Hierarchy:
35891
+ case ParticleScaleMode.World:
35892
35892
  var scale = transform.lossyWorldScale;
35893
35893
  shaderData.setVector3(MainModule._positionScale, scale);
35894
35894
  shaderData.setVector3(MainModule._sizeScale, scale);
@@ -35898,7 +35898,7 @@ var MainModule = /*#__PURE__*/ function() {
35898
35898
  shaderData.setVector3(MainModule._positionScale, scale);
35899
35899
  shaderData.setVector3(MainModule._sizeScale, scale);
35900
35900
  break;
35901
- case ParticleScaleMode.World:
35901
+ case ParticleScaleMode.Shape:
35902
35902
  shaderData.setVector3(MainModule._positionScale, transform.lossyWorldScale);
35903
35903
  shaderData.setVector3(MainModule._sizeScale, MainModule._vector3One);
35904
35904
  break;