@adatechnology/game-fluids-three 0.4.7 → 0.4.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 CHANGED
@@ -3,6 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
 
5
5
  // src/renderer.ts
6
+ import { warnOnce } from "@adatechnology/game-contracts";
6
7
  import { createVfx } from "@adatechnology/game-vfx";
7
8
  import { createVfxRenderer } from "@adatechnology/game-vfx-three";
8
9
 
@@ -811,6 +812,7 @@ function createFluidRenderer(THREE, options) {
811
812
  const root = new THREE.Group();
812
813
  root.name = "fluid_renderer";
813
814
  scene.add(root);
815
+ if (!options.vfx) warnOnce("game-fluids-three.own-effects-world", "game-fluids-three made an effects world of its own because the host lent none (options.vfx); pass the host effects so the effects share one budget");
814
816
  const vfx = options.vfx ?? createVfx({ profile: quality, gravity: fluids.gravity, sprites: { capacity: profile.maxParticles } });
815
817
  const ownVfx = options.vfx ? void 0 : createVfxRenderer(THREE, { scene, camera: options.camera ?? new THREE.PerspectiveCamera(), vfx, pointScale: options.pointScale ?? 600 });
816
818
  const particles = new FluidSprites(vfx, `fluids-${++rendererCount}`);