@margoengine/oit 0.1.0 → 1.0.0

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/depth.js CHANGED
@@ -1,6 +1,6 @@
1
- // @margo/core-built 0.1.0
1
+ // @margo/core-built 1.0.0
2
2
  import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
3
- const i=(engine,version="0.1.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
3
+ const i=(engine,version="1.0.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
4
4
  import { i as e, n as t, o as n, r } from "./pass-D7U8kWzv.js";
5
5
  import { engineRuntime as __margoRuntime } from "@margoengine/core/extension";
6
6
  import { MargoError as a } from "@margoengine/math/errors";
@@ -14,8 +14,8 @@ fn margoTransparent(color:vec4f,i:Out)->MargoTransparent {
14
14
  if(margoKind==1u||margoKind==2u||(margoKind==0u&&color.a<margoOIT.x)){discard;}
15
15
  var o:MargoTransparent; return o;
16
16
  }
17
- `, c = 0, l = class l {coreRequirement=__margoCoreRequirement("0.1.0",import.meta.url);
18
- static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("0.1.0",import.meta.url));
17
+ `, c = 0, l = class l {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
18
+ static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
19
19
  let n = new l(t);
20
20
  return i(e).use(n), n;
21
21
  }
package/dist/exact.js CHANGED
@@ -1,6 +1,6 @@
1
- // @margo/core-built 0.1.0
1
+ // @margo/core-built 1.0.0
2
2
  import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
3
- const d=(engine,version="0.1.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
3
+ const d=(engine,version="1.0.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
4
4
  import { n as e, t } from "./compat-CLA5cArM.js";
5
5
  import { a as n, i as r, n as i, o as a, r as o, t as s } from "./pass-D7U8kWzv.js";
6
6
  import { i as c, r as l, t as u } from "./pass-DdYrWNpT.js";
@@ -80,8 +80,8 @@ struct Result {@location(0) color:vec4f, @builtin(frag_depth) depth:f32, @builti
80
80
  ][t]}
81
81
  return Result(c,bitcast<f32>(n.z),n.w>>28u);
82
82
  }
83
- `, y = class l extends u {coreRequirement=__margoCoreRequirement("0.1.0",import.meta.url);
84
- static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("0.1.0",import.meta.url));
83
+ `, y = class l extends u {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
84
+ static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
85
85
  let n = new l(t);
86
86
  return d(e).use(n), n;
87
87
  }
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- // @margo/core-built 0.1.0
1
+ // @margo/core-built 1.0.0
2
2
  import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
3
- const s=(engine,version="0.1.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
3
+ const s=(engine,version="1.0.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
4
4
  import { a as e, i as t, n, o as r, r as i } from "./pass-D7U8kWzv.js";
5
5
  import { i as a, t as o } from "./pass-DdYrWNpT.js";
6
6
  import { engineRuntime as __margoRuntime } from "@margoengine/core/extension";
@@ -84,8 +84,8 @@ fn encode(c:vec3f)->vec3f {let x=max(c,vec3f(0));return select(x*12.92,1.055*pow
84
84
  srcFactor: "one",
85
85
  dstFactor: "one-minus-src-alpha"
86
86
  }
87
- }, v = class v extends o {coreRequirement=__margoCoreRequirement("0.1.0",import.meta.url);
88
- static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("0.1.0",import.meta.url));
87
+ }, v = class v extends o {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
88
+ static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
89
89
  let n = new v(t);
90
90
  return s(e).use(n), n;
91
91
  }
package/dist/meshes.js CHANGED
@@ -1,4 +1,4 @@
1
- // @margo/core-built 0.1.0
1
+ // @margo/core-built 1.0.0
2
2
  import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
3
3
 
4
4
  import { Material as e, createMesh as t } from "@margoengine/materials";
@@ -22,7 +22,7 @@ function r(r, i, a, { opacity: o = .5 } = {}) {
22
22
  opacity: o,
23
23
  transparent: !0
24
24
  }), p = a.scene ?? i.scene, m = `oit-mesh-copy:${++n}`, h;
25
- p.use({coreRequirement:/*@__PURE__*/__margoCoreRequirement("0.1.0",import.meta.url),
25
+ p.use({coreRequirement:/*@__PURE__*/__margoCoreRequirement("1.0.0",import.meta.url),
26
26
  name: m,
27
27
  setup() {
28
28
  h = t(i, {
package/dist/moments.js CHANGED
@@ -1,6 +1,6 @@
1
- // @margo/core-built 0.1.0
1
+ // @margo/core-built 1.0.0
2
2
  import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
3
- const l=(engine,version="0.1.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
3
+ const l=(engine,version="1.0.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
4
4
  import { a as e, i as t, n, o as r, r as i, t as a } from "./pass-D7U8kWzv.js";
5
5
  import { i as o, n as s, t as c } from "./pass-DdYrWNpT.js";
6
6
  import { engineRuntime as __margoRuntime } from "@margoengine/core/extension";
@@ -110,8 +110,8 @@ fn margoTransparentAt(color:vec4f,clip:vec4f,depth:f32)->MargoTransparent {
110
110
  "rgba16float",
111
111
  "rgba16float",
112
112
  "rgba16float"
113
- ], b = class s extends c {coreRequirement=__margoCoreRequirement("0.1.0",import.meta.url);
114
- static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("0.1.0",import.meta.url));
113
+ ], b = class s extends c {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
114
+ static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
115
115
  let n = new s(t);
116
116
  return l(e).use(n), n;
117
117
  }
@@ -1,4 +1,4 @@
1
- // @margo/core-built 0.1.0
1
+ // @margo/core-built 1.0.0
2
2
  import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
3
3
 
4
4
  import { MargoError as e } from "@margoengine/math/errors";
@@ -14,7 +14,7 @@ ${r}
14
14
  let d=textureLoad(sceneMap,q,0); let light=overLinear(vec4f(avg,cover),d);
15
15
  return vec4f(mix(light.rgb,avg*cover+d.rgb*(1-cover),mark),light.a);
16
16
  }
17
- `, a = class {coreRequirement=__margoCoreRequirement("0.1.0",import.meta.url);
17
+ `, a = class {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
18
18
  constructor(e) {
19
19
  if (this.name = "oit:" + t++, this.disposed = !1, this.models = /* @__PURE__ */ new Map(), this.effects = /* @__PURE__ */ new Map(), !Number.isFinite(e) || e <= 0) throw RangeError("OIT order must be > 0");
20
20
  this.order = e;
package/dist/peel.js CHANGED
@@ -1,6 +1,6 @@
1
- // @margo/core-built 0.1.0
1
+ // @margo/core-built 1.0.0
2
2
  import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
3
- const c=(engine,version="0.1.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
3
+ const c=(engine,version="1.0.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
4
4
  import { i as e, n as t, o as n, r, t as i } from "./pass-D7U8kWzv.js";
5
5
  import { i as a, r as o, t as s } from "./pass-DdYrWNpT.js";
6
6
  import { engineRuntime as __margoRuntime } from "@margoengine/core/extension";
@@ -32,7 +32,7 @@ struct Result {@location(0) color:vec4f, @builtin(frag_depth) depth:f32}
32
32
  return Result(color,textureLoad(depthMap,q,0).r);
33
33
  }
34
34
  `, d = class o extends s {
35
- static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("0.1.0",import.meta.url));
35
+ static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
36
36
  let n = new o(t);
37
37
  return c(e).use(n), n;
38
38
  }
package/dist/precise.js CHANGED
@@ -1,6 +1,6 @@
1
- // @margo/core-built 0.1.0
1
+ // @margo/core-built 1.0.0
2
2
  import {coreRequirement as __margoCoreRequirement,assertCore as __margoAssertCore} from '@margoengine/core/extension';
3
- const f=(engine,version="0.1.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
3
+ const f=(engine,version="1.0.0",source=import.meta.url)=>__margoRuntime(engine,version,source);
4
4
  import { i as e, r as t, t as n } from "./compat-CLA5cArM.js";
5
5
  import { a as r, i, n as a, o, r as s, t as c } from "./pass-D7U8kWzv.js";
6
6
  import { i as l, n as u, t as d } from "./pass-DdYrWNpT.js";
@@ -66,8 +66,8 @@ ${[
66
66
  ].map((t) => `textureLoad(map${t},q,${e > 1 ? "s" : "0"}).r`).join(",")});
67
67
  reveal+=textureLoad(map4,q,${e > 1 ? "s" : "0"}).rg;
68
68
  }
69
- let avg=sum.rgb/max(sum.a,${e}.0*1e-5); let cover=1.0-reveal.x/${e}.0; let mark=reveal.y/${e}.0;`), _ = class u extends d {coreRequirement=__margoCoreRequirement("0.1.0",import.meta.url);
70
- static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("0.1.0",import.meta.url));
69
+ let avg=sum.rgb/max(sum.a,${e}.0*1e-5); let cover=1.0-reveal.x/${e}.0; let mark=reveal.y/${e}.0;`), _ = class u extends d {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
70
+ static attach(e, t) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
71
71
  let n = new u(t);
72
72
  return f(e).use(n), n;
73
73
  }
@@ -1,53 +1,53 @@
1
- /** A reusable pass descriptor drawing over the frame: colour load/store, depth and stencil read only. */
2
- export function overlayPass(): GPURenderPassDescriptor & {
3
- colorAttachments: [GPURenderPassColorAttachment];
4
- depthStencilAttachment: GPURenderPassDepthStencilAttachment;
5
- };
6
- /** {@link overlayPass} that also loads and stores depth. */
7
- export function overlayDepthPass(): GPURenderPassDescriptor & {
8
- colorAttachments: [GPURenderPassColorAttachment];
9
- depthStencilAttachment: GPURenderPassDepthStencilAttachment;
10
- };
11
- /** Straight (non-premultiplied) alpha blending. */
12
- export const alphaBlend: GPUBlendState;
13
- /** Straight alpha blending that leaves the target's alpha channel unchanged: precipitation and other overlays drawn into a frame. */
14
- export const overlayBlend: GPUBlendState;
15
-
16
- /** `mesh` when it is null or a core mesh handle (checked live); else a TypeError. */
17
- export function attachableMesh<M extends { check(): void } | null>(mesh: M): M;
18
- /**
19
- * What an order-independent pass offers an effect that is no PBR surface (particles, splats, points), in place of
20
- * gltf/pbr's transparency hook. Same contract, but `surface` declares `fn margoTransparentAt(color:vec4f,clip:vec4f,
21
- * depth:f32)->MargoTransparent`: `clip` is the fragment's position builtin, `depth` its view depth.
22
- */
23
- export interface SurfaceTransparency {
24
- /** Module-scope WGSL: `struct MargoTransparent` (one output per target), `margoTransparentAt` and its bindings in `group`. */
25
- surface(group: number): string;
26
- /** Layout of those bindings, for an effect with explicit pipeline layouts. */
27
- readonly layout: readonly GPUBindGroupLayoutEntry[];
28
- /** Entries for those bindings. */
29
- bindings(): GPUBindGroupEntry[];
30
- /** True: declarations hold `override margoKind:u32`, 0 normal, 1 additive; additive surfaces may draw here. */
31
- readonly blends?: boolean;
32
- /** Colour targets of the transparent pass, in `MargoTransparent` location order. */
33
- readonly targets: readonly GPUColorTargetState[];
34
- /** This frame's transparent pass, begun on the first draw and ended by the owner. */
35
- begin(): GPURenderPassEncoder;
36
- }
37
- /** The fragment entry `transparent` of an effect under a transparency hook: `inputs` are its parameters, the rest WGSL expressions. */
38
- export function surfaceEntry(declarations: string, inputs: string, color: string, clip: string, depth: string): string;
39
- /** Holds an effect's transparency hook: `set` takes it and `released`, and returns the remover. */
40
- export function transparencySlot(): {
41
- hook?: SurfaceTransparency;
42
- released?: () => void;
43
- set(hook: SurfaceTransparency, released?: () => void): () => void;
44
- };
45
- /** `hook`'s pass with `pipeline` set, `group` at group 0 and the hook's bindings at group 1, for an effect with an auto layout. */
46
- export function surfacePass(
47
- device: GPUDevice,
48
- hook: SurfaceTransparency,
49
- pipeline: GPURenderPipeline,
50
- group: GPUBindGroup,
51
- ): GPURenderPassEncoder;
52
- /** The WGSL `make(group)` builds for bind group `group`, made once per group and kept in `cache`. */
53
- export function groupCode(cache: Map<number, string>, group: number, make: (group: number) => string): string;
1
+ /** A reusable pass descriptor drawing over the frame: colour load/store, depth and stencil read only. */
2
+ export function overlayPass(): GPURenderPassDescriptor & {
3
+ colorAttachments: [GPURenderPassColorAttachment];
4
+ depthStencilAttachment: GPURenderPassDepthStencilAttachment;
5
+ };
6
+ /** {@link overlayPass} that also loads and stores depth. */
7
+ export function overlayDepthPass(): GPURenderPassDescriptor & {
8
+ colorAttachments: [GPURenderPassColorAttachment];
9
+ depthStencilAttachment: GPURenderPassDepthStencilAttachment;
10
+ };
11
+ /** Straight (non-premultiplied) alpha blending. */
12
+ export const alphaBlend: GPUBlendState;
13
+ /** Straight alpha blending that leaves the target's alpha channel unchanged: precipitation and other overlays drawn into a frame. */
14
+ export const overlayBlend: GPUBlendState;
15
+
16
+ /** `mesh` when it is null or a core mesh handle (checked live); else a TypeError. */
17
+ export function attachableMesh<M extends { check(): void } | null>(mesh: M): M;
18
+ /**
19
+ * What an order-independent pass offers an effect that is no PBR surface (particles, splats, points), in place of
20
+ * gltf/pbr's transparency hook. Same contract, but `surface` declares `fn margoTransparentAt(color:vec4f,clip:vec4f,
21
+ * depth:f32)->MargoTransparent`: `clip` is the fragment's position builtin, `depth` its view depth.
22
+ */
23
+ export interface SurfaceTransparency {
24
+ /** Module-scope WGSL: `struct MargoTransparent` (one output per target), `margoTransparentAt` and its bindings in `group`. */
25
+ surface(group: number): string;
26
+ /** Layout of those bindings, for an effect with explicit pipeline layouts. */
27
+ readonly layout: readonly GPUBindGroupLayoutEntry[];
28
+ /** Entries for those bindings. */
29
+ bindings(): GPUBindGroupEntry[];
30
+ /** True: declarations hold `override margoKind:u32`, 0 normal, 1 additive; additive surfaces may draw here. */
31
+ readonly blends?: boolean;
32
+ /** Colour targets of the transparent pass, in `MargoTransparent` location order. */
33
+ readonly targets: readonly GPUColorTargetState[];
34
+ /** This frame's transparent pass, begun on the first draw and ended by the owner. */
35
+ begin(): GPURenderPassEncoder;
36
+ }
37
+ /** The fragment entry `transparent` of an effect under a transparency hook: `inputs` are its parameters, the rest WGSL expressions. */
38
+ export function surfaceEntry(declarations: string, inputs: string, color: string, clip: string, depth: string): string;
39
+ /** Holds an effect's transparency hook: `set` takes it and `released`, and returns the remover. */
40
+ export function transparencySlot(): {
41
+ hook?: SurfaceTransparency;
42
+ released?: () => void;
43
+ set(hook: SurfaceTransparency, released?: () => void): () => void;
44
+ };
45
+ /** `hook`'s pass with `pipeline` set, `group` at group 0 and the hook's bindings at group 1, for an effect with an auto layout. */
46
+ export function surfacePass(
47
+ device: GPUDevice,
48
+ hook: SurfaceTransparency,
49
+ pipeline: GPURenderPipeline,
50
+ group: GPUBindGroup,
51
+ ): GPURenderPassEncoder;
52
+ /** The WGSL `make(group)` builds for bind group `group`, made once per group and kept in `cache`. */
53
+ export function groupCode(cache: Map<number, string>, group: number, make: (group: number) => string): string;
package/package.json CHANGED
@@ -1,85 +1,85 @@
1
- {
2
- "name": "@margoengine/oit",
3
- "version": "0.1.0",
4
- "description": "Order-independent transparency for gltf/pbr BLEND primitives and materials transparent meshes: weighted blending, moment-based blending, or exact per-pixel layer lists, with no popping between overlapping transparent parts.",
5
- "keywords": [
6
- "margoengine",
7
- "webgpu",
8
- "3d",
9
- "oit"
10
- ],
11
- "homepage": "https://margoengine.com",
12
- "bugs": {
13
- "url": "https://github.com/scottcampbelldata/margoengine/issues"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/scottcampbelldata/margoengine.git",
18
- "directory": "packages/oit"
19
- },
20
- "license": "Apache-2.0",
21
- "author": "Scott Campbell",
22
- "type": "module",
23
- "sideEffects": false,
24
- "exports": {
25
- ".": {
26
- "types": "./dist/index.d.ts",
27
- "import": "./dist/index.js"
28
- },
29
- "./meshes": {
30
- "types": "./dist/meshes.d.ts",
31
- "import": "./dist/meshes.js"
32
- },
33
- "./exact": {
34
- "types": "./dist/exact.d.ts",
35
- "import": "./dist/exact.js"
36
- },
37
- "./moments": {
38
- "types": "./dist/moments.d.ts",
39
- "import": "./dist/moments.js"
40
- },
41
- "./depth": {
42
- "types": "./dist/depth.d.ts",
43
- "import": "./dist/depth.js"
44
- },
45
- "./vfx": {
46
- "types": "./dist/vfx.d.ts",
47
- "import": "./dist/vfx.js"
48
- },
49
- "./peel": {
50
- "types": "./dist/peel.d.ts",
51
- "import": "./dist/peel.js"
52
- },
53
- "./precise": {
54
- "types": "./dist/precise.d.ts",
55
- "import": "./dist/precise.js"
56
- }
57
- },
58
- "files": [
59
- "dist",
60
- "LICENSE",
61
- "NOTICE"
62
- ],
63
- "publishConfig": {
64
- "access": "public"
65
- },
66
- "peerDependencies": {
67
- "@margoengine/core": "^0.1.0",
68
- "@margoengine/gltf": "^0.1.0",
69
- "@margoengine/materials": "^0.1.0"
70
- },
71
- "dependencies": {
72
- "@margoengine/math": "^0.1.0"
73
- },
74
- "scripts": {
75
- "build": "node ../../scripts/build-optional.js oit",
76
- "test": "npm run build && node --test test/*.test.js",
77
- "prepack": "npm run build",
78
- "test:gpu": "cd ../.. && node packages/oit/test/gpu/meshes-check.mjs && node packages/oit/test/gpu/exact-check.mjs && node packages/oit/test/gpu/moments-check.mjs && node packages/oit/test/gpu/blending-check.mjs && node packages/oit/test/gpu/depth-check.mjs && node packages/oit/test/gpu/vfx-check.mjs && node packages/oit/test/gpu/real-check.mjs && node packages/oit/test/gpu/repeat-check.mjs && node packages/oit/test/gpu/peel-check.mjs && node packages/oit/test/gpu/precise-check.mjs && node packages/oit/test/gpu/reference-check.mjs && node packages/oit/test/gpu/linear-check.mjs"
79
- },
80
- "peerDependenciesMeta": {
81
- "@margoengine/materials": {
82
- "optional": true
83
- }
84
- }
85
- }
1
+ {
2
+ "name": "@margoengine/oit",
3
+ "version": "1.0.0",
4
+ "description": "Order-independent transparency for gltf/pbr BLEND primitives and materials transparent meshes: weighted blending, moment-based blending, or exact per-pixel layer lists, with no popping between overlapping transparent parts.",
5
+ "keywords": [
6
+ "margoengine",
7
+ "webgpu",
8
+ "3d",
9
+ "oit"
10
+ ],
11
+ "homepage": "https://margoengine.com",
12
+ "bugs": {
13
+ "url": "https://github.com/scottcampbelldata/margoengine/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/scottcampbelldata/margoengine.git",
18
+ "directory": "packages/oit"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "author": "Scott Campbell",
22
+ "type": "module",
23
+ "sideEffects": false,
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
28
+ },
29
+ "./meshes": {
30
+ "types": "./dist/meshes.d.ts",
31
+ "import": "./dist/meshes.js"
32
+ },
33
+ "./exact": {
34
+ "types": "./dist/exact.d.ts",
35
+ "import": "./dist/exact.js"
36
+ },
37
+ "./moments": {
38
+ "types": "./dist/moments.d.ts",
39
+ "import": "./dist/moments.js"
40
+ },
41
+ "./depth": {
42
+ "types": "./dist/depth.d.ts",
43
+ "import": "./dist/depth.js"
44
+ },
45
+ "./vfx": {
46
+ "types": "./dist/vfx.d.ts",
47
+ "import": "./dist/vfx.js"
48
+ },
49
+ "./peel": {
50
+ "types": "./dist/peel.d.ts",
51
+ "import": "./dist/peel.js"
52
+ },
53
+ "./precise": {
54
+ "types": "./dist/precise.d.ts",
55
+ "import": "./dist/precise.js"
56
+ }
57
+ },
58
+ "files": [
59
+ "dist",
60
+ "LICENSE",
61
+ "NOTICE"
62
+ ],
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "peerDependencies": {
67
+ "@margoengine/core": "^1.0.0",
68
+ "@margoengine/gltf": "^1.0.0",
69
+ "@margoengine/materials": "^1.0.0"
70
+ },
71
+ "dependencies": {
72
+ "@margoengine/math": "^1.0.0"
73
+ },
74
+ "scripts": {
75
+ "build": "node ../../scripts/build-optional.js oit",
76
+ "test": "npm run build && node --test test/*.test.js",
77
+ "prepack": "npm run build",
78
+ "test:gpu": "cd ../.. && node packages/oit/test/gpu/meshes-check.mjs && node packages/oit/test/gpu/exact-check.mjs && node packages/oit/test/gpu/moments-check.mjs && node packages/oit/test/gpu/blending-check.mjs && node packages/oit/test/gpu/depth-check.mjs && node packages/oit/test/gpu/vfx-check.mjs && node packages/oit/test/gpu/real-check.mjs && node packages/oit/test/gpu/repeat-check.mjs && node packages/oit/test/gpu/peel-check.mjs && node packages/oit/test/gpu/precise-check.mjs && node packages/oit/test/gpu/reference-check.mjs && node packages/oit/test/gpu/linear-check.mjs"
79
+ },
80
+ "peerDependenciesMeta": {
81
+ "@margoengine/materials": {
82
+ "optional": true
83
+ }
84
+ }
85
+ }