@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.
package/dist/browser.js CHANGED
@@ -40437,9 +40437,9 @@
40437
40437
  /**
40438
40438
  * Control how Particle Generator apply transform scale.
40439
40439
  */ var ParticleScaleMode = /*#__PURE__*/ function(ParticleScaleMode) {
40440
- /** Scale the Particle Generator using the entire transform hierarchy. */ ParticleScaleMode[ParticleScaleMode["Hierarchy"] = 0] = "Hierarchy";
40441
- /** Scale the Particle Generator using only its own transform scale. (Ignores parent scale). */ ParticleScaleMode[ParticleScaleMode["Local"] = 1] = "Local";
40442
- /** 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";
40440
+ /** Scale the Particle Generator using the world scale, including all parent transforms. */ ParticleScaleMode[ParticleScaleMode["World"] = 0] = "World";
40441
+ /** Scale the Particle Generator using only its own transform scale, ignoring parent scale. */ ParticleScaleMode[ParticleScaleMode["Local"] = 1] = "Local";
40442
+ /** Scale only the emitter shape positions; particle size and movement are unaffected. */ ParticleScaleMode[ParticleScaleMode["Shape"] = 2] = "Shape";
40443
40443
  return ParticleScaleMode;
40444
40444
  }({});
40445
40445
  var MainModule = /*#__PURE__*/ function() {
@@ -40490,8 +40490,8 @@
40490
40490
  */ _proto._getPositionScale = function _getPositionScale() {
40491
40491
  var transform = this._generator._renderer.entity.transform;
40492
40492
  switch(this.scalingMode){
40493
- case ParticleScaleMode.Hierarchy:
40494
40493
  case ParticleScaleMode.World:
40494
+ case ParticleScaleMode.Shape:
40495
40495
  return transform.lossyWorldScale;
40496
40496
  case ParticleScaleMode.Local:
40497
40497
  return transform.scale;
@@ -40515,7 +40515,7 @@
40515
40515
  throw new Error("ParticleRenderer: SimulationSpace value is invalid.");
40516
40516
  }
40517
40517
  switch(this.scalingMode){
40518
- case ParticleScaleMode.Hierarchy:
40518
+ case ParticleScaleMode.World:
40519
40519
  var scale = transform.lossyWorldScale;
40520
40520
  shaderData.setVector3(MainModule._positionScale, scale);
40521
40521
  shaderData.setVector3(MainModule._sizeScale, scale);
@@ -40525,7 +40525,7 @@
40525
40525
  shaderData.setVector3(MainModule._positionScale, scale);
40526
40526
  shaderData.setVector3(MainModule._sizeScale, scale);
40527
40527
  break;
40528
- case ParticleScaleMode.World:
40528
+ case ParticleScaleMode.Shape:
40529
40529
  shaderData.setVector3(MainModule._positionScale, transform.lossyWorldScale);
40530
40530
  shaderData.setVector3(MainModule._sizeScale, MainModule._vector3One);
40531
40531
  break;
@@ -54857,7 +54857,7 @@
54857
54857
  ], EXT_texture_webp);
54858
54858
 
54859
54859
  //@ts-ignore
54860
- var version = "2.0.0-alpha.28";
54860
+ var version = "2.0.0-alpha.29";
54861
54861
  console.log("Galacean Engine Version: " + version);
54862
54862
  for(var key in CoreObjects){
54863
54863
  Loader.registerClass(key, CoreObjects[key]);