@margoengine/vfx 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.
Files changed (46) hide show
  1. package/LICENSE +201 -201
  2. package/NOTICE +4 -4
  3. package/README.md +2241 -1642
  4. package/dist/{base-C9upJytz.js → base-LGs65K7K.js} +174 -123
  5. package/dist/base.d.ts +104 -2
  6. package/dist/base.js +1 -1
  7. package/dist/blown-sand.js +3 -3
  8. package/dist/clouds.d.ts +12 -4
  9. package/dist/clouds.js +35 -18
  10. package/dist/compat-BFjXAQuu.js +14 -0
  11. package/dist/debris.d.ts +43 -0
  12. package/dist/debris.js +33 -1
  13. package/dist/dust-current.d.ts +66 -0
  14. package/dist/dust-current.js +92 -0
  15. package/dist/fire-front.d.ts +72 -1
  16. package/dist/fire-front.js +309 -69
  17. package/dist/fire.d.ts +24 -3
  18. package/dist/fire.js +114 -93
  19. package/dist/flame.d.ts +171 -3
  20. package/dist/flame.js +343 -131
  21. package/dist/flocking-shaders.d.ts +48 -0
  22. package/dist/flocking-sim.d.ts +623 -0
  23. package/dist/flocking.d.ts +145 -0
  24. package/dist/flocking.js +1846 -0
  25. package/dist/gunfire.d.ts +52 -6
  26. package/dist/gunfire.js +108 -98
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/json.js +2 -0
  30. package/dist/lit-Dx2tNwP-.js +152 -0
  31. package/dist/lit.d.ts +8 -1
  32. package/dist/lit.js +1 -105
  33. package/dist/mesh.d.ts +2 -0
  34. package/dist/mesh.js +92 -69
  35. package/dist/over-life.js +16 -15
  36. package/dist/reactive-mask-B8xbyzlk.js +69 -0
  37. package/dist/ribbons.d.ts +4 -2
  38. package/dist/ribbons.js +87 -73
  39. package/dist/settings.js +1 -1
  40. package/dist/shader.d.ts +5 -0
  41. package/dist/shared/fog.d.ts +33 -33
  42. package/dist/shared/pass.d.ts +53 -53
  43. package/dist/shared/settings.d.ts +89 -89
  44. package/dist/smoke.d.ts +72 -4
  45. package/dist/smoke.js +280 -56
  46. package/package.json +200 -192
package/package.json CHANGED
@@ -1,192 +1,200 @@
1
- {
2
- "name": "@margoengine/vfx",
3
- "version": "0.1.0",
4
- "description": "GPU particle simulation and indirect billboards, with curves over life and sphere, cone and mesh-surface emitters.",
5
- "keywords": [
6
- "margoengine",
7
- "webgpu",
8
- "3d",
9
- "vfx"
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/vfx"
19
- },
20
- "license": "Apache-2.0",
21
- "author": "Scott Campbell",
22
- "type": "module",
23
- "publishConfig": {
24
- "access": "public"
25
- },
26
- "dependencies": {
27
- "@margoengine/clustered": "^0.1.0",
28
- "@margoengine/math": "^0.1.0",
29
- "@margoengine/sky": "^0.1.0"
30
- },
31
- "scripts": {
32
- "build": "node ../../scripts/build-optional.js vfx",
33
- "test": "npm run build && node --test test/*.test.js ../../examples/package-benchmarks/proofs/package-guard.mjs",
34
- "prepack": "npm --prefix ../.. run build:packages",
35
- "test:gpu:parity": "cd ../.. && node packages/vfx/test/parity.mjs --all && node packages/vfx/test/parity.mjs --all --compat",
36
- "test:gpu": "cd ../.. && node packages/vfx/test/browser-check.mjs && node packages/vfx/test/features-check.mjs && node packages/vfx/test/lit-check.mjs && node packages/vfx/test/flipbook-webgl2.mjs && node packages/vfx/test/shadows-nodes-webgl2.mjs && node packages/vfx/test/seek-check.mjs && node packages/vfx/test/seek-check.mjs --compat && node packages/vfx/test/film-clock-check.mjs && node packages/vfx/test/clouds-check.mjs && node packages/vfx/test/blown-sand-check.mjs && node packages/vfx/test/settings-check.mjs && node packages/vfx/test/smoke-check.mjs && node packages/vfx/test/fire-front-check.mjs && node packages/vfx/test/flame-check.mjs && node packages/vfx/test/gunfire-check.mjs && node packages/vfx/test/solid-check.mjs"
37
- },
38
- "sideEffects": false,
39
- "exports": {
40
- ".": {
41
- "types": "./dist/index.d.ts",
42
- "import": "./dist/index.js"
43
- },
44
- "./base": {
45
- "types": "./dist/base.d.ts",
46
- "import": "./dist/base.js"
47
- },
48
- "./obstacles": {
49
- "types": "./dist/obstacles.d.ts",
50
- "import": "./dist/obstacles.js"
51
- },
52
- "./wrap": {
53
- "types": "./dist/wrap.d.ts",
54
- "import": "./dist/wrap.js"
55
- },
56
- "./sort": {
57
- "types": "./dist/sort.d.ts",
58
- "import": "./dist/sort.js"
59
- },
60
- "./texture": {
61
- "types": "./dist/texture.d.ts",
62
- "import": "./dist/texture.js"
63
- },
64
- "./soft": {
65
- "types": "./dist/soft.d.ts",
66
- "import": "./dist/soft.js"
67
- },
68
- "./curves": {
69
- "types": "./dist/curves.d.ts",
70
- "import": "./dist/curves.js"
71
- },
72
- "./emitter": {
73
- "types": "./dist/emitter.d.ts",
74
- "import": "./dist/emitter.js"
75
- },
76
- "./ribbons": {
77
- "types": "./dist/ribbons.d.ts",
78
- "import": "./dist/ribbons.js"
79
- },
80
- "./mesh": {
81
- "types": "./dist/mesh.d.ts",
82
- "import": "./dist/mesh.js"
83
- },
84
- "./events": {
85
- "types": "./dist/events.d.ts",
86
- "import": "./dist/events.js"
87
- },
88
- "./lit": {
89
- "types": "./dist/lit.d.ts",
90
- "import": "./dist/lit.js"
91
- },
92
- "./depth-collide": {
93
- "types": "./dist/depth-collide.d.ts",
94
- "import": "./dist/depth-collide.js"
95
- },
96
- "./stretch": {
97
- "types": "./dist/stretch.d.ts",
98
- "import": "./dist/stretch.js"
99
- },
100
- "./fields": {
101
- "types": "./dist/fields.d.ts",
102
- "import": "./dist/fields.js"
103
- },
104
- "./skinned": {
105
- "types": "./dist/skinned.d.ts",
106
- "import": "./dist/skinned.js"
107
- },
108
- "./flipbook": {
109
- "types": "./dist/flipbook.d.ts",
110
- "import": "./dist/flipbook.js"
111
- },
112
- "./shadows": {
113
- "types": "./dist/shadows.d.ts",
114
- "import": "./dist/shadows.js"
115
- },
116
- "./nodes": {
117
- "types": "./dist/nodes.d.ts",
118
- "import": "./dist/nodes.js"
119
- },
120
- "./space": {
121
- "types": "./dist/space.d.ts",
122
- "import": "./dist/space.js"
123
- },
124
- "./over-life": {
125
- "types": "./dist/over-life.d.ts",
126
- "import": "./dist/over-life.js"
127
- },
128
- "./shapes": {
129
- "types": "./dist/shapes.d.ts",
130
- "import": "./dist/shapes.js"
131
- },
132
- "./node-system": {
133
- "types": "./dist/node-system.d.ts",
134
- "import": "./dist/node-system.js"
135
- },
136
- "./schedule": {
137
- "types": "./dist/schedule.d.ts",
138
- "import": "./dist/schedule.js"
139
- },
140
- "./json": {
141
- "types": "./dist/json.d.ts",
142
- "import": "./dist/json.js"
143
- },
144
- "./fire": {
145
- "types": "./dist/fire.d.ts",
146
- "import": "./dist/fire.js"
147
- },
148
- "./settings": {
149
- "types": "./dist/settings.d.ts",
150
- "import": "./dist/settings.js"
151
- },
152
- "./clouds": {
153
- "types": "./dist/clouds.d.ts",
154
- "import": "./dist/clouds.js"
155
- },
156
- "./debris": {
157
- "types": "./dist/debris.d.ts",
158
- "import": "./dist/debris.js"
159
- },
160
- "./blown-sand": {
161
- "types": "./dist/blown-sand.d.ts",
162
- "import": "./dist/blown-sand.js"
163
- },
164
- "./flame": {
165
- "types": "./dist/flame.d.ts",
166
- "import": "./dist/flame.js"
167
- },
168
- "./smoke": {
169
- "types": "./dist/smoke.d.ts",
170
- "import": "./dist/smoke.js"
171
- },
172
- "./fire-front": {
173
- "types": "./dist/fire-front.d.ts",
174
- "import": "./dist/fire-front.js"
175
- },
176
- "./solid": {
177
- "types": "./dist/solid.d.ts",
178
- "import": "./dist/solid.js"
179
- },
180
- "./gunfire": {
181
- "types": "./dist/gunfire.d.ts",
182
- "import": "./dist/gunfire.js"
183
- }
184
- },
185
- "files": [
186
- "dist",
187
- "NOTICE"
188
- ],
189
- "peerDependencies": {
190
- "@margoengine/core": "^0.1.0"
191
- }
192
- }
1
+ {
2
+ "name": "@margoengine/vfx",
3
+ "version": "1.0.0",
4
+ "description": "GPU particle simulation and indirect billboards, with curves over life and sphere, cone and mesh-surface emitters.",
5
+ "keywords": [
6
+ "margoengine",
7
+ "webgpu",
8
+ "3d",
9
+ "vfx"
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/vfx"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "author": "Scott Campbell",
22
+ "type": "module",
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "dependencies": {
27
+ "@margoengine/clustered": "^1.0.0",
28
+ "@margoengine/math": "^1.0.0",
29
+ "@margoengine/sky": "^1.0.0"
30
+ },
31
+ "scripts": {
32
+ "build": "node ../../scripts/build-optional.js vfx",
33
+ "test": "npm run build && node --test test/*.test.js ../../examples/package-benchmarks/proofs/package-guard.mjs",
34
+ "prepack": "npm --prefix ../.. run build:packages",
35
+ "test:gpu:parity": "cd ../.. && node packages/vfx/test/parity.mjs --all && node packages/vfx/test/parity.mjs --all --compat",
36
+ "test:gpu": "cd ../.. && node packages/vfx/test/browser-check.mjs && node packages/vfx/test/features-check.mjs && node packages/vfx/test/lit-check.mjs && node packages/vfx/test/flipbook-webgl2.mjs && node packages/vfx/test/shadows-nodes-webgl2.mjs && node packages/vfx/test/seek-check.mjs && node packages/vfx/test/seek-check.mjs --compat && node packages/vfx/test/film-clock-check.mjs && node packages/vfx/test/clouds-check.mjs && node packages/vfx/test/blown-sand-check.mjs && node packages/vfx/test/blown-sand-check.mjs --compat && node packages/vfx/test/settings-check.mjs && node packages/vfx/test/smoke-check.mjs && node packages/vfx/test/smoke-ao.browser.mjs && node packages/vfx/test/smoke-ao.browser.mjs --compat && node packages/vfx/test/fire-front-check.mjs && node packages/vfx/test/flame-check.mjs && node packages/vfx/test/gunfire-check.mjs && node packages/vfx/test/solid-check.mjs && node packages/vfx/test/reactive-check.mjs && node packages/vfx/test/reactive-sources-check.mjs && node packages/vfx/test/reactive-sources-check.mjs --compat && node packages/vfx/test/flocking-check.mjs && node packages/vfx/test/flocking-check.mjs --compat"
37
+ },
38
+ "sideEffects": false,
39
+ "exports": {
40
+ ".": {
41
+ "types": "./dist/index.d.ts",
42
+ "import": "./dist/index.js"
43
+ },
44
+ "./base": {
45
+ "types": "./dist/base.d.ts",
46
+ "import": "./dist/base.js"
47
+ },
48
+ "./obstacles": {
49
+ "types": "./dist/obstacles.d.ts",
50
+ "import": "./dist/obstacles.js"
51
+ },
52
+ "./wrap": {
53
+ "types": "./dist/wrap.d.ts",
54
+ "import": "./dist/wrap.js"
55
+ },
56
+ "./sort": {
57
+ "types": "./dist/sort.d.ts",
58
+ "import": "./dist/sort.js"
59
+ },
60
+ "./texture": {
61
+ "types": "./dist/texture.d.ts",
62
+ "import": "./dist/texture.js"
63
+ },
64
+ "./soft": {
65
+ "types": "./dist/soft.d.ts",
66
+ "import": "./dist/soft.js"
67
+ },
68
+ "./curves": {
69
+ "types": "./dist/curves.d.ts",
70
+ "import": "./dist/curves.js"
71
+ },
72
+ "./emitter": {
73
+ "types": "./dist/emitter.d.ts",
74
+ "import": "./dist/emitter.js"
75
+ },
76
+ "./ribbons": {
77
+ "types": "./dist/ribbons.d.ts",
78
+ "import": "./dist/ribbons.js"
79
+ },
80
+ "./mesh": {
81
+ "types": "./dist/mesh.d.ts",
82
+ "import": "./dist/mesh.js"
83
+ },
84
+ "./events": {
85
+ "types": "./dist/events.d.ts",
86
+ "import": "./dist/events.js"
87
+ },
88
+ "./lit": {
89
+ "types": "./dist/lit.d.ts",
90
+ "import": "./dist/lit.js"
91
+ },
92
+ "./depth-collide": {
93
+ "types": "./dist/depth-collide.d.ts",
94
+ "import": "./dist/depth-collide.js"
95
+ },
96
+ "./stretch": {
97
+ "types": "./dist/stretch.d.ts",
98
+ "import": "./dist/stretch.js"
99
+ },
100
+ "./fields": {
101
+ "types": "./dist/fields.d.ts",
102
+ "import": "./dist/fields.js"
103
+ },
104
+ "./skinned": {
105
+ "types": "./dist/skinned.d.ts",
106
+ "import": "./dist/skinned.js"
107
+ },
108
+ "./flipbook": {
109
+ "types": "./dist/flipbook.d.ts",
110
+ "import": "./dist/flipbook.js"
111
+ },
112
+ "./shadows": {
113
+ "types": "./dist/shadows.d.ts",
114
+ "import": "./dist/shadows.js"
115
+ },
116
+ "./nodes": {
117
+ "types": "./dist/nodes.d.ts",
118
+ "import": "./dist/nodes.js"
119
+ },
120
+ "./space": {
121
+ "types": "./dist/space.d.ts",
122
+ "import": "./dist/space.js"
123
+ },
124
+ "./over-life": {
125
+ "types": "./dist/over-life.d.ts",
126
+ "import": "./dist/over-life.js"
127
+ },
128
+ "./shapes": {
129
+ "types": "./dist/shapes.d.ts",
130
+ "import": "./dist/shapes.js"
131
+ },
132
+ "./node-system": {
133
+ "types": "./dist/node-system.d.ts",
134
+ "import": "./dist/node-system.js"
135
+ },
136
+ "./schedule": {
137
+ "types": "./dist/schedule.d.ts",
138
+ "import": "./dist/schedule.js"
139
+ },
140
+ "./json": {
141
+ "types": "./dist/json.d.ts",
142
+ "import": "./dist/json.js"
143
+ },
144
+ "./fire": {
145
+ "types": "./dist/fire.d.ts",
146
+ "import": "./dist/fire.js"
147
+ },
148
+ "./settings": {
149
+ "types": "./dist/settings.d.ts",
150
+ "import": "./dist/settings.js"
151
+ },
152
+ "./clouds": {
153
+ "types": "./dist/clouds.d.ts",
154
+ "import": "./dist/clouds.js"
155
+ },
156
+ "./debris": {
157
+ "types": "./dist/debris.d.ts",
158
+ "import": "./dist/debris.js"
159
+ },
160
+ "./dust-current": {
161
+ "types": "./dist/dust-current.d.ts",
162
+ "import": "./dist/dust-current.js"
163
+ },
164
+ "./blown-sand": {
165
+ "types": "./dist/blown-sand.d.ts",
166
+ "import": "./dist/blown-sand.js"
167
+ },
168
+ "./flame": {
169
+ "types": "./dist/flame.d.ts",
170
+ "import": "./dist/flame.js"
171
+ },
172
+ "./smoke": {
173
+ "types": "./dist/smoke.d.ts",
174
+ "import": "./dist/smoke.js"
175
+ },
176
+ "./fire-front": {
177
+ "types": "./dist/fire-front.d.ts",
178
+ "import": "./dist/fire-front.js"
179
+ },
180
+ "./solid": {
181
+ "types": "./dist/solid.d.ts",
182
+ "import": "./dist/solid.js"
183
+ },
184
+ "./gunfire": {
185
+ "types": "./dist/gunfire.d.ts",
186
+ "import": "./dist/gunfire.js"
187
+ },
188
+ "./flocking": {
189
+ "types": "./dist/flocking.d.ts",
190
+ "import": "./dist/flocking.js"
191
+ }
192
+ },
193
+ "files": [
194
+ "dist",
195
+ "NOTICE"
196
+ ],
197
+ "peerDependencies": {
198
+ "@margoengine/core": "^1.0.0"
199
+ }
200
+ }