roavatar-renderer 1.9.8 → 1.9.9
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 +6 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60741,7 +60741,8 @@ const EmitterShaderType = {
|
|
|
60741
60741
|
const EmitterBlendType = {
|
|
60742
60742
|
"PremultipliedAdditive": 0,
|
|
60743
60743
|
"Additive": 1,
|
|
60744
|
-
"Normal": 2
|
|
60744
|
+
"Normal": 2,
|
|
60745
|
+
"Add": 3
|
|
60745
60746
|
};
|
|
60746
60747
|
class EmitterDesc extends DisposableDesc {
|
|
60747
60748
|
renderScene;
|
|
@@ -60935,9 +60936,9 @@ class EmitterDesc extends DisposableDesc {
|
|
|
60935
60936
|
lights: true,
|
|
60936
60937
|
premultipliedAlpha: true,
|
|
60937
60938
|
toneMapped: true,
|
|
60938
|
-
blending: this.blending === EmitterBlendType.PremultipliedAdditive ? CustomBlending : this.blending === EmitterBlendType.Additive ? AdditiveBlending : NormalBlending,
|
|
60939
|
+
blending: this.blending === EmitterBlendType.PremultipliedAdditive || this.blending === EmitterBlendType.Add ? CustomBlending : this.blending === EmitterBlendType.Additive ? AdditiveBlending : NormalBlending,
|
|
60939
60940
|
blendSrc: OneFactor,
|
|
60940
|
-
blendDst: OneMinusSrcAlphaFactor,
|
|
60941
|
+
blendDst: this.blending === EmitterBlendType.Add ? OneFactor : OneMinusSrcAlphaFactor,
|
|
60941
60942
|
blendEquation: AddEquation,
|
|
60942
60943
|
blendSrcAlpha: OneMinusDstAlphaFactor,
|
|
60943
60944
|
blendDstAlpha: OneFactor,
|
|
@@ -61340,7 +61341,7 @@ class EmitterGroupDesc extends RenderDesc {
|
|
|
61340
61341
|
localAcceleration: new Vector3(0, 0.5 * (1 * size * size / 4 + 0.7 * heat), 0),
|
|
61341
61342
|
rotation: new NumberRange(-90, 90),
|
|
61342
61343
|
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.
|
|
61344
|
+
speed: new NumberRange(0.4 * (0.1 * size * size + 0.2 * heat), 0.4 * (0.1 * size * size + 0.2 * heat)),
|
|
61344
61345
|
rotationSpeed: new NumberRange(100, 100),
|
|
61345
61346
|
spreadAngle: new Vector2(10, 10),
|
|
61346
61347
|
rate: 65,
|
|
@@ -61349,7 +61350,7 @@ class EmitterGroupDesc extends RenderDesc {
|
|
|
61349
61350
|
timeScale,
|
|
61350
61351
|
color: ColorSequence.fromColor(secondaryColor),
|
|
61351
61352
|
shader: EmitterShaderType.BasicParticle,
|
|
61352
|
-
blending: EmitterBlendType.
|
|
61353
|
+
blending: EmitterBlendType.Add
|
|
61353
61354
|
}));
|
|
61354
61355
|
}
|
|
61355
61356
|
fromSmoke(child) {
|