@margoengine/creative 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.
@@ -1,89 +1,89 @@
1
- /** A colour value: linear RGB. */
2
- export type SettingColor = readonly [number, number, number];
3
- /** One gradient stop: a colour at a position (`elevation` unless the row's `stopKey` says otherwise). */
4
- export type SettingStop = { readonly color: SettingColor };
5
- /** One value of a setting: a number, a colour, a choice, gradient stops, or null where `nullable`. */
6
- export type SettingValue = number | SettingColor | string | readonly SettingStop[] | null;
7
- /** Values by setting name; a name left out takes its default. */
8
- export type SettingValues = Readonly<Record<string, SettingValue>>;
9
- /** One slider row, the shape every package's `/settings` entry shares. */
10
- export interface SettingRow {
11
- readonly name: string;
12
- readonly group: string;
13
- /** `number` is a slider, `color` three sliders or a picker, `choice` a list, `gradient` a stop editor. */
14
- readonly kind: 'number' | 'color' | 'choice' | 'gradient';
15
- /** The value with which the target draws exactly as it does without the option (null: follow the weather). */
16
- readonly default: SettingValue;
17
- readonly min?: number;
18
- readonly max?: number;
19
- readonly step?: number;
20
- readonly choices?: readonly string[];
21
- /** May be null: the target uses its own value, or follows the weather when `weather` is set. */
22
- readonly nullable?: boolean;
23
- /** The weather master slider that drives this row while it is null. */
24
- readonly weather?: string;
25
- /** The key a gradient stop is placed by (default `elevation`). */
26
- readonly stopKey?: string;
27
- readonly unit: string;
28
- readonly about: string;
29
- /** True: cheap to write every frame (no pipeline, buffer or texture is created), so it can be keyed over a shot. False: writing it rebuilds something. */
30
- readonly live: boolean;
31
- }
32
- export declare const numberSetting: (
33
- name: string,
34
- group: string,
35
- value: number,
36
- min: number,
37
- max: number,
38
- step: number,
39
- unit: string,
40
- about: string,
41
- live?: boolean,
42
- ) => SettingRow;
43
- export declare const colorSetting: (
44
- name: string,
45
- group: string,
46
- value: SettingColor,
47
- min: number,
48
- max: number,
49
- about: string,
50
- live?: boolean,
51
- ) => SettingRow;
52
- export declare const choiceSetting: (
53
- name: string,
54
- group: string,
55
- choices: readonly string[],
56
- about: string,
57
- live?: boolean,
58
- ) => SettingRow;
59
- /** The row with a null default that follows the weather master slider `weather` until a value is given. */
60
- export declare const followsWeather: (row: SettingRow, weather: string) => SettingRow;
61
- /** Marks `key` of `target` as set by hand (`held` true) or hands it back to the weather (false). */
62
- export declare function holdFromWeather(target: object, key: string, held?: boolean): void;
63
- /** True while `key` of `target` holds a value set by hand, which the weather drive leaves alone. */
64
- export declare const heldFromWeather: (target: object, key: string) => boolean;
65
- export declare const sameSettingValue: (a: unknown, b: unknown) => boolean;
66
- export declare function copySettingValue(v: SettingValue): SettingValue;
67
- /** A fresh object holding every row at its default (a slider panel's state). */
68
- export declare function settingDefaults(rows: readonly SettingRow[]): Record<string, SettingValue>;
69
- /** The rows that may change every frame without a rebuild. */
70
- export declare const liveSettings: (rows: readonly SettingRow[]) => SettingRow[];
71
- /** A name to row map. */
72
- export declare const settingIndex: (rows: readonly SettingRow[]) => Map<string, SettingRow>;
73
- /** @throws RangeError when `v` is not a value of `row`. */
74
- export declare function checkSettingValue(row: SettingRow, v: unknown, label: string): void;
75
- /** @throws TypeError for an unknown name; RangeError for a bad value or a null on a row that is not nullable. */
76
- export declare function checkSettings(
77
- rows: readonly SettingRow[] | ReadonlyMap<string, SettingRow>,
78
- values: SettingValues,
79
- label: string,
80
- entry?: string,
81
- ): void;
82
- /** Checks `values`, then calls `write` once per row (or per row `only` accepts) with the given value or the default. */
83
- export declare function applySettings(
84
- rows: readonly SettingRow[],
85
- values: SettingValues,
86
- label: string,
87
- write: (row: SettingRow, value: SettingValue) => void,
88
- only?: (row: SettingRow) => boolean,
89
- ): void;
1
+ /** A colour value: linear RGB. */
2
+ export type SettingColor = readonly [number, number, number];
3
+ /** One gradient stop: a colour at a position (`elevation` unless the row's `stopKey` says otherwise). */
4
+ export type SettingStop = { readonly color: SettingColor };
5
+ /** One value of a setting: a number, a colour, a choice, gradient stops, or null where `nullable`. */
6
+ export type SettingValue = number | SettingColor | string | readonly SettingStop[] | null;
7
+ /** Values by setting name; a name left out takes its default. */
8
+ export type SettingValues = Readonly<Record<string, SettingValue>>;
9
+ /** One slider row, the shape every package's `/settings` entry shares. */
10
+ export interface SettingRow {
11
+ readonly name: string;
12
+ readonly group: string;
13
+ /** `number` is a slider, `color` three sliders or a picker, `choice` a list, `gradient` a stop editor. */
14
+ readonly kind: 'number' | 'color' | 'choice' | 'gradient';
15
+ /** The value with which the target draws exactly as it does without the option (null: follow the weather). */
16
+ readonly default: SettingValue;
17
+ readonly min?: number;
18
+ readonly max?: number;
19
+ readonly step?: number;
20
+ readonly choices?: readonly string[];
21
+ /** May be null: the target uses its own value, or follows the weather when `weather` is set. */
22
+ readonly nullable?: boolean;
23
+ /** The weather master slider that drives this row while it is null. */
24
+ readonly weather?: string;
25
+ /** The key a gradient stop is placed by (default `elevation`). */
26
+ readonly stopKey?: string;
27
+ readonly unit: string;
28
+ readonly about: string;
29
+ /** True: cheap to write every frame (no pipeline, buffer or texture is created), so it can be keyed over a shot. False: writing it rebuilds something. */
30
+ readonly live: boolean;
31
+ }
32
+ export declare const numberSetting: (
33
+ name: string,
34
+ group: string,
35
+ value: number,
36
+ min: number,
37
+ max: number,
38
+ step: number,
39
+ unit: string,
40
+ about: string,
41
+ live?: boolean,
42
+ ) => SettingRow;
43
+ export declare const colorSetting: (
44
+ name: string,
45
+ group: string,
46
+ value: SettingColor,
47
+ min: number,
48
+ max: number,
49
+ about: string,
50
+ live?: boolean,
51
+ ) => SettingRow;
52
+ export declare const choiceSetting: (
53
+ name: string,
54
+ group: string,
55
+ choices: readonly string[],
56
+ about: string,
57
+ live?: boolean,
58
+ ) => SettingRow;
59
+ /** The row with a null default that follows the weather master slider `weather` until a value is given. */
60
+ export declare const followsWeather: (row: SettingRow, weather: string) => SettingRow;
61
+ /** Marks `key` of `target` as set by hand (`held` true) or hands it back to the weather (false). */
62
+ export declare function holdFromWeather(target: object, key: string, held?: boolean): void;
63
+ /** True while `key` of `target` holds a value set by hand, which the weather drive leaves alone. */
64
+ export declare const heldFromWeather: (target: object, key: string) => boolean;
65
+ export declare const sameSettingValue: (a: unknown, b: unknown) => boolean;
66
+ export declare function copySettingValue(v: SettingValue): SettingValue;
67
+ /** A fresh object holding every row at its default (a slider panel's state). */
68
+ export declare function settingDefaults(rows: readonly SettingRow[]): Record<string, SettingValue>;
69
+ /** The rows that may change every frame without a rebuild. */
70
+ export declare const liveSettings: (rows: readonly SettingRow[]) => SettingRow[];
71
+ /** A name to row map. */
72
+ export declare const settingIndex: (rows: readonly SettingRow[]) => Map<string, SettingRow>;
73
+ /** @throws RangeError when `v` is not a value of `row`. */
74
+ export declare function checkSettingValue(row: SettingRow, v: unknown, label: string): void;
75
+ /** @throws TypeError for an unknown name; RangeError for a bad value or a null on a row that is not nullable. */
76
+ export declare function checkSettings(
77
+ rows: readonly SettingRow[] | ReadonlyMap<string, SettingRow>,
78
+ values: SettingValues,
79
+ label: string,
80
+ entry?: string,
81
+ ): void;
82
+ /** Checks `values`, then calls `write` once per row (or per row `only` accepts) with the given value or the default. */
83
+ export declare function applySettings(
84
+ rows: readonly SettingRow[],
85
+ values: SettingValues,
86
+ label: string,
87
+ write: (row: SettingRow, value: SettingValue) => void,
88
+ only?: (row: SettingRow) => boolean,
89
+ ): void;
@@ -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 { n as e } from "./view-rect-TO68f_UR.js";
@@ -6,7 +6,7 @@ import { n as t } from "./pass-B5mPip-t.js";
6
6
  import { MargoError as n } from "@margoengine/math/errors";
7
7
  import { invertMatrixStable as r } from "@margoengine/math/mat4";
8
8
  //#region src/shaders/stars.wgsl?raw
9
- var i = "struct CameraUniforms {\r\n inverseViewProjection: mat4x4<f32>,\r\n position: vec4<f32>,\r\n};\r\n@group(0) @binding(0) var<uniform> camera: CameraUniforms;\r\n\r\nstruct VertexOutput {\r\n @builtin(position) position: vec4<f32>,\r\n @location(0) ray: vec3<f32>,\r\n};\r\n\r\n@vertex\r\nfn vs_main(@builtin(vertex_index) index: u32) -> VertexOutput {\r\n let x = f32(i32(index & 1u) * 4 - 1);\r\n let y = f32(i32(index & 2u) * 2 - 1);\r\n var out: VertexOutput;\r\n out.position = vec4<f32>(x, y, 0.0, 1.0);\r\n let world = camera.inverseViewProjection * out.position;\r\n out.ray = world.xyz - camera.position.xyz * world.w;\r\n return out;\r\n}\r\n\r\n\r\n\r\n\r\nfn pcg(v: u32) -> u32 {\r\n let state = v * 747796405u + 2891336453u;\r\n let word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u;\r\n return (word >> 22u) ^ word;\r\n}\r\n\r\nfn hash(p: vec3<f32>) -> f32 {\r\n let cell = bitcast<vec3<u32>>(vec3<i32>(p));\r\n return f32(pcg(cell.x + pcg(cell.y + pcg(cell.z))) >> 8u) / 16777216.0;\r\n}\r\n\r\n@fragment\r\nfn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {\r\n let ray = normalize(in.ray);\r\n let magnitude = abs(ray);\r\n var plane: vec2<f32>;\r\n var face: f32;\r\n if (magnitude.x >= magnitude.y && magnitude.x >= magnitude.z) {\r\n plane = ray.yz / magnitude.x;\r\n face = select(0.0, 1.0, ray.x > 0.0);\r\n } else if (magnitude.y >= magnitude.z) {\r\n plane = ray.xz / magnitude.y;\r\n face = select(2.0, 3.0, ray.y > 0.0);\r\n } else {\r\n plane = ray.xy / magnitude.z;\r\n face = select(4.0, 5.0, ray.z > 0.0);\r\n }\r\n let grid = (plane * 0.5 + 0.5) * 450.0;\r\n let seed = hash(vec3<f32>(floor(grid), face));\r\n let distance = length(fract(grid) - 0.5);\r\n let pixel = max(fwidth(grid.x), fwidth(grid.y));\r\n let star = (1.0 - smoothstep(0.02, 0.065 + pixel * 0.5, distance)) * smoothstep(0.998, 1.0, seed);\r\n let tint = mix(vec3<f32>(0.70, 0.84, 1.0), vec3<f32>(1.0, 0.86, 0.66), hash(vec3<f32>(floor(grid), face + 10.0)));\r\n return vec4<f32>(vec3<f32>(0.0015, 0.002, 0.004) + tint * star * 0.8, 1.0);\r\n}\r\n", a = class a {coreRequirement=__margoCoreRequirement("0.1.0",import.meta.url);
9
+ var i = "struct CameraUniforms {\n inverseViewProjection: mat4x4<f32>,\n position: vec4<f32>,\n};\n@group(0) @binding(0) var<uniform> camera: CameraUniforms;\n\nstruct VertexOutput {\n @builtin(position) position: vec4<f32>,\n @location(0) ray: vec3<f32>,\n};\n\n@vertex\nfn vs_main(@builtin(vertex_index) index: u32) -> VertexOutput {\n let x = f32(i32(index & 1u) * 4 - 1);\n let y = f32(i32(index & 2u) * 2 - 1);\n var out: VertexOutput;\n out.position = vec4<f32>(x, y, 0.0, 1.0);\n let world = camera.inverseViewProjection * out.position;\n out.ray = world.xyz - camera.position.xyz * world.w;\n return out;\n}\n\n\n\n\nfn pcg(v: u32) -> u32 {\n let state = v * 747796405u + 2891336453u;\n let word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u;\n return (word >> 22u) ^ word;\n}\n\nfn hash(p: vec3<f32>) -> f32 {\n let cell = bitcast<vec3<u32>>(vec3<i32>(p));\n return f32(pcg(cell.x + pcg(cell.y + pcg(cell.z))) >> 8u) / 16777216.0;\n}\n\n@fragment\nfn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {\n let ray = normalize(in.ray);\n let magnitude = abs(ray);\n var plane: vec2<f32>;\n var face: f32;\n if (magnitude.x >= magnitude.y && magnitude.x >= magnitude.z) {\n plane = ray.yz / magnitude.x;\n face = select(0.0, 1.0, ray.x > 0.0);\n } else if (magnitude.y >= magnitude.z) {\n plane = ray.xz / magnitude.y;\n face = select(2.0, 3.0, ray.y > 0.0);\n } else {\n plane = ray.xy / magnitude.z;\n face = select(4.0, 5.0, ray.z > 0.0);\n }\n let grid = (plane * 0.5 + 0.5) * 450.0;\n let seed = hash(vec3<f32>(floor(grid), face));\n let distance = length(fract(grid) - 0.5);\n let pixel = max(fwidth(grid.x), fwidth(grid.y));\n let star = (1.0 - smoothstep(0.02, 0.065 + pixel * 0.5, distance)) * smoothstep(0.998, 1.0, seed);\n let tint = mix(vec3<f32>(0.70, 0.84, 1.0), vec3<f32>(1.0, 0.86, 0.66), hash(vec3<f32>(floor(grid), face + 10.0)));\n return vec4<f32>(vec3<f32>(0.0015, 0.002, 0.004) + tint * star * 0.8, 1.0);\n}\n", a = class a {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
10
10
  constructor() {
11
11
  this.enabled = !0, this.name = "creative:stars", this.pipelines = /* @__PURE__ */ new Map(), this.data = /* @__PURE__ */ new Float32Array(20), this.inverse = /* @__PURE__ */ new Float32Array(16), this.workspace = /* @__PURE__ */ new Float64Array(52), this.descriptor = t(), this.color = this.descriptor.colorAttachments[0], this.depth = this.descriptor.depthStencilAttachment, this.execute = (t) => {
12
12
  if (t.backend !== "webgpu" || !this.enabled) return;
@@ -35,7 +35,7 @@ var i = "struct CameraUniforms {\r\n inverseViewProjection: mat4x4<f32>,\r\n
35
35
  a.setPipeline(i), a.setBindGroup(0, this.bindings), e(a, t), a.draw(3), a.end();
36
36
  };
37
37
  }
38
- static attach(e) {__margoAssertCore(e,__margoCoreRequirement("0.1.0",import.meta.url));
38
+ static attach(e) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
39
39
  let t = new a();
40
40
  return e.use(t), t;
41
41
  }
package/dist/stars.js CHANGED
@@ -1 +1 @@
1
- export { t as Stars } from "./stars-DWF7qnc1.js";
1
+ export { t as Stars } from "./stars-C0SH8-aJ.js";
package/dist/targets.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./msaa-DjFZ9hVW.js";
1
+ import { t as e } from "./msaa-8hWFieoE.js";
2
2
  import { t } from "./quality-DFm-cQWC.js";
3
3
  import { t as n } from "./texture-target-CGqE9pOa.js";
4
4
  //#region src/targets.ts
package/dist/toon.js CHANGED
@@ -1,10 +1,10 @@
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";
5
5
  //#region src/toon.ts
6
- var t = class t {coreRequirement=__margoCoreRequirement("0.1.0",import.meta.url);
7
- static attach(e, n) {__margoAssertCore(e,__margoCoreRequirement("0.1.0",import.meta.url));
6
+ var t = class t {coreRequirement=__margoCoreRequirement("1.0.0",import.meta.url);
7
+ static attach(e, n) {__margoAssertCore(e,__margoCoreRequirement("1.0.0",import.meta.url));
8
8
  let r = new t(n);
9
9
  return e.use(r), r;
10
10
  }
package/package.json CHANGED
@@ -1,126 +1,126 @@
1
- {
2
- "name": "@margoengine/creative",
3
- "version": "0.1.0",
4
- "description": "WebGPU particles, atmosphere, toon shading and post-processing for Margo Engine.",
5
- "keywords": [
6
- "margoengine",
7
- "webgpu",
8
- "3d",
9
- "creative"
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/creative"
19
- },
20
- "license": "Apache-2.0",
21
- "author": "Scott Campbell",
22
- "type": "module",
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "scripts": {
27
- "test:settings:browser": "cd ../.. && node packages/creative/tests/grass-settings-browser.mjs && node packages/creative/tests/grass-settings-browser.mjs --compat",
28
- "build": "node scripts/build.js",
29
- "test": "npm run build && node --test tests/*.test.js ../../tests/modern-grass.test.js ../../tests/deep-render-creative.test.js ../../tests/audit-rendering-composition.test.js ../../examples/package-benchmarks/proofs/package-guard.mjs",
30
- "test:browser": "npm run build && node scripts/test-browser.js",
31
- "test:gpu:targets": "node scripts/test-targets.js",
32
- "test:gpu:paint": "node scripts/test-paint.js",
33
- "test:gpu:targets-depth": "cd ../.. && node packages/creative/scripts/test-targets-depth.js",
34
- "dev": "vite --config vite.config.js --open /examples/earth/index.html",
35
- "prepack": "npm run build",
36
- "test:gpu:grass-atmosphere": "cd ../.. && node packages/creative/scripts/test-grass-terrain.js && node packages/creative/scripts/test-orbit-atmosphere.js",
37
- "test:gpu:paint-aniso": "cd ../.. && node packages/creative/scripts/test-paint-aniso.js",
38
- "test:gpu:post-contrast": "cd ../.. && node packages/creative/tests/post-contrast-browser.mjs",
39
- "test:gpu:post-contrast-zero": "cd ../.. && node packages/creative/tests/post-contrast-zero-browser.mjs",
40
- "test:gpu:post-views": "cd ../.. && node packages/creative/tests/post-views-browser.mjs"
41
- },
42
- "sideEffects": false,
43
- "exports": {
44
- "./paint": {
45
- "types": "./dist/paint.d.ts",
46
- "import": "./dist/paint.js"
47
- },
48
- ".": {
49
- "types": "./dist/index.d.ts",
50
- "import": "./dist/index.js"
51
- },
52
- "./particles": {
53
- "types": "./dist/particles.d.ts",
54
- "import": "./dist/particles.js"
55
- },
56
- "./targets": {
57
- "types": "./dist/targets.d.ts",
58
- "import": "./dist/targets.js"
59
- },
60
- "./toon": {
61
- "types": "./dist/toon.d.ts",
62
- "import": "./dist/toon.js"
63
- },
64
- "./post": {
65
- "types": "./dist/post.d.ts",
66
- "import": "./dist/post.js"
67
- },
68
- "./grass": {
69
- "types": "./dist/grass.d.ts",
70
- "import": "./dist/grass.js"
71
- },
72
- "./grass-settings": {
73
- "types": "./dist/grass-settings.d.ts",
74
- "import": "./dist/grass-settings.js"
75
- },
76
- "./planet": {
77
- "types": "./dist/planet.d.ts",
78
- "import": "./dist/planet.js"
79
- },
80
- "./stars": {
81
- "types": "./dist/stars.d.ts",
82
- "import": "./dist/stars.js"
83
- },
84
- "./planet-atmosphere": {
85
- "types": "./dist/planet-atmosphere.d.ts",
86
- "import": "./dist/planet-atmosphere.js"
87
- },
88
- "./grass-terrain": {
89
- "types": "./dist/grass-terrain.d.ts",
90
- "import": "./dist/grass-terrain.js"
91
- },
92
- "./paint-aniso": {
93
- "types": "./dist/paint-aniso.d.ts",
94
- "import": "./dist/paint-aniso.js"
95
- },
96
- "./targets-depth": {
97
- "types": "./dist/targets-depth.d.ts",
98
- "import": "./dist/targets-depth.js"
99
- }
100
- },
101
- "files": [
102
- "dist",
103
- "NOTICE"
104
- ],
105
- "peerDependencies": {
106
- "@margoengine/core": "^0.1.0",
107
- "@margoengine/post": "^0.1.0",
108
- "@margoengine/sky": "^0.1.0",
109
- "@margoengine/scatter": "^0.1.0"
110
- },
111
- "peerDependenciesMeta": {
112
- "@margoengine/post": {
113
- "optional": true
114
- },
115
- "@margoengine/sky": {
116
- "optional": true
117
- },
118
- "@margoengine/scatter": {
119
- "optional": true
120
- }
121
- },
122
- "dependencies": {
123
- "@margoengine/vfx": "^0.1.0",
124
- "@margoengine/math": "^0.1.0"
125
- }
126
- }
1
+ {
2
+ "name": "@margoengine/creative",
3
+ "version": "1.0.0",
4
+ "description": "WebGPU particles, atmosphere, toon shading and post-processing for Margo Engine.",
5
+ "keywords": [
6
+ "margoengine",
7
+ "webgpu",
8
+ "3d",
9
+ "creative"
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/creative"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "author": "Scott Campbell",
22
+ "type": "module",
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "scripts": {
27
+ "test:settings:browser": "cd ../.. && node packages/creative/tests/grass-settings-browser.mjs && node packages/creative/tests/grass-settings-browser.mjs --compat",
28
+ "build": "node scripts/build.js",
29
+ "test": "npm run build && node --test tests/*.test.js ../../tests/modern-grass.test.js ../../tests/deep-render-creative.test.js ../../tests/audit-rendering-composition.test.js ../../examples/package-benchmarks/proofs/package-guard.mjs",
30
+ "test:browser": "npm run build && node scripts/test-browser.js",
31
+ "test:gpu:targets": "node scripts/test-targets.js",
32
+ "test:gpu:paint": "node scripts/test-paint.js",
33
+ "test:gpu:targets-depth": "cd ../.. && node packages/creative/scripts/test-targets-depth.js",
34
+ "dev": "vite --config vite.config.js --open /examples/earth/index.html",
35
+ "prepack": "npm run build",
36
+ "test:gpu:grass-atmosphere": "cd ../.. && node packages/creative/scripts/test-grass-terrain.js && node packages/creative/scripts/test-orbit-atmosphere.js",
37
+ "test:gpu:paint-aniso": "cd ../.. && node packages/creative/scripts/test-paint-aniso.js",
38
+ "test:gpu:post-contrast": "cd ../.. && node packages/creative/tests/post-contrast-browser.mjs",
39
+ "test:gpu:post-contrast-zero": "cd ../.. && node packages/creative/tests/post-contrast-zero-browser.mjs",
40
+ "test:gpu:post-views": "cd ../.. && node packages/creative/tests/post-views-browser.mjs"
41
+ },
42
+ "sideEffects": false,
43
+ "exports": {
44
+ "./paint": {
45
+ "types": "./dist/paint.d.ts",
46
+ "import": "./dist/paint.js"
47
+ },
48
+ ".": {
49
+ "types": "./dist/index.d.ts",
50
+ "import": "./dist/index.js"
51
+ },
52
+ "./particles": {
53
+ "types": "./dist/particles.d.ts",
54
+ "import": "./dist/particles.js"
55
+ },
56
+ "./targets": {
57
+ "types": "./dist/targets.d.ts",
58
+ "import": "./dist/targets.js"
59
+ },
60
+ "./toon": {
61
+ "types": "./dist/toon.d.ts",
62
+ "import": "./dist/toon.js"
63
+ },
64
+ "./post": {
65
+ "types": "./dist/post.d.ts",
66
+ "import": "./dist/post.js"
67
+ },
68
+ "./grass": {
69
+ "types": "./dist/grass.d.ts",
70
+ "import": "./dist/grass.js"
71
+ },
72
+ "./grass-settings": {
73
+ "types": "./dist/grass-settings.d.ts",
74
+ "import": "./dist/grass-settings.js"
75
+ },
76
+ "./planet": {
77
+ "types": "./dist/planet.d.ts",
78
+ "import": "./dist/planet.js"
79
+ },
80
+ "./stars": {
81
+ "types": "./dist/stars.d.ts",
82
+ "import": "./dist/stars.js"
83
+ },
84
+ "./planet-atmosphere": {
85
+ "types": "./dist/planet-atmosphere.d.ts",
86
+ "import": "./dist/planet-atmosphere.js"
87
+ },
88
+ "./grass-terrain": {
89
+ "types": "./dist/grass-terrain.d.ts",
90
+ "import": "./dist/grass-terrain.js"
91
+ },
92
+ "./paint-aniso": {
93
+ "types": "./dist/paint-aniso.d.ts",
94
+ "import": "./dist/paint-aniso.js"
95
+ },
96
+ "./targets-depth": {
97
+ "types": "./dist/targets-depth.d.ts",
98
+ "import": "./dist/targets-depth.js"
99
+ }
100
+ },
101
+ "files": [
102
+ "dist",
103
+ "NOTICE"
104
+ ],
105
+ "peerDependencies": {
106
+ "@margoengine/core": "^1.0.0",
107
+ "@margoengine/post": "^1.0.0",
108
+ "@margoengine/sky": "^1.0.0",
109
+ "@margoengine/scatter": "^1.0.0"
110
+ },
111
+ "peerDependenciesMeta": {
112
+ "@margoengine/post": {
113
+ "optional": true
114
+ },
115
+ "@margoengine/sky": {
116
+ "optional": true
117
+ },
118
+ "@margoengine/scatter": {
119
+ "optional": true
120
+ }
121
+ },
122
+ "dependencies": {
123
+ "@margoengine/vfx": "^1.0.0",
124
+ "@margoengine/math": "^1.0.0"
125
+ }
126
+ }