@thi.ng/shader-ast-stdlib 0.12.21 → 0.12.23
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/CHANGELOG.md +35 -35
- package/package.json +8 -8
- package/dev/boids.js +0 -1433
- package/dev/grayscott.js +0 -425
- package/dev/snoise-debug.js +0 -252
- package/doc/assets/main.js +0 -54
- package/doc/assets/search.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-11-23T22:46:54Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -13,8 +13,8 @@ and/or version bumps of transitive dependencies.
|
|
|
13
13
|
|
|
14
14
|
#### 🚀 Features
|
|
15
15
|
|
|
16
|
-
- add more 2D SDF prims ([2672e75](https://github.com/thi-ng/umbrella/commit/2672e75))
|
|
17
16
|
- add 2D SDF arc/bezier fns ([07bd445](https://github.com/thi-ng/umbrella/commit/07bd445))
|
|
17
|
+
- add more 2D SDF prims ([2672e75](https://github.com/thi-ng/umbrella/commit/2672e75))
|
|
18
18
|
|
|
19
19
|
#### ♻️ Refactoring
|
|
20
20
|
|
|
@@ -43,9 +43,9 @@ and/or version bumps of transitive dependencies.
|
|
|
43
43
|
|
|
44
44
|
#### ♻️ Refactoring
|
|
45
45
|
|
|
46
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
47
46
|
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
48
47
|
- add .js suffix for all relative imports
|
|
48
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
49
49
|
|
|
50
50
|
## [0.10.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.10.0) (2021-10-12)
|
|
51
51
|
|
|
@@ -66,10 +66,10 @@ and/or version bumps of transitive dependencies.
|
|
|
66
66
|
|
|
67
67
|
#### ♻️ Refactoring
|
|
68
68
|
|
|
69
|
-
- update imports ([b22054e](https://github.com/thi-ng/umbrella/commit/b22054e))
|
|
70
|
-
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
71
69
|
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
72
70
|
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
71
|
+
- update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
|
|
72
|
+
- update imports ([b22054e](https://github.com/thi-ng/umbrella/commit/b22054e))
|
|
73
73
|
|
|
74
74
|
## [0.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.9.0) (2021-08-17)
|
|
75
75
|
|
|
@@ -81,12 +81,12 @@ and/or version bumps of transitive dependencies.
|
|
|
81
81
|
|
|
82
82
|
#### 🚀 Features
|
|
83
83
|
|
|
84
|
-
- add
|
|
84
|
+
- add SDF polyhedra fns ([2100e50](https://github.com/thi-ng/umbrella/commit/2100e50))
|
|
85
|
+
- add oscillator fns ([f14e8cb](https://github.com/thi-ng/umbrella/commit/f14e8cb))
|
|
85
86
|
- add SDF domain ops ([c41b288](https://github.com/thi-ng/umbrella/commit/c41b288))
|
|
86
87
|
- add sdfMirror2()
|
|
87
88
|
- add sdfRepeatPolar()
|
|
88
|
-
- add
|
|
89
|
-
- add SDF polyhedra fns ([2100e50](https://github.com/thi-ng/umbrella/commit/2100e50))
|
|
89
|
+
- add variadic SDF ops ([8d6390c](https://github.com/thi-ng/umbrella/commit/8d6390c))
|
|
90
90
|
|
|
91
91
|
#### ♻️ Refactoring
|
|
92
92
|
|
|
@@ -96,8 +96,8 @@ and/or version bumps of transitive dependencies.
|
|
|
96
96
|
|
|
97
97
|
#### 🚀 Features
|
|
98
98
|
|
|
99
|
-
- variadic sdf isec/sub/union ([fbff935](https://github.com/thi-ng/umbrella/commit/fbff935))
|
|
100
99
|
- add sdfUnion2(), add missing exports ([9d52838](https://github.com/thi-ng/umbrella/commit/9d52838))
|
|
100
|
+
- variadic sdf isec/sub/union ([fbff935](https://github.com/thi-ng/umbrella/commit/fbff935))
|
|
101
101
|
|
|
102
102
|
## [0.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.6.0) (2021-04-24)
|
|
103
103
|
|
|
@@ -121,16 +121,16 @@ and/or version bumps of transitive dependencies.
|
|
|
121
121
|
|
|
122
122
|
#### 🚀 Features
|
|
123
123
|
|
|
124
|
+
- add fit()/fitClamped() ([64ba64c](https://github.com/thi-ng/umbrella/commit/64ba64c))
|
|
125
|
+
- add mixCubic()/mixQuadratic() ([4dfc020](https://github.com/thi-ng/umbrella/commit/4dfc020))
|
|
124
126
|
- add ACES film tonemapping ([8a0b1a3](https://github.com/thi-ng/umbrella/commit/8a0b1a3))
|
|
125
127
|
- update module re-exports
|
|
126
|
-
- add mixCubic()/mixQuadratic() ([4dfc020](https://github.com/thi-ng/umbrella/commit/4dfc020))
|
|
127
|
-
- add fit()/fitClamped() ([64ba64c](https://github.com/thi-ng/umbrella/commit/64ba64c))
|
|
128
128
|
|
|
129
129
|
#### ♻️ Refactoring
|
|
130
130
|
|
|
131
|
-
- update/dedupe various fns/overrides ([8e5635b](https://github.com/thi-ng/umbrella/commit/8e5635b))
|
|
132
131
|
- update various sym() decls ([a5901ab](https://github.com/thi-ng/umbrella/commit/a5901ab))
|
|
133
132
|
- remove obsolete type arg
|
|
133
|
+
- update/dedupe various fns/overrides ([8e5635b](https://github.com/thi-ng/umbrella/commit/8e5635b))
|
|
134
134
|
|
|
135
135
|
### [0.4.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.4.5) (2020-08-16)
|
|
136
136
|
|
|
@@ -158,35 +158,35 @@ and/or version bumps of transitive dependencies.
|
|
|
158
158
|
|
|
159
159
|
#### 🚀 Features
|
|
160
160
|
|
|
161
|
-
- add fragUV() ([b85dc8b](https://github.com/thi-ng/umbrella/commit/b85dc8b))
|
|
162
|
-
- add rotationAroundAxis3/4, matrix conversions ([8a473c1](https://github.com/thi-ng/umbrella/commit/8a473c1))
|
|
163
161
|
- add snoise3 & curlNoise3 ([a7dc75d](https://github.com/thi-ng/umbrella/commit/a7dc75d))
|
|
162
|
+
- add rotationAroundAxis3/4, matrix conversions ([8a473c1](https://github.com/thi-ng/umbrella/commit/8a473c1))
|
|
163
|
+
- add fragUV() ([b85dc8b](https://github.com/thi-ng/umbrella/commit/b85dc8b))
|
|
164
164
|
|
|
165
165
|
#### 🩹 Bug fixes
|
|
166
166
|
|
|
167
|
-
- fix imports ([188309a](https://github.com/thi-ng/umbrella/commit/188309a))
|
|
168
167
|
- fix imports ([16823b2](https://github.com/thi-ng/umbrella/commit/16823b2))
|
|
168
|
+
- fix imports ([188309a](https://github.com/thi-ng/umbrella/commit/188309a))
|
|
169
169
|
|
|
170
170
|
#### ♻️ Refactoring
|
|
171
171
|
|
|
172
|
-
- more snoise3 refactoring ([977f0db](https://github.com/thi-ng/umbrella/commit/977f0db))
|
|
173
172
|
- update snoise3 ([fddfa85](https://github.com/thi-ng/umbrella/commit/fddfa85))
|
|
173
|
+
- more snoise3 refactoring ([977f0db](https://github.com/thi-ng/umbrella/commit/977f0db))
|
|
174
174
|
|
|
175
175
|
### [0.2.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.2.3) (2019-08-21)
|
|
176
176
|
|
|
177
177
|
#### ♻️ Refactoring
|
|
178
178
|
|
|
179
|
-
- update readIndex*() ([e6775f7](https://github.com/thi-ng/umbrella/commit/e6775f7))
|
|
180
|
-
- update permute fns (re-use) ([c5a36a1](https://github.com/thi-ng/umbrella/commit/c5a36a1))
|
|
181
|
-
- update clamp01/clamp11() ([bd59ff5](https://github.com/thi-ng/umbrella/commit/bd59ff5))
|
|
182
179
|
- update & fix porterDuff() HOF ([5f83ce1](https://github.com/thi-ng/umbrella/commit/5f83ce1))
|
|
180
|
+
- update clamp01/clamp11() ([bd59ff5](https://github.com/thi-ng/umbrella/commit/bd59ff5))
|
|
181
|
+
- update permute fns (re-use) ([c5a36a1](https://github.com/thi-ng/umbrella/commit/c5a36a1))
|
|
182
|
+
- update readIndex*() ([e6775f7](https://github.com/thi-ng/umbrella/commit/e6775f7))
|
|
183
183
|
|
|
184
184
|
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.2.0) (2019-07-31)
|
|
185
185
|
|
|
186
186
|
#### 🚀 Features
|
|
187
187
|
|
|
188
|
-
- add porter-duff operators ([285197d](https://github.com/thi-ng/umbrella/commit/285197d))
|
|
189
188
|
- add guassian blur fns ([759ace7](https://github.com/thi-ng/umbrella/commit/759ace7))
|
|
189
|
+
- add porter-duff operators ([285197d](https://github.com/thi-ng/umbrella/commit/285197d))
|
|
190
190
|
|
|
191
191
|
### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/shader-ast-stdlib@0.1.1) (2019-07-08)
|
|
192
192
|
|
|
@@ -202,6 +202,18 @@ and/or version bumps of transitive dependencies.
|
|
|
202
202
|
|
|
203
203
|
#### 🚀 Features
|
|
204
204
|
|
|
205
|
+
- extract stdlib as separate pkg ([86461ed](https://github.com/thi-ng/umbrella/commit/86461ed))
|
|
206
|
+
- add new fns, various refactoring, add docs ([b215055](https://github.com/thi-ng/umbrella/commit/b215055))
|
|
207
|
+
- add clamp11(), orthogonal(), rayPointAt()
|
|
208
|
+
- split lambert() / halfLambert()
|
|
209
|
+
- switch to more inline fns
|
|
210
|
+
- add 2d worley noise & permutations ([a645c71](https://github.com/thi-ng/umbrella/commit/a645c71))
|
|
211
|
+
- add voronoise2() & hash3() ([4bafe19](https://github.com/thi-ng/umbrella/commit/4bafe19))
|
|
212
|
+
- add snoise2, distance fns ([0849f8b](https://github.com/thi-ng/umbrella/commit/0849f8b))
|
|
213
|
+
- add additive() HOF ([43b2223](https://github.com/thi-ng/umbrella/commit/43b2223))
|
|
214
|
+
- add readIndex fns, hash2, minor refactorings ([34b20f0](https://github.com/thi-ng/umbrella/commit/34b20f0))
|
|
215
|
+
- add indexTo*() and readIndex*() fns ([a804c28](https://github.com/thi-ng/umbrella/commit/a804c28))
|
|
216
|
+
- add more hash fns, update voronoise2 ([65b2a15](https://github.com/thi-ng/umbrella/commit/65b2a15))
|
|
205
217
|
- add more functions ([4b6e4fe](https://github.com/thi-ng/umbrella/commit/4b6e4fe))
|
|
206
218
|
- toLinear() / toSRGB()
|
|
207
219
|
- luminanceRGB()
|
|
@@ -209,27 +221,15 @@ and/or version bumps of transitive dependencies.
|
|
|
209
221
|
- perpendicularCW/CCW()
|
|
210
222
|
- sincos() / cossin()
|
|
211
223
|
- rotation matrix factories for mat2/3/4
|
|
212
|
-
- add more hash fns, update voronoise2 ([65b2a15](https://github.com/thi-ng/umbrella/commit/65b2a15))
|
|
213
|
-
- add indexTo*() and readIndex*() fns ([a804c28](https://github.com/thi-ng/umbrella/commit/a804c28))
|
|
214
|
-
- add readIndex fns, hash2, minor refactorings ([34b20f0](https://github.com/thi-ng/umbrella/commit/34b20f0))
|
|
215
|
-
- add additive() HOF ([43b2223](https://github.com/thi-ng/umbrella/commit/43b2223))
|
|
216
|
-
- add snoise2, distance fns ([0849f8b](https://github.com/thi-ng/umbrella/commit/0849f8b))
|
|
217
|
-
- add voronoise2() & hash3() ([4bafe19](https://github.com/thi-ng/umbrella/commit/4bafe19))
|
|
218
|
-
- add 2d worley noise & permutations ([a645c71](https://github.com/thi-ng/umbrella/commit/a645c71))
|
|
219
|
-
- add new fns, various refactoring, add docs ([b215055](https://github.com/thi-ng/umbrella/commit/b215055))
|
|
220
|
-
- add clamp11(), orthogonal(), rayPointAt()
|
|
221
|
-
- split lambert() / halfLambert()
|
|
222
|
-
- switch to more inline fns
|
|
223
|
-
- extract stdlib as separate pkg ([86461ed](https://github.com/thi-ng/umbrella/commit/86461ed))
|
|
224
224
|
|
|
225
225
|
#### 🩹 Bug fixes
|
|
226
226
|
|
|
227
|
-
- fix rotationX4/Y4 return types ([c858dce](https://github.com/thi-ng/umbrella/commit/c858dce))
|
|
228
|
-
- fix imports ([4d9e126](https://github.com/thi-ng/umbrella/commit/4d9e126))
|
|
229
227
|
- update additive() fn arg type ([5d66ff2](https://github.com/thi-ng/umbrella/commit/5d66ff2))
|
|
228
|
+
- fix imports ([4d9e126](https://github.com/thi-ng/umbrella/commit/4d9e126))
|
|
229
|
+
- fix rotationX4/Y4 return types ([c858dce](https://github.com/thi-ng/umbrella/commit/c858dce))
|
|
230
230
|
|
|
231
231
|
#### ♻️ Refactoring
|
|
232
232
|
|
|
233
|
-
- reorg src folder ([ebaa1c2](https://github.com/thi-ng/umbrella/commit/ebaa1c2))
|
|
234
233
|
- update raymarchScene/AO loops ([8a4bd89](https://github.com/thi-ng/umbrella/commit/8a4bd89))
|
|
235
234
|
- use post-increment for counter to be compatible w/ WebGL1
|
|
235
|
+
- reorg src folder ([ebaa1c2](https://github.com/thi-ng/umbrella/commit/ebaa1c2))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/shader-ast-stdlib",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.23",
|
|
4
4
|
"description": "Function collection for modular GPGPU / shader programming with @thi.ng/shader-ast",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.4.
|
|
38
|
-
"@thi.ng/shader-ast": "^0.12.
|
|
37
|
+
"@thi.ng/api": "^8.4.6",
|
|
38
|
+
"@thi.ng/shader-ast": "^0.12.30"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@microsoft/api-extractor": "^7.33.5",
|
|
42
|
-
"@thi.ng/testament": "^0.3.
|
|
42
|
+
"@thi.ng/testament": "^0.3.5",
|
|
43
43
|
"rimraf": "^3.0.2",
|
|
44
44
|
"tools": "^0.0.1",
|
|
45
|
-
"typedoc": "^0.23.
|
|
45
|
+
"typedoc": "^0.23.20",
|
|
46
46
|
"typescript": "^4.8.4"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"node": ">=12.7"
|
|
79
79
|
},
|
|
80
80
|
"files": [
|
|
81
|
-
"
|
|
82
|
-
"
|
|
81
|
+
"./*.js",
|
|
82
|
+
"./*.d.ts",
|
|
83
83
|
"color",
|
|
84
84
|
"fog",
|
|
85
85
|
"light",
|
|
@@ -330,5 +330,5 @@
|
|
|
330
330
|
],
|
|
331
331
|
"year": 2019
|
|
332
332
|
},
|
|
333
|
-
"gitHead": "
|
|
333
|
+
"gitHead": "044ee6a3895720fc78e115032d4d831b63510929\n"
|
|
334
334
|
}
|