@galacean/engine 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.
@@ -40431,9 +40431,9 @@ __decorate$1([
40431
40431
  /**
40432
40432
  * Control how Particle Generator apply transform scale.
40433
40433
  */ var ParticleScaleMode = /*#__PURE__*/ function(ParticleScaleMode) {
40434
- /** Scale the Particle Generator using the entire transform hierarchy. */ ParticleScaleMode[ParticleScaleMode["Hierarchy"] = 0] = "Hierarchy";
40435
- /** Scale the Particle Generator using only its own transform scale. (Ignores parent scale). */ ParticleScaleMode[ParticleScaleMode["Local"] = 1] = "Local";
40436
- /** 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";
40434
+ /** Scale the Particle Generator using the world scale, including all parent transforms. */ ParticleScaleMode[ParticleScaleMode["World"] = 0] = "World";
40435
+ /** Scale the Particle Generator using only its own transform scale, ignoring parent scale. */ ParticleScaleMode[ParticleScaleMode["Local"] = 1] = "Local";
40436
+ /** Scale only the emitter shape positions; particle size and movement are unaffected. */ ParticleScaleMode[ParticleScaleMode["Shape"] = 2] = "Shape";
40437
40437
  return ParticleScaleMode;
40438
40438
  }({});
40439
40439
  var MainModule = /*#__PURE__*/ function() {
@@ -40484,8 +40484,8 @@ var MainModule = /*#__PURE__*/ function() {
40484
40484
  */ _proto._getPositionScale = function _getPositionScale() {
40485
40485
  var transform = this._generator._renderer.entity.transform;
40486
40486
  switch(this.scalingMode){
40487
- case ParticleScaleMode.Hierarchy:
40488
40487
  case ParticleScaleMode.World:
40488
+ case ParticleScaleMode.Shape:
40489
40489
  return transform.lossyWorldScale;
40490
40490
  case ParticleScaleMode.Local:
40491
40491
  return transform.scale;
@@ -40509,7 +40509,7 @@ var MainModule = /*#__PURE__*/ function() {
40509
40509
  throw new Error("ParticleRenderer: SimulationSpace value is invalid.");
40510
40510
  }
40511
40511
  switch(this.scalingMode){
40512
- case ParticleScaleMode.Hierarchy:
40512
+ case ParticleScaleMode.World:
40513
40513
  var scale = transform.lossyWorldScale;
40514
40514
  shaderData.setVector3(MainModule._positionScale, scale);
40515
40515
  shaderData.setVector3(MainModule._sizeScale, scale);
@@ -40519,7 +40519,7 @@ var MainModule = /*#__PURE__*/ function() {
40519
40519
  shaderData.setVector3(MainModule._positionScale, scale);
40520
40520
  shaderData.setVector3(MainModule._sizeScale, scale);
40521
40521
  break;
40522
- case ParticleScaleMode.World:
40522
+ case ParticleScaleMode.Shape:
40523
40523
  shaderData.setVector3(MainModule._positionScale, transform.lossyWorldScale);
40524
40524
  shaderData.setVector3(MainModule._sizeScale, MainModule._vector3One);
40525
40525
  break;
@@ -54851,7 +54851,7 @@ EXT_texture_webp = __decorate([
54851
54851
  ], EXT_texture_webp);
54852
54852
 
54853
54853
  //@ts-ignore
54854
- var version = "2.0.0-alpha.28";
54854
+ var version = "2.0.0-alpha.29";
54855
54855
  console.log("Galacean Engine Version: " + version);
54856
54856
  for(var key in CoreObjects){
54857
54857
  Loader.registerClass(key, CoreObjects[key]);