roavatar-renderer 1.9.4 → 1.9.5
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/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52568,7 +52568,7 @@ class EmitterDesc extends DisposableDesc {
|
|
|
52568
52568
|
const size = this.size.getValue(this.normalizeSizeKeypointTime ? normalizedTime : time2, particle.seed + 0);
|
|
52569
52569
|
const squash = this.squash.getValue(this.normalizeSizeKeypointTime ? normalizedTime : time2, particle.seed + 2);
|
|
52570
52570
|
const opacity = 1 - this.transparency.getValue(normalizedTime, particle.seed + 1);
|
|
52571
|
-
const flipbookFramerate = mathRandom(this.flipbookFramerate.Min, this.flipbookFramerate.Max, new RNG(particle.seed + 67).nextFloat());
|
|
52571
|
+
const flipbookFramerate = mathRandom(this.flipbookFramerate.Min, this.flipbookFramerate.Max, new RNG(particle.seed + 67).nextFloat()) || 1;
|
|
52572
52572
|
let flipbookFrameTime = this.flipbookMode === ParticleFlipbookMode.OneShot ? particle.lifetime / flipbookTotal : 1 / flipbookFramerate;
|
|
52573
52573
|
if (!this.flipbookBlendFrames) flipbookFrameTime = 1e6;
|
|
52574
52574
|
this.result.setMatrixAt(i, particle.getMatrix(renderScene, size, this.orientation, squash));
|