roavatar-renderer 1.9.7 → 1.9.8
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 +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61062,7 +61062,7 @@ class EmitterDesc extends DisposableDesc {
|
|
|
61062
61062
|
const normalizedTime = particle.time / particle.lifetime;
|
|
61063
61063
|
const color2 = this.color.getValue(normalizedTime);
|
|
61064
61064
|
const linearColor = new Color(color2.R, color2.G, color2.B).convertSRGBToLinear();
|
|
61065
|
-
const size = this.size.getValue(this.normalizeSizeKeypointTime ? normalizedTime : time2, particle.seed + 0);
|
|
61065
|
+
const size = Math.max(this.size.getValue(this.normalizeSizeKeypointTime ? normalizedTime : time2, particle.seed + 0), 0);
|
|
61066
61066
|
const squash = this.squash.getValue(this.normalizeSizeKeypointTime ? normalizedTime : time2, particle.seed + 2);
|
|
61067
61067
|
const opacity = 1 - this.transparency.getValue(normalizedTime, particle.seed + 1);
|
|
61068
61068
|
const flipbookFramerate = mathRandom(this.flipbookFramerate.Min, this.flipbookFramerate.Max, new RNG(particle.seed + 67).nextFloat()) || 1;
|
|
@@ -61318,7 +61318,7 @@ class EmitterGroupDesc extends RenderDesc {
|
|
|
61318
61318
|
drag: 0.4,
|
|
61319
61319
|
localAcceleration: new Vector3(0, 0.5 * (1 * size * size / 4 + 0.7 * heat), 0),
|
|
61320
61320
|
rotation: new NumberRange(-90, 90),
|
|
61321
|
-
size: new NumberSequence([new NumberSequenceKeypoint(0, 1.1 * size, 0), new NumberSequenceKeypoint(2,
|
|
61321
|
+
size: new NumberSequence([new NumberSequenceKeypoint(0, 1.1 * size, 0), new NumberSequenceKeypoint(2, 1.1 * size - 0.8 * size * 2, 0)]),
|
|
61322
61322
|
speed: new NumberRange(0.4 * (0.2 * size * size + 0.2 * heat), 0.4 * (0.2 * size * size + 0.2 * heat)),
|
|
61323
61323
|
rotationSpeed: new NumberRange(100, 100),
|
|
61324
61324
|
spreadAngle: new Vector2(10, 10),
|
|
@@ -61339,12 +61339,12 @@ class EmitterGroupDesc extends RenderDesc {
|
|
|
61339
61339
|
drag: 0.4,
|
|
61340
61340
|
localAcceleration: new Vector3(0, 0.5 * (1 * size * size / 4 + 0.7 * heat), 0),
|
|
61341
61341
|
rotation: new NumberRange(-90, 90),
|
|
61342
|
-
size: new NumberSequence([new NumberSequenceKeypoint(0,
|
|
61343
|
-
speed: new NumberRange(0.4 * (0.
|
|
61342
|
+
size: new NumberSequence([new NumberSequenceKeypoint(0, sparkSize, 0), new NumberSequenceKeypoint(2, sparkSize - sparkSize / 2 * 2, 0)]),
|
|
61343
|
+
speed: new NumberRange(0.4 * (0.1 * size * size + 0.2 * heat), 0.4 * (0.2 * size * size + 0.2 * heat)),
|
|
61344
61344
|
rotationSpeed: new NumberRange(100, 100),
|
|
61345
61345
|
spreadAngle: new Vector2(10, 10),
|
|
61346
61346
|
rate: 65,
|
|
61347
|
-
lifetime: new NumberRange(1
|
|
61347
|
+
lifetime: new NumberRange(1, 2),
|
|
61348
61348
|
normalizeSizeKeypointTime: false,
|
|
61349
61349
|
timeScale,
|
|
61350
61350
|
color: ColorSequence.fromColor(secondaryColor),
|