@thi.ng/shader-ast-stdlib 0.10.1 → 0.10.8

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 (3) hide show
  1. package/CHANGELOG.md +58 -58
  2. package/README.md +7 -7
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [0.10.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.10.0...@thi.ng/shader-ast-stdlib@0.10.1) (2021-10-13)
6
+ ## [0.10.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.10.7...@thi.ng/shader-ast-stdlib@0.10.8) (2021-11-03)
7
7
 
8
8
  **Note:** Version bump only for package @thi.ng/shader-ast-stdlib
9
9
 
@@ -40,97 +40,97 @@ Also:
40
40
 
41
41
 
42
42
 
43
- # [0.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.8.0...@thi.ng/shader-ast-stdlib@0.9.0) (2021-08-17)
43
+ # [0.9.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.8.0...@thi.ng/shader-ast-stdlib@0.9.0) (2021-08-17)
44
44
 
45
- ### Features
45
+ ### Features
46
46
 
47
- - **shader-ast-stdlib:** add level correction fns ([54963e7](https://github.com/thi-ng/umbrella/commit/54963e7b30f198def2d3b061f47b7dbaa53ae620))
47
+ - **shader-ast-stdlib:** add level correction fns ([54963e7](https://github.com/thi-ng/umbrella/commit/54963e7b30f198def2d3b061f47b7dbaa53ae620))
48
48
 
49
- # [0.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.7.0...@thi.ng/shader-ast-stdlib@0.8.0) (2021-08-13)
49
+ # [0.8.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.7.0...@thi.ng/shader-ast-stdlib@0.8.0) (2021-08-13)
50
50
 
51
- ### Features
51
+ ### Features
52
52
 
53
- - **shader-ast-stdlib:** add oscillator fns ([f14e8cb](https://github.com/thi-ng/umbrella/commit/f14e8cb39b11ce99033b529ab46e7d103036b3e8))
54
- - **shader-ast-stdlib:** add SDF domain ops ([c41b288](https://github.com/thi-ng/umbrella/commit/c41b288758b532a10ed625f8a1d8a4e899af53a8))
55
- - **shader-ast-stdlib:** add SDF polyhedra fns ([2100e50](https://github.com/thi-ng/umbrella/commit/2100e508828501d3d7d7f7e398da2a8d4b600c6c))
56
- - **shader-ast-stdlib:** add variadic SDF ops ([8d6390c](https://github.com/thi-ng/umbrella/commit/8d6390cc7df7d3ee41c8a415956253cdc2bd8e97))
53
+ - **shader-ast-stdlib:** add oscillator fns ([f14e8cb](https://github.com/thi-ng/umbrella/commit/f14e8cb39b11ce99033b529ab46e7d103036b3e8))
54
+ - **shader-ast-stdlib:** add SDF domain ops ([c41b288](https://github.com/thi-ng/umbrella/commit/c41b288758b532a10ed625f8a1d8a4e899af53a8))
55
+ - **shader-ast-stdlib:** add SDF polyhedra fns ([2100e50](https://github.com/thi-ng/umbrella/commit/2100e508828501d3d7d7f7e398da2a8d4b600c6c))
56
+ - **shader-ast-stdlib:** add variadic SDF ops ([8d6390c](https://github.com/thi-ng/umbrella/commit/8d6390cc7df7d3ee41c8a415956253cdc2bd8e97))
57
57
 
58
- # [0.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.6.7...@thi.ng/shader-ast-stdlib@0.7.0) (2021-08-09)
58
+ # [0.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.6.7...@thi.ng/shader-ast-stdlib@0.7.0) (2021-08-09)
59
59
 
60
- ### Features
60
+ ### Features
61
61
 
62
- - **shader-ast-stdlib:** add sdfUnion2(), add missing exports ([9d52838](https://github.com/thi-ng/umbrella/commit/9d5283848a61d97cd57fab38d792479449a8068d))
63
- - **shader-ast-stdlib:** variadic sdf isec/sub/union ([fbff935](https://github.com/thi-ng/umbrella/commit/fbff93515220ac9263e9ad74f9359a78bf2ab24c))
62
+ - **shader-ast-stdlib:** add sdfUnion2(), add missing exports ([9d52838](https://github.com/thi-ng/umbrella/commit/9d5283848a61d97cd57fab38d792479449a8068d))
63
+ - **shader-ast-stdlib:** variadic sdf isec/sub/union ([fbff935](https://github.com/thi-ng/umbrella/commit/fbff93515220ac9263e9ad74f9359a78bf2ab24c))
64
64
 
65
- # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.26...@thi.ng/shader-ast-stdlib@0.6.0) (2021-04-24)
65
+ # [0.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.5.26...@thi.ng/shader-ast-stdlib@0.6.0) (2021-04-24)
66
66
 
67
- ### Features
67
+ ### Features
68
68
 
69
- - **shader-ast-stdlib:** add decodeRGBE() ([f98c6a2](https://github.com/thi-ng/umbrella/commit/f98c6a26a072f63a2b14def005e81985379f0bff))
69
+ - **shader-ast-stdlib:** add decodeRGBE() ([f98c6a2](https://github.com/thi-ng/umbrella/commit/f98c6a26a072f63a2b14def005e81985379f0bff))
70
70
 
71
- # [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.4.6...@thi.ng/shader-ast-stdlib@0.5.0) (2020-08-28)
71
+ # [0.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.4.6...@thi.ng/shader-ast-stdlib@0.5.0) (2020-08-28)
72
72
 
73
- ### Features
73
+ ### Features
74
74
 
75
- - **shader-ast-stdlib:** add ACES film tonemapping ([8a0b1a3](https://github.com/thi-ng/umbrella/commit/8a0b1a3ab37181c565acde1ce6399f8e8af7834d))
76
- - **shader-ast-stdlib:** add fit()/fitClamped() ([64ba64c](https://github.com/thi-ng/umbrella/commit/64ba64ceef223efdfce85d35ed3053147107b63c))
77
- - **shader-ast-stdlib:** add mixCubic()/mixQuadratic() ([4dfc020](https://github.com/thi-ng/umbrella/commit/4dfc020d63f01d376a5f9397b77f344c9f0e7a1e))
75
+ - **shader-ast-stdlib:** add ACES film tonemapping ([8a0b1a3](https://github.com/thi-ng/umbrella/commit/8a0b1a3ab37181c565acde1ce6399f8e8af7834d))
76
+ - **shader-ast-stdlib:** add fit()/fitClamped() ([64ba64c](https://github.com/thi-ng/umbrella/commit/64ba64ceef223efdfce85d35ed3053147107b63c))
77
+ - **shader-ast-stdlib:** add mixCubic()/mixQuadratic() ([4dfc020](https://github.com/thi-ng/umbrella/commit/4dfc020d63f01d376a5f9397b77f344c9f0e7a1e))
78
78
 
79
- ## [0.4.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.4.4...@thi.ng/shader-ast-stdlib@0.4.5) (2020-08-16)
79
+ ## [0.4.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.4.4...@thi.ng/shader-ast-stdlib@0.4.5) (2020-08-16)
80
80
 
81
- ### Performance Improvements
81
+ ### Performance Improvements
82
82
 
83
- - **shader-ast-stdlib:** update blur9/13() ([de632c6](https://github.com/thi-ng/umbrella/commit/de632c642593d5514b6f74c3202b3a60be7f01cf))
83
+ - **shader-ast-stdlib:** update blur9/13() ([de632c6](https://github.com/thi-ng/umbrella/commit/de632c642593d5514b6f74c3202b3a60be7f01cf))
84
84
 
85
- # [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.3.33...@thi.ng/shader-ast-stdlib@0.4.0) (2020-08-08)
85
+ # [0.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.3.33...@thi.ng/shader-ast-stdlib@0.4.0) (2020-08-08)
86
86
 
87
- ### Features
87
+ ### Features
88
88
 
89
- - **shader-ast-stdlib:** add borderMask() ([bea00bf](https://github.com/thi-ng/umbrella/commit/bea00bfc465b55f9fbafb35d2a1cc389766ab620))
89
+ - **shader-ast-stdlib:** add borderMask() ([bea00bf](https://github.com/thi-ng/umbrella/commit/bea00bfc465b55f9fbafb35d2a1cc389766ab620))
90
90
 
91
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.2.3...@thi.ng/shader-ast-stdlib@0.3.0) (2019-09-21)
91
+ # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.2.3...@thi.ng/shader-ast-stdlib@0.3.0) (2019-09-21)
92
92
 
93
- ### Bug Fixes
93
+ ### Bug Fixes
94
94
 
95
- - **shader-ast-stdlib:** fix imports ([188309a](https://github.com/thi-ng/umbrella/commit/188309a))
96
- - **shader-ast-stdlib:** fix imports ([16823b2](https://github.com/thi-ng/umbrella/commit/16823b2))
95
+ - **shader-ast-stdlib:** fix imports ([188309a](https://github.com/thi-ng/umbrella/commit/188309a))
96
+ - **shader-ast-stdlib:** fix imports ([16823b2](https://github.com/thi-ng/umbrella/commit/16823b2))
97
97
 
98
- ### Features
98
+ ### Features
99
99
 
100
- - **shader-ast-stdlib:** add fragUV() ([b85dc8b](https://github.com/thi-ng/umbrella/commit/b85dc8b))
101
- - **shader-ast-stdlib:** add guassian blur fns ([759ace7](https://github.com/thi-ng/umbrella/commit/759ace7))
102
- - **shader-ast-stdlib:** add rotationAroundAxis3/4, matrix conversions ([8a473c1](https://github.com/thi-ng/umbrella/commit/8a473c1))
103
- - **shader-ast-stdlib:** add snoise3 & curlNoise3 ([a7dc75d](https://github.com/thi-ng/umbrella/commit/a7dc75d))
100
+ - **shader-ast-stdlib:** add fragUV() ([b85dc8b](https://github.com/thi-ng/umbrella/commit/b85dc8b))
101
+ - **shader-ast-stdlib:** add guassian blur fns ([759ace7](https://github.com/thi-ng/umbrella/commit/759ace7))
102
+ - **shader-ast-stdlib:** add rotationAroundAxis3/4, matrix conversions ([8a473c1](https://github.com/thi-ng/umbrella/commit/8a473c1))
103
+ - **shader-ast-stdlib:** add snoise3 & curlNoise3 ([a7dc75d](https://github.com/thi-ng/umbrella/commit/a7dc75d))
104
104
 
105
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.1.2...@thi.ng/shader-ast-stdlib@0.2.0) (2019-07-31)
105
+ # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.1.2...@thi.ng/shader-ast-stdlib@0.2.0) (2019-07-31)
106
106
 
107
- ### Features
107
+ ### Features
108
108
 
109
- - **shader-ast-stdlib:** add porter-duff operators ([285197d](https://github.com/thi-ng/umbrella/commit/285197d))
109
+ - **shader-ast-stdlib:** add porter-duff operators ([285197d](https://github.com/thi-ng/umbrella/commit/285197d))
110
110
 
111
- ## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.1.0...@thi.ng/shader-ast-stdlib@0.1.1) (2019-07-08)
111
+ ## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/shader-ast-stdlib@0.1.0...@thi.ng/shader-ast-stdlib@0.1.1) (2019-07-08)
112
112
 
113
- ### Bug Fixes
113
+ ### Bug Fixes
114
114
 
115
- - **shader-ast-stdlib:** update incomplete cartesian3, refactor cartesian2 ([3299d59](https://github.com/thi-ng/umbrella/commit/3299d59))
115
+ - **shader-ast-stdlib:** update incomplete cartesian3, refactor cartesian2 ([3299d59](https://github.com/thi-ng/umbrella/commit/3299d59))
116
116
 
117
- # 0.1.0 (2019-07-07)
117
+ # 0.1.0 (2019-07-07)
118
118
 
119
- ### Bug Fixes
119
+ ### Bug Fixes
120
120
 
121
- - **shader-ast-stdlib:** fix imports ([4d9e126](https://github.com/thi-ng/umbrella/commit/4d9e126))
122
- - **shader-ast-stdlib:** fix rotationX4/Y4 return types ([c858dce](https://github.com/thi-ng/umbrella/commit/c858dce))
123
- - **shader-ast-stdlib:** update additive() fn arg type ([5d66ff2](https://github.com/thi-ng/umbrella/commit/5d66ff2))
121
+ - **shader-ast-stdlib:** fix imports ([4d9e126](https://github.com/thi-ng/umbrella/commit/4d9e126))
122
+ - **shader-ast-stdlib:** fix rotationX4/Y4 return types ([c858dce](https://github.com/thi-ng/umbrella/commit/c858dce))
123
+ - **shader-ast-stdlib:** update additive() fn arg type ([5d66ff2](https://github.com/thi-ng/umbrella/commit/5d66ff2))
124
124
 
125
- ### Features
125
+ ### Features
126
126
 
127
- - **shader-ast-stdlib:** add 2d worley noise & permutations ([a645c71](https://github.com/thi-ng/umbrella/commit/a645c71))
128
- - **shader-ast-stdlib:** add additive() HOF ([43b2223](https://github.com/thi-ng/umbrella/commit/43b2223))
129
- - **shader-ast-stdlib:** add indexTo*() and readIndex*() fns ([a804c28](https://github.com/thi-ng/umbrella/commit/a804c28))
130
- - **shader-ast-stdlib:** add more functions ([4b6e4fe](https://github.com/thi-ng/umbrella/commit/4b6e4fe))
131
- - **shader-ast-stdlib:** add more hash fns, update voronoise2 ([65b2a15](https://github.com/thi-ng/umbrella/commit/65b2a15))
132
- - **shader-ast-stdlib:** add new fns, various refactoring, add docs ([b215055](https://github.com/thi-ng/umbrella/commit/b215055))
133
- - **shader-ast-stdlib:** add readIndex fns, hash2, minor refactorings ([34b20f0](https://github.com/thi-ng/umbrella/commit/34b20f0))
134
- - **shader-ast-stdlib:** add snoise2, distance fns ([0849f8b](https://github.com/thi-ng/umbrella/commit/0849f8b))
135
- - **shader-ast-stdlib:** add voronoise2() & hash3() ([4bafe19](https://github.com/thi-ng/umbrella/commit/4bafe19))
127
+ - **shader-ast-stdlib:** add 2d worley noise & permutations ([a645c71](https://github.com/thi-ng/umbrella/commit/a645c71))
128
+ - **shader-ast-stdlib:** add additive() HOF ([43b2223](https://github.com/thi-ng/umbrella/commit/43b2223))
129
+ - **shader-ast-stdlib:** add indexTo*() and readIndex*() fns ([a804c28](https://github.com/thi-ng/umbrella/commit/a804c28))
130
+ - **shader-ast-stdlib:** add more functions ([4b6e4fe](https://github.com/thi-ng/umbrella/commit/4b6e4fe))
131
+ - **shader-ast-stdlib:** add more hash fns, update voronoise2 ([65b2a15](https://github.com/thi-ng/umbrella/commit/65b2a15))
132
+ - **shader-ast-stdlib:** add new fns, various refactoring, add docs ([b215055](https://github.com/thi-ng/umbrella/commit/b215055))
133
+ - **shader-ast-stdlib:** add readIndex fns, hash2, minor refactorings ([34b20f0](https://github.com/thi-ng/umbrella/commit/34b20f0))
134
+ - **shader-ast-stdlib:** add snoise2, distance fns ([0849f8b](https://github.com/thi-ng/umbrella/commit/0849f8b))
135
+ - **shader-ast-stdlib:** add voronoise2() & hash3() ([4bafe19](https://github.com/thi-ng/umbrella/commit/4bafe19))
136
136
  - **shader-ast-stdlib:** extract stdlib as separate pkg ([86461ed](https://github.com/thi-ng/umbrella/commit/86461ed))
package/README.md CHANGED
@@ -127,7 +127,7 @@ A selection:
127
127
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/shader-ast/shader-ast-raymarch.jpg" width="240"/> | WebGL & JS canvas2D raymarch shader cross-compilation | [Demo](https://demo.thi.ng/umbrella/shader-ast-raymarch/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/shader-ast-raymarch) |
128
128
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/shader-ast-sdf2d.jpg" width="240"/> | WebGL & JS canvas 2D SDF | [Demo](https://demo.thi.ng/umbrella/shader-ast-sdf2d/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/shader-ast-sdf2d) |
129
129
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/shader-ast-tunnel.jpg" width="240"/> | WebGL & Canvas2D textured tunnel shader | [Demo](https://demo.thi.ng/umbrella/shader-ast-tunnel/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/shader-ast-tunnel) |
130
- | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/shader-ast-workers.jpg" width="240"/> | Fork-join worker-based raymarch renderer | [Demo](https://demo.thi.ng/umbrella/shader-ast-workers/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/shader-ast-workers) |
130
+ | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/shader-ast-workers.jpg" width="240"/> | Fork-join worker-based raymarch renderer (JS/CPU only) | [Demo](https://demo.thi.ng/umbrella/shader-ast-workers/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/shader-ast-workers) |
131
131
  | | Minimal multi-pass / GPGPU example | [Demo](https://demo.thi.ng/umbrella/webgl-multipass/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/webgl-multipass) |
132
132
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/webgl-shadertoy.jpg" width="240"/> | Shadertoy-like WebGL setup | [Demo](https://demo.thi.ng/umbrella/webgl-shadertoy/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/webgl-shadertoy) |
133
133
  | <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/webgl-ssao.jpg" width="240"/> | WebGL screenspace ambient occlusion | [Demo](https://demo.thi.ng/umbrella/webgl-ssao/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/webgl-ssao) |
@@ -274,12 +274,12 @@ usually seen in shader code and not easily achievable via the usual
274
274
  string templating approach used by most other GLSL libraries.
275
275
 
276
276
  For example, the
277
- [`additive()`](https://github.com/thi-ng/umbrella/blob/develop/packages/shader-ast-stdlib/src/math/additive.ts#L21)
278
- HOF takes a single-arg scalar function and a number of octaves. It
279
- returns a new function which computes the summed value of `fn` over the
280
- given number octaves, with a user defined phase shift & decay factor
281
- (per octave). This can be used for additive wave synthesis, multi-octave
282
- noise or any other similar use cases...
277
+ [`additive()`](https://docs.thi.ng/umbrella/shader-ast-stdlib/modules.html#additive)
278
+ HOF takes a single-arg scalar function and a number of octaves. It returns a new
279
+ function which computes the summed value of `fn` over the given number octaves,
280
+ with a user defined phase shift & decay factor (per octave). This can be used
281
+ for additive wave synthesis, multi-octave noise or any other similar use
282
+ cases...
283
283
 
284
284
  Due to the way user defined AST functions keep track of their own call
285
285
  graph, the anonymous function returned by `additive` does not need to be
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/shader-ast-stdlib",
3
- "version": "0.10.1",
3
+ "version": "0.10.8",
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,11 +34,11 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.0.1",
38
- "@thi.ng/shader-ast": "^0.11.1"
37
+ "@thi.ng/api": "^8.1.0",
38
+ "@thi.ng/shader-ast": "^0.11.8"
39
39
  },
40
40
  "devDependencies": {
41
- "@thi.ng/testament": "^0.1.1"
41
+ "@thi.ng/testament": "^0.1.6"
42
42
  },
43
43
  "keywords": [
44
44
  "ast",
@@ -307,5 +307,5 @@
307
307
  ],
308
308
  "year": 2019
309
309
  },
310
- "gitHead": "2e6b3d7c0f4c5686c1e9bdb4902ed7d3f90bcc19"
310
+ "gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
311
311
  }