@vfx-js/effects 1.4.3 → 1.4.4
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/lib/cjs/ascii.js +63 -73
- package/lib/cjs/ascii.js.map +1 -1
- package/lib/cjs/bad-jpeg.js +7 -5
- package/lib/cjs/bad-jpeg.js.map +1 -1
- package/lib/cjs/bloom.js +68 -78
- package/lib/cjs/bloom.js.map +1 -1
- package/lib/cjs/chromatic.js +1 -0
- package/lib/cjs/chromatic.js.map +1 -1
- package/lib/cjs/colored-edges.js +1 -0
- package/lib/cjs/colored-edges.js.map +1 -1
- package/lib/cjs/datamosh.js +173 -183
- package/lib/cjs/datamosh.js.map +1 -1
- package/lib/cjs/dither.js +6 -3
- package/lib/cjs/dither.js.map +1 -1
- package/lib/cjs/duotone.js +4 -2
- package/lib/cjs/duotone.js.map +1 -1
- package/lib/cjs/fluid.js +62 -74
- package/lib/cjs/fluid.js.map +1 -1
- package/lib/cjs/glitch.js +1 -0
- package/lib/cjs/glitch.js.map +1 -1
- package/lib/cjs/gradient-map.js +4 -1
- package/lib/cjs/gradient-map.js.map +1 -1
- package/lib/cjs/halftone.js +3 -0
- package/lib/cjs/halftone.js.map +1 -1
- package/lib/cjs/hue-shift.js +1 -0
- package/lib/cjs/hue-shift.js.map +1 -1
- package/lib/cjs/jpeg-glitch.js +273 -277
- package/lib/cjs/jpeg-glitch.js.map +1 -1
- package/lib/cjs/light-streak.js +34 -47
- package/lib/cjs/light-streak.js.map +1 -1
- package/lib/cjs/matrix.js +48 -59
- package/lib/cjs/matrix.js.map +1 -1
- package/lib/cjs/package.json +2 -1
- package/lib/cjs/particle-explode.js +122 -128
- package/lib/cjs/particle-explode.js.map +1 -1
- package/lib/cjs/particle.js +253 -258
- package/lib/cjs/particle.js.map +1 -1
- package/lib/cjs/pattern-refraction.js +1 -0
- package/lib/cjs/pattern-refraction.js.map +1 -1
- package/lib/cjs/pixel-stretch.js +1 -0
- package/lib/cjs/pixel-stretch.js.map +1 -1
- package/lib/cjs/pixelate.js +1 -0
- package/lib/cjs/pixelate.js.map +1 -1
- package/lib/cjs/pixelsort.js +102 -121
- package/lib/cjs/pixelsort.js.map +1 -1
- package/lib/cjs/rainbow.js +1 -0
- package/lib/cjs/rainbow.js.map +1 -1
- package/lib/cjs/rgb-glitch.js +1 -0
- package/lib/cjs/rgb-glitch.js.map +1 -1
- package/lib/cjs/rgb-shift.js +1 -0
- package/lib/cjs/rgb-shift.js.map +1 -1
- package/lib/cjs/scanline.js +1 -0
- package/lib/cjs/scanline.js.map +1 -1
- package/lib/cjs/sinewave.js +1 -0
- package/lib/cjs/sinewave.js.map +1 -1
- package/lib/cjs/slice-shift.js +1 -0
- package/lib/cjs/slice-shift.js.map +1 -1
- package/lib/cjs/tile-pixelate.js +4 -1
- package/lib/cjs/tile-pixelate.js.map +1 -1
- package/lib/cjs/tritone.js +5 -2
- package/lib/cjs/tritone.js.map +1 -1
- package/lib/cjs/vignette.js +1 -0
- package/lib/cjs/vignette.js.map +1 -1
- package/lib/cjs/voronoi.js +4 -1
- package/lib/cjs/voronoi.js.map +1 -1
- package/lib/cjs/warp.js +1 -0
- package/lib/cjs/warp.js.map +1 -1
- package/lib/esm/ascii.js +63 -73
- package/lib/esm/ascii.js.map +1 -1
- package/lib/esm/bad-jpeg.js +7 -5
- package/lib/esm/bad-jpeg.js.map +1 -1
- package/lib/esm/bloom.js +67 -77
- package/lib/esm/bloom.js.map +1 -1
- package/lib/esm/chromatic.js +1 -0
- package/lib/esm/chromatic.js.map +1 -1
- package/lib/esm/colored-edges.js +1 -0
- package/lib/esm/colored-edges.js.map +1 -1
- package/lib/esm/datamosh.js +172 -182
- package/lib/esm/datamosh.js.map +1 -1
- package/lib/esm/dither.js +6 -3
- package/lib/esm/dither.js.map +1 -1
- package/lib/esm/duotone.js +4 -2
- package/lib/esm/duotone.js.map +1 -1
- package/lib/esm/fluid.js +62 -74
- package/lib/esm/fluid.js.map +1 -1
- package/lib/esm/glitch.js +1 -0
- package/lib/esm/glitch.js.map +1 -1
- package/lib/esm/gradient-map.js +4 -1
- package/lib/esm/gradient-map.js.map +1 -1
- package/lib/esm/halftone.js +3 -0
- package/lib/esm/halftone.js.map +1 -1
- package/lib/esm/hue-shift.js +1 -0
- package/lib/esm/hue-shift.js.map +1 -1
- package/lib/esm/jpeg-glitch.js +272 -276
- package/lib/esm/jpeg-glitch.js.map +1 -1
- package/lib/esm/light-streak.js +34 -47
- package/lib/esm/light-streak.js.map +1 -1
- package/lib/esm/matrix.js +48 -59
- package/lib/esm/matrix.js.map +1 -1
- package/lib/esm/package.json +2 -1
- package/lib/esm/particle-explode.js +122 -128
- package/lib/esm/particle-explode.js.map +1 -1
- package/lib/esm/particle.js +253 -258
- package/lib/esm/particle.js.map +1 -1
- package/lib/esm/pattern-refraction.js +1 -0
- package/lib/esm/pattern-refraction.js.map +1 -1
- package/lib/esm/pixel-stretch.js +1 -0
- package/lib/esm/pixel-stretch.js.map +1 -1
- package/lib/esm/pixelate.js +1 -0
- package/lib/esm/pixelate.js.map +1 -1
- package/lib/esm/pixelsort.js +102 -121
- package/lib/esm/pixelsort.js.map +1 -1
- package/lib/esm/rainbow.js +1 -0
- package/lib/esm/rainbow.js.map +1 -1
- package/lib/esm/rgb-glitch.js +1 -0
- package/lib/esm/rgb-glitch.js.map +1 -1
- package/lib/esm/rgb-shift.js +1 -0
- package/lib/esm/rgb-shift.js.map +1 -1
- package/lib/esm/scanline.js +1 -0
- package/lib/esm/scanline.js.map +1 -1
- package/lib/esm/sinewave.js +1 -0
- package/lib/esm/sinewave.js.map +1 -1
- package/lib/esm/slice-shift.js +1 -0
- package/lib/esm/slice-shift.js.map +1 -1
- package/lib/esm/tile-pixelate.js +4 -1
- package/lib/esm/tile-pixelate.js.map +1 -1
- package/lib/esm/tritone.js +5 -2
- package/lib/esm/tritone.js.map +1 -1
- package/lib/esm/vignette.js +1 -0
- package/lib/esm/vignette.js.map +1 -1
- package/lib/esm/voronoi.js +4 -1
- package/lib/esm/voronoi.js.map +1 -1
- package/lib/esm/warp.js +1 -0
- package/lib/esm/warp.js.map +1 -1
- package/package.json +4 -3
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
8
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
10
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
11
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12
|
-
};
|
|
13
|
-
var _ParticleExplodeEffect_instances, _ParticleExplodeEffect_params, _ParticleExplodeEffect_posTex, _ParticleExplodeEffect_colorTex, _ParticleExplodeEffect_stampTex, _ParticleExplodeEffect_trail, _ParticleExplodeEffect_particleGeometry, _ParticleExplodeEffect_stateSize, _ParticleExplodeEffect_triggered, _ParticleExplodeEffect_burstPending, _ParticleExplodeEffect_startTime, _ParticleExplodeEffect_lastElapsed, _ParticleExplodeEffect_fadeOutFrames, _ParticleExplodeEffect_estimatedFadeFrames, _ParticleExplodeEffect_allocStateRTs, _ParticleExplodeEffect_disposeStateRTs, _ParticleExplodeEffect_cap;
|
|
14
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
3
|
exports.ParticleExplodeEffect = void 0;
|
|
16
4
|
const _curl_noise_js_1 = require("./_curl-noise.js");
|
|
@@ -116,7 +104,9 @@ void main() {
|
|
|
116
104
|
);
|
|
117
105
|
vec2 sampleUv = srcRectUv.xy + spawnUv * srcRectUv.zw;
|
|
118
106
|
vec4 c = texture(src, sampleUv);
|
|
119
|
-
|
|
107
|
+
// Un-premultiply; the particle shader multiplies by alpha.
|
|
108
|
+
vec3 rgb = c.a > 0.0 ? c.rgb / c.a : vec3(0.0);
|
|
109
|
+
outColor = vec4(mix(rgb, color, colorMix), c.a);
|
|
120
110
|
}
|
|
121
111
|
`;
|
|
122
112
|
const VERT_PARTICLE = `#version 300 es
|
|
@@ -212,75 +202,107 @@ const DEFAULT_PARAMS = {
|
|
|
212
202
|
// One-shot explode. Construct a new instance per `vfx.add()`. Call
|
|
213
203
|
// `trigger()` to start; query `isDone()` to detect completion.
|
|
214
204
|
class ParticleExplodeEffect {
|
|
205
|
+
#params;
|
|
215
206
|
get params() {
|
|
216
|
-
return
|
|
207
|
+
return this.#params;
|
|
217
208
|
}
|
|
209
|
+
#posTex = null;
|
|
210
|
+
#colorTex = null;
|
|
211
|
+
#stampTex = null;
|
|
212
|
+
#trail = null;
|
|
213
|
+
#particleGeometry = null;
|
|
214
|
+
#stateSize;
|
|
215
|
+
#triggered = false;
|
|
216
|
+
#burstPending = false;
|
|
217
|
+
#startTime = -1;
|
|
218
|
+
#lastElapsed = 0;
|
|
219
|
+
#fadeOutFrames = 0;
|
|
218
220
|
constructor(initial = {}) {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
_ParticleExplodeEffect_stampTex.set(this, null);
|
|
224
|
-
_ParticleExplodeEffect_trail.set(this, null);
|
|
225
|
-
_ParticleExplodeEffect_particleGeometry.set(this, null);
|
|
226
|
-
_ParticleExplodeEffect_stateSize.set(this, void 0);
|
|
227
|
-
_ParticleExplodeEffect_triggered.set(this, false);
|
|
228
|
-
_ParticleExplodeEffect_burstPending.set(this, false);
|
|
229
|
-
_ParticleExplodeEffect_startTime.set(this, -1);
|
|
230
|
-
_ParticleExplodeEffect_lastElapsed.set(this, 0);
|
|
231
|
-
_ParticleExplodeEffect_fadeOutFrames.set(this, 0);
|
|
232
|
-
__classPrivateFieldSet(this, _ParticleExplodeEffect_params, { ...DEFAULT_PARAMS, ...initial }, "f");
|
|
233
|
-
__classPrivateFieldGet(this, _ParticleExplodeEffect_params, "f").count = (0, _particle_common_js_1.sanitizeCount)(__classPrivateFieldGet(this, _ParticleExplodeEffect_params, "f").count);
|
|
234
|
-
const s = (0, _particle_common_js_1.stateSizeFromCount)(__classPrivateFieldGet(this, _ParticleExplodeEffect_params, "f").count);
|
|
235
|
-
__classPrivateFieldSet(this, _ParticleExplodeEffect_stateSize, [s, s], "f");
|
|
221
|
+
this.#params = { ...DEFAULT_PARAMS, ...initial };
|
|
222
|
+
this.#params.count = (0, _particle_common_js_1.sanitizeCount)(this.#params.count);
|
|
223
|
+
const s = (0, _particle_common_js_1.stateSizeFromCount)(this.#params.count);
|
|
224
|
+
this.#stateSize = [s, s];
|
|
236
225
|
}
|
|
237
226
|
trigger() {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
227
|
+
this.#triggered = true;
|
|
228
|
+
this.#burstPending = true;
|
|
229
|
+
this.#startTime = -1;
|
|
230
|
+
this.#lastElapsed = 0;
|
|
231
|
+
this.#fadeOutFrames = 0;
|
|
243
232
|
}
|
|
244
233
|
reset() {
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
234
|
+
this.#triggered = false;
|
|
235
|
+
this.#burstPending = false;
|
|
236
|
+
this.#startTime = -1;
|
|
237
|
+
this.#lastElapsed = 0;
|
|
238
|
+
this.#fadeOutFrames = 0;
|
|
250
239
|
}
|
|
251
240
|
isDone() {
|
|
252
|
-
if (!
|
|
241
|
+
if (!this.#triggered) {
|
|
253
242
|
return false;
|
|
254
243
|
}
|
|
255
|
-
if (
|
|
244
|
+
if (this.#lastElapsed < this.params.duration) {
|
|
256
245
|
return false;
|
|
257
246
|
}
|
|
258
|
-
return
|
|
247
|
+
return this.#fadeOutFrames >= this.#estimatedFadeFrames();
|
|
248
|
+
}
|
|
249
|
+
// trailFade is applied per-frame, so the trail decays geometrically
|
|
250
|
+
// by trailFade^N. Stop once it falls under ~1/255 (alpha-quantized
|
|
251
|
+
// invisible). Capped to prevent runaway when trailFade≈1.
|
|
252
|
+
#estimatedFadeFrames() {
|
|
253
|
+
const tf = this.params.trailFade;
|
|
254
|
+
if (tf <= 0) {
|
|
255
|
+
return 1;
|
|
256
|
+
}
|
|
257
|
+
if (tf >= 0.999) {
|
|
258
|
+
return 600;
|
|
259
|
+
}
|
|
260
|
+
return Math.ceil(-Math.log(255) / Math.log(tf));
|
|
259
261
|
}
|
|
260
262
|
init(ctx) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
+
this.#allocStateRTs(ctx);
|
|
264
|
+
this.#stampTex = ctx.createRenderTarget({
|
|
263
265
|
float: false,
|
|
264
266
|
wrap: "clamp",
|
|
265
267
|
filter: "linear",
|
|
266
|
-
})
|
|
267
|
-
|
|
268
|
+
});
|
|
269
|
+
this.#trail = ctx.createRenderTarget({
|
|
268
270
|
float: false,
|
|
269
271
|
persistent: true,
|
|
270
272
|
wrap: "clamp",
|
|
271
273
|
filter: "linear",
|
|
272
|
-
})
|
|
273
|
-
|
|
274
|
+
});
|
|
275
|
+
this.#particleGeometry = {
|
|
274
276
|
attributes: { position: _particle_common_js_1.QUAD_VERTS },
|
|
275
|
-
}
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
#allocStateRTs(ctx) {
|
|
280
|
+
const stateBase = {
|
|
281
|
+
size: this.#stateSize,
|
|
282
|
+
float: true,
|
|
283
|
+
wrap: "clamp",
|
|
284
|
+
filter: "nearest",
|
|
285
|
+
};
|
|
286
|
+
// posTex needs ping-pong (advect reads + writes); colorTex is
|
|
287
|
+
// burst-seeded once and never advected, so single-buffer is enough.
|
|
288
|
+
this.#posTex = ctx.createRenderTarget({
|
|
289
|
+
...stateBase,
|
|
290
|
+
persistent: true,
|
|
291
|
+
});
|
|
292
|
+
this.#colorTex = ctx.createRenderTarget(stateBase);
|
|
293
|
+
}
|
|
294
|
+
#disposeStateRTs() {
|
|
295
|
+
this.#posTex?.dispose();
|
|
296
|
+
this.#colorTex?.dispose();
|
|
297
|
+
this.#posTex = null;
|
|
298
|
+
this.#colorTex = null;
|
|
276
299
|
}
|
|
277
300
|
render(ctx) {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
!
|
|
281
|
-
!
|
|
282
|
-
!
|
|
283
|
-
!__classPrivateFieldGet(this, _ParticleExplodeEffect_particleGeometry, "f")) {
|
|
301
|
+
if (!this.#posTex ||
|
|
302
|
+
!this.#colorTex ||
|
|
303
|
+
!this.#stampTex ||
|
|
304
|
+
!this.#trail ||
|
|
305
|
+
!this.#particleGeometry) {
|
|
284
306
|
return;
|
|
285
307
|
}
|
|
286
308
|
// Off-screen: pause everything. The burst's elapsed timer only
|
|
@@ -294,24 +316,24 @@ class ParticleExplodeEffect {
|
|
|
294
316
|
// doing so would discard the in-flight particle state. Allowed
|
|
295
317
|
// before the first trigger and after a burst has fully faded.
|
|
296
318
|
const newSize = (0, _particle_common_js_1.stateSizeFromCount)(this.params.count);
|
|
297
|
-
const idle = !
|
|
298
|
-
if (newSize !==
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
319
|
+
const idle = !this.#triggered || this.isDone();
|
|
320
|
+
if (newSize !== this.#stateSize[0] && idle) {
|
|
321
|
+
this.#disposeStateRTs();
|
|
322
|
+
this.#stateSize = [newSize, newSize];
|
|
323
|
+
this.#allocStateRTs(ctx);
|
|
302
324
|
}
|
|
303
|
-
if (!
|
|
325
|
+
if (!this.#triggered) {
|
|
304
326
|
ctx.blit(ctx.src, ctx.target);
|
|
305
327
|
return;
|
|
306
328
|
}
|
|
307
|
-
if (
|
|
308
|
-
|
|
329
|
+
if (this.#startTime < 0) {
|
|
330
|
+
this.#startTime = ctx.time;
|
|
309
331
|
}
|
|
310
|
-
const elapsed = ctx.time -
|
|
311
|
-
|
|
332
|
+
const elapsed = ctx.time - this.#startTime;
|
|
333
|
+
this.#lastElapsed = elapsed;
|
|
312
334
|
const inFadeOut = elapsed >= this.params.duration;
|
|
313
335
|
// Particles done AND trail decayed to invisible — stop drawing.
|
|
314
|
-
if (inFadeOut &&
|
|
336
|
+
if (inFadeOut && this.#fadeOutFrames >= this.#estimatedFadeFrames()) {
|
|
315
337
|
ctx.clear(ctx.target);
|
|
316
338
|
return;
|
|
317
339
|
}
|
|
@@ -321,14 +343,14 @@ class ParticleExplodeEffect {
|
|
|
321
343
|
ctx.dims.elementPixel[1],
|
|
322
344
|
];
|
|
323
345
|
if (!inFadeOut) {
|
|
324
|
-
const burst =
|
|
325
|
-
|
|
326
|
-
const cap =
|
|
346
|
+
const burst = this.#burstPending ? 1 : 0;
|
|
347
|
+
this.#burstPending = false;
|
|
348
|
+
const cap = this.#cap();
|
|
327
349
|
ctx.draw({
|
|
328
350
|
frag: FRAG_UPDATE_POS,
|
|
329
351
|
uniforms: {
|
|
330
|
-
posTex:
|
|
331
|
-
stateSize:
|
|
352
|
+
posTex: this.#posTex,
|
|
353
|
+
stateSize: this.#stateSize,
|
|
332
354
|
elementPixel,
|
|
333
355
|
time: ctx.time,
|
|
334
356
|
dt,
|
|
@@ -341,33 +363,33 @@ class ParticleExplodeEffect {
|
|
|
341
363
|
count: cap,
|
|
342
364
|
uBurst: burst,
|
|
343
365
|
},
|
|
344
|
-
target:
|
|
366
|
+
target: this.#posTex,
|
|
345
367
|
});
|
|
346
368
|
if (burst === 1) {
|
|
347
369
|
ctx.draw({
|
|
348
370
|
frag: FRAG_BURST_COLOR,
|
|
349
371
|
uniforms: {
|
|
350
372
|
src: ctx.src,
|
|
351
|
-
stateSize:
|
|
373
|
+
stateSize: this.#stateSize,
|
|
352
374
|
count: cap,
|
|
353
375
|
color: (0, _particle_common_js_1.hexToRgb)(this.params.color),
|
|
354
376
|
colorMix: this.params.colorMix,
|
|
355
377
|
},
|
|
356
|
-
target:
|
|
378
|
+
target: this.#colorTex,
|
|
357
379
|
});
|
|
358
380
|
// Drop residual trail from a previous burst so the new
|
|
359
381
|
// burst doesn't composite the old image on top of itself.
|
|
360
|
-
ctx.clear(
|
|
382
|
+
ctx.clear(this.#trail);
|
|
361
383
|
}
|
|
362
|
-
|
|
363
|
-
ctx.clear(
|
|
384
|
+
this.#particleGeometry.instanceCount = cap;
|
|
385
|
+
ctx.clear(this.#stampTex);
|
|
364
386
|
ctx.draw({
|
|
365
387
|
vert: VERT_PARTICLE,
|
|
366
388
|
frag: _particle_common_js_1.FRAG_PARTICLE,
|
|
367
389
|
uniforms: {
|
|
368
|
-
posTex:
|
|
369
|
-
colorTex:
|
|
370
|
-
stateSize:
|
|
390
|
+
posTex: this.#posTex,
|
|
391
|
+
colorTex: this.#colorTex,
|
|
392
|
+
stateSize: this.#stateSize,
|
|
371
393
|
pointSize: this.params.pointSize,
|
|
372
394
|
elementPixel,
|
|
373
395
|
particleCount: cap,
|
|
@@ -375,8 +397,8 @@ class ParticleExplodeEffect {
|
|
|
375
397
|
alphaDecay: this.params.alphaDecay,
|
|
376
398
|
fog: this.params.fog,
|
|
377
399
|
},
|
|
378
|
-
geometry:
|
|
379
|
-
target:
|
|
400
|
+
geometry: this.#particleGeometry,
|
|
401
|
+
target: this.#stampTex,
|
|
380
402
|
blend: this.params.blend === "normal"
|
|
381
403
|
? "premultiplied"
|
|
382
404
|
: "additive",
|
|
@@ -385,32 +407,36 @@ class ParticleExplodeEffect {
|
|
|
385
407
|
else {
|
|
386
408
|
// Particles done; keep decaying the trail with an empty stamp
|
|
387
409
|
// so trailFade can fade out gracefully instead of cutting.
|
|
388
|
-
ctx.clear(
|
|
389
|
-
|
|
410
|
+
ctx.clear(this.#stampTex);
|
|
411
|
+
this.#fadeOutFrames++;
|
|
390
412
|
}
|
|
391
413
|
ctx.draw({
|
|
392
414
|
frag: _particle_common_js_1.FRAG_TRAIL_COMPOSITE,
|
|
393
415
|
uniforms: {
|
|
394
|
-
trailPrev:
|
|
395
|
-
particleStamp:
|
|
416
|
+
trailPrev: this.#trail,
|
|
417
|
+
particleStamp: this.#stampTex,
|
|
396
418
|
trailFade: this.params.trailFade,
|
|
397
419
|
blendMode: this.params.blend === "normal" ? 1 : 0,
|
|
398
420
|
},
|
|
399
|
-
target:
|
|
421
|
+
target: this.#trail,
|
|
400
422
|
});
|
|
401
423
|
ctx.draw({
|
|
402
424
|
frag: FRAG_OUTPUT,
|
|
403
|
-
uniforms: { trail:
|
|
425
|
+
uniforms: { trail: this.#trail },
|
|
404
426
|
target: ctx.target,
|
|
405
427
|
});
|
|
406
428
|
}
|
|
429
|
+
#cap() {
|
|
430
|
+
const max = this.#stateSize[0] * this.#stateSize[1];
|
|
431
|
+
return Math.max(1, Math.min(max, Math.floor(this.params.count)));
|
|
432
|
+
}
|
|
407
433
|
dispose() {
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
434
|
+
this.#disposeStateRTs();
|
|
435
|
+
this.#stampTex?.dispose();
|
|
436
|
+
this.#trail?.dispose();
|
|
437
|
+
this.#stampTex = null;
|
|
438
|
+
this.#trail = null;
|
|
439
|
+
this.#particleGeometry = null;
|
|
414
440
|
}
|
|
415
441
|
// Particles can scatter past the element bounds.
|
|
416
442
|
outputRect(dims) {
|
|
@@ -418,36 +444,4 @@ class ParticleExplodeEffect {
|
|
|
418
444
|
}
|
|
419
445
|
}
|
|
420
446
|
exports.ParticleExplodeEffect = ParticleExplodeEffect;
|
|
421
|
-
_ParticleExplodeEffect_params = new WeakMap(), _ParticleExplodeEffect_posTex = new WeakMap(), _ParticleExplodeEffect_colorTex = new WeakMap(), _ParticleExplodeEffect_stampTex = new WeakMap(), _ParticleExplodeEffect_trail = new WeakMap(), _ParticleExplodeEffect_particleGeometry = new WeakMap(), _ParticleExplodeEffect_stateSize = new WeakMap(), _ParticleExplodeEffect_triggered = new WeakMap(), _ParticleExplodeEffect_burstPending = new WeakMap(), _ParticleExplodeEffect_startTime = new WeakMap(), _ParticleExplodeEffect_lastElapsed = new WeakMap(), _ParticleExplodeEffect_fadeOutFrames = new WeakMap(), _ParticleExplodeEffect_instances = new WeakSet(), _ParticleExplodeEffect_estimatedFadeFrames = function _ParticleExplodeEffect_estimatedFadeFrames() {
|
|
422
|
-
const tf = this.params.trailFade;
|
|
423
|
-
if (tf <= 0) {
|
|
424
|
-
return 1;
|
|
425
|
-
}
|
|
426
|
-
if (tf >= 0.999) {
|
|
427
|
-
return 600;
|
|
428
|
-
}
|
|
429
|
-
return Math.ceil(-Math.log(255) / Math.log(tf));
|
|
430
|
-
}, _ParticleExplodeEffect_allocStateRTs = function _ParticleExplodeEffect_allocStateRTs(ctx) {
|
|
431
|
-
const stateBase = {
|
|
432
|
-
size: __classPrivateFieldGet(this, _ParticleExplodeEffect_stateSize, "f"),
|
|
433
|
-
float: true,
|
|
434
|
-
wrap: "clamp",
|
|
435
|
-
filter: "nearest",
|
|
436
|
-
};
|
|
437
|
-
// posTex needs ping-pong (advect reads + writes); colorTex is
|
|
438
|
-
// burst-seeded once and never advected, so single-buffer is enough.
|
|
439
|
-
__classPrivateFieldSet(this, _ParticleExplodeEffect_posTex, ctx.createRenderTarget({
|
|
440
|
-
...stateBase,
|
|
441
|
-
persistent: true,
|
|
442
|
-
}), "f");
|
|
443
|
-
__classPrivateFieldSet(this, _ParticleExplodeEffect_colorTex, ctx.createRenderTarget(stateBase), "f");
|
|
444
|
-
}, _ParticleExplodeEffect_disposeStateRTs = function _ParticleExplodeEffect_disposeStateRTs() {
|
|
445
|
-
__classPrivateFieldGet(this, _ParticleExplodeEffect_posTex, "f")?.dispose();
|
|
446
|
-
__classPrivateFieldGet(this, _ParticleExplodeEffect_colorTex, "f")?.dispose();
|
|
447
|
-
__classPrivateFieldSet(this, _ParticleExplodeEffect_posTex, null, "f");
|
|
448
|
-
__classPrivateFieldSet(this, _ParticleExplodeEffect_colorTex, null, "f");
|
|
449
|
-
}, _ParticleExplodeEffect_cap = function _ParticleExplodeEffect_cap() {
|
|
450
|
-
const max = __classPrivateFieldGet(this, _ParticleExplodeEffect_stateSize, "f")[0] * __classPrivateFieldGet(this, _ParticleExplodeEffect_stateSize, "f")[1];
|
|
451
|
-
return Math.max(1, Math.min(max, Math.floor(this.params.count)));
|
|
452
|
-
};
|
|
453
447
|
//# sourceMappingURL=particle-explode.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"particle-explode.js","sourceRoot":"","sources":["../../src/particle-explode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"particle-explode.js","sourceRoot":"","sources":["../../src/particle-explode.ts"],"names":[],"mappings":";;;AAYA,qDAI0B;AAC1B,+DAS+B;AAE/B,MAAM,oBAAoB,GAAG,gCAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AACxD,MAAM,oBAAoB,GAAG,gCAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAExD,kEAAkE;AAClE,sEAAsE;AACtE,wEAAwE;AACxE,qEAAqE;AACrE,0BAA0B;AAE1B,uEAAuE;AACvE,uEAAuE;AACvE,0CAA0C;AAC1C,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;EAkBtB,+BAAS;EACT,gCAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiCP,oBAAoB;UACpB,oBAAoB;;;;;;;CAO7B,CAAC;AAEF,sEAAsE;AACtE,iEAAiE;AACjE,sEAAsE;AACtE,iEAAiE;AACjE,MAAM,gBAAgB,GAAG;;;;;;;;;;;EAWvB,+BAAS;;;;;;;;;;;;;;;;;;;CAmBV,CAAC;AAEF,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Dr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