|
@@ -150098,7 +150098,7 @@ var GPUParticleSystem = /** @class */ (function (_super) {
|
|
|
var custom = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, this._customEffect);
|
|
|
var result = new GPUParticleSystem(name, { capacity: this._capacity, randomTextureSize: this._randomTextureSize }, this._scene);
|
|
|
result._customEffect = custom;
|
|
|
- _Misc_deepCopier__WEBPACK_IMPORTED_MODULE_18__["DeepCopier"].DeepCopy(this, result, ["particles", "customShader", "noiseTexture", "particleTexture", "onDisposeObservable"]);
|
|
|
+ _Misc_deepCopier__WEBPACK_IMPORTED_MODULE_18__["DeepCopier"].DeepCopy(this, result, ["particles", "customShader", "noiseTexture", "particleTexture", "onDisposeObservable", "vertexShaderName"]);
|
|
|
if (newEmitter === undefined) {
|
|
|
newEmitter = this.emitter;
|
|
|
}
|
|
@@ -152548,7 +152548,7 @@ var ParticleSystem = /** @class */ (function (_super) {
|
|
|
var result = new ParticleSystem(name, this._capacity, this._scene, custom[0]);
|
|
|
result.customShader = program;
|
|
|
result._customEffect = custom;
|
|
|
- _Misc_deepCopier__WEBPACK_IMPORTED_MODULE_21__["DeepCopier"].DeepCopy(this, result, ["particles", "customShader", "noiseTexture", "particleTexture", "onDisposeObservable"]);
|
|
|
+ _Misc_deepCopier__WEBPACK_IMPORTED_MODULE_21__["DeepCopier"].DeepCopy(this, result, ["particles", "customShader", "noiseTexture", "particleTexture", "onDisposeObservable", "vertexShaderName"]);
|
|
|
if (newEmitter === undefined) {
|
|
|
newEmitter = this.emitter;
|
|
|
}
|
|
@@ -192841,6 +192841,12 @@ var Scene = /** @class */ (function (_super) {
|
|
|
mesh.computeWorldMatrix();
|
|
|
}
|
|
|
}
|
|
|
+ if (this._activeParticleSystems) {
|
|
|
+ var psLength = this._activeParticleSystems.length;
|
|
|
+ for (var i = 0; i < psLength; i++) {
|
|
|
+ this._activeParticleSystems.data[i].animate();
|
|
|
+ }
|
|
|
+ }
|
|
|
return;
|
|
|
}
|
|
|
if (!this.activeCamera) {
|