@kalyptos/narcissus 0.2.0 → 0.2.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.
@@ -1,4 +1,4 @@
1
- import { S as e, _ as t, h as n, s as r, t as i } from "../controls-Dlxyn7yr.js";
1
+ import { S as e, _ as t, h as n, s as r, t as i } from "../controls--A-CvrQ5.js";
2
2
  //#region src/element/index.ts
3
3
  var a = 4e3, o = 4e6, s = [2e6, 6e6], c = 2e6, l = [
4
4
  .62,
@@ -56,8 +56,9 @@ export interface Engine {
56
56
  /** canvas size in css pixels and the device pixel ratio to render at */
57
57
  resize(width: number, height: number, ratio: number): void;
58
58
  /**
59
- * the surface under canvas css pixel (x, y), or null over nothing: the nearest splat that draws
60
- * it at 0.5 opacity or more, as the last frame showed it; it renders no frame of its own
59
+ * the surface under canvas css pixel (x, y), or null over nothing: where the splats the last
60
+ * frame drew there, blended front to back, first cover half the pixel, met on that splat's
61
+ * plane; it renders no frame of its own
61
62
  */
62
63
  pick(x: number, y: number): Promise<Hit | null>;
63
64
  ground(e: number, n: number): number | undefined;
@@ -19,7 +19,9 @@ export declare class Pick {
19
19
  }[]): void;
20
20
  /**
21
21
  * submits a pick of target pixel (x, y from the top-left) over the frame's visible clusters;
22
- * frame must be the last one submitted, whose uniforms and cull the buffers still hold
22
+ * frame must be the last one submitted, whose uniforms and cull the buffers still hold. null
23
+ * where the splats over the pixel never reach half, and where more lay there than the buffer
24
+ * kept, which grows it for the next
23
25
  */
24
26
  run(x: number, y: number, frame: Frame): Promise<Found | null>;
25
27
  destroy(): void;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./format-CbtEy9NS.js";
2
- import { C as t, S as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./controls-Dlxyn7yr.js";
2
+ import { C as t, S as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./controls--A-CvrQ5.js";
3
3
  import { t as T } from "./ports-DZRKjdYD.js";
4
4
  import { t as E } from "./http-DL7R39Nc.js";
5
5
  //#region src/engine/plugins/grade.wgsl?raw
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kalyptos/narcissus",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A WebGPU engine and tools for Guldmund Trees, streamed gaussian-splat scenes",
5
5
  "license": "BSD-3-Clause",
6
6
  "repository": {