@adatechnology/game-weapons-three 0.17.0 → 0.17.1

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.
@@ -61147,7 +61147,7 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
61147
61147
  const { core, def, random, x, y, z } = context;
61148
61148
  const mark = def.mark;
61149
61149
  const keepsMarks = !core.marklessAt?.(x, z);
61150
- if (keepsMarks && mark.crater && mark.dent && y < 1.2) {
61150
+ if (keepsMarks && mark.crater && mark.dent && y < 1.2 && (core.cratersAt?.(x, z) ?? true)) {
61151
61151
  core.emit({ type: "crater", x, z, radius: mark.crater, depth: mark.dent });
61152
61152
  core.trace?.crater?.(x, z, mark.crater, mark.dent);
61153
61153
  addCrater(core.marks, core.ground, random, { x, z, radius: mark.crater, depth: mark.dent, marks: core.layers.mark });
@@ -62905,6 +62905,7 @@ uniform mat4 uNodes[${nodes.length}]; attribute float aNodeIndex; attribute vec3
62905
62905
  clock: { time: 0, lastBlast: -1, lod: 1, forcedLod: null },
62906
62906
  groundAt,
62907
62907
  ...options.marklessAt ? { marklessAt: options.marklessAt } : {},
62908
+ ...options.cratersAt ? { cratersAt: options.cratersAt } : {},
62908
62909
  emit: (request) => options.onRequest?.(request)
62909
62910
  };
62910
62911
  function definitionOf(id) {