paperlab 0.5.1 → 0.5.2

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/stage.cjs CHANGED
@@ -7349,8 +7349,7 @@ function makeGlowTexture(color) {
7349
7349
  const ctx = canvas.getContext("2d");
7350
7350
  const glow = ctx.createRadialGradient(size / 2, size / 2, 0, size / 2, size / 2, size / 2);
7351
7351
  const c = new THREE19.Color(color);
7352
- const rgb = `${c.r * 255 | 0}, ${c.g * 255 | 0}, ${c.b * 255 | 0}`;
7353
- for (const [stop, alpha] of [
7352
+ for (const [stop, level] of [
7354
7353
  [0, 1],
7355
7354
  [0.5, 1],
7356
7355
  [0.62, 0.66],
@@ -7359,7 +7358,8 @@ function makeGlowTexture(color) {
7359
7358
  [0.94, 0.03],
7360
7359
  [1, 0]
7361
7360
  ]) {
7362
- glow.addColorStop(stop, `rgba(${rgb}, ${alpha})`);
7361
+ const scaled = `${c.r * 255 * level | 0}, ${c.g * 255 * level | 0}, ${c.b * 255 * level | 0}`;
7362
+ glow.addColorStop(stop, `rgb(${scaled})`);
7363
7363
  }
7364
7364
  ctx.fillStyle = glow;
7365
7365
  ctx.fillRect(0, 0, size, size);
@@ -7384,6 +7384,7 @@ function Source({
7384
7384
  {
7385
7385
  map: texture,
7386
7386
  transparent: true,
7387
+ blending: THREE19.AdditiveBlending,
7387
7388
  color: new THREE19.Color(intensity, intensity, intensity),
7388
7389
  depthWrite: false,
7389
7390
  fog: false