@thi.ng/webgl 6.0.11 → 6.1.3

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 +280 -115
  2. package/dev/gl.js +675 -0
  3. package/package.json +217 -212
package/CHANGELOG.md CHANGED
@@ -1,224 +1,389 @@
1
1
  # Change Log
2
2
 
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
+
3
6
  All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
+
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
11
+
12
+ ## [6.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@6.1.0) (2021-11-17)
13
+
14
+ #### 🚀 Features
15
+
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
21
+
22
+ #### ♻️ Refactoring
23
+
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
30
+
31
+ ### [6.0.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@6.0.11) (2021-11-10)
32
+
33
+ #### ♻️ Refactoring
34
+
35
+ - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
36
+
37
+ ### [6.0.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@6.0.9) (2021-11-03)
38
+
39
+ #### ♻️ Refactoring
40
+
41
+ - minor update texture gens ([51e3d71](https://github.com/thi-ng/umbrella/commit/51e3d71))
42
+ - rename internals due to changes in [@thi.ng/pixel](https://github.com/thi-ng/umbrella/tree/main/packages/pixel) (2fe8d4f09)
43
+
44
+ ### [6.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@6.0.1) (2021-10-13)
45
+
46
+ #### ♻️ Refactoring
47
+
48
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
49
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
50
+ - add .js suffix for all relative imports
51
+
52
+ # [6.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@6.0.0) (2021-10-12)
53
+
54
+ #### 🛑 Breaking changes
55
+
56
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
57
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
58
+ - only ESM modules will be published from now on
59
+ - CJS obsolete due to ESM support in recent versions of node:
60
+ - i.e. launch NodeJS via:
61
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
62
+ - in the node REPL use `await import(...)` instead of `require()`
63
+ - UMD obsolete due to widespread browser support for ESM
64
+ Also:
65
+ - normalize/restructure/reorg all package.json files
66
+ - cleanup all build scripts, remove obsolete
67
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
68
+
69
+ #### 🚀 Features
70
+
71
+ - add DefShaderOpts, rename ShaderOpts ([ef46bf5](https://github.com/thi-ng/umbrella/commit/ef46bf5))
72
+ - add DefShaderOpts
73
+ - update defShader(), shaderSourceFromAST()
74
+ - rename ShaderOpts => ShaderPresetOpts
75
+ - update shader presets
76
+
77
+ #### ♻️ Refactoring
78
+
79
+ - update imports/exports ([ce4d3e8](https://github.com/thi-ng/umbrella/commit/ce4d3e8))
80
+ - redefine WebGL error, migrate logger ([6a5158d](https://github.com/thi-ng/umbrella/commit/6a5158d))
81
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
82
+ - largely related to recent updates/restructuring of these packages:
83
+ - api
84
+ - defmulti
85
+ - errors
86
+ - logger
87
+ - update imports ([c29d6b4](https://github.com/thi-ng/umbrella/commit/c29d6b4))
88
+ - update imports ([b4c3883](https://github.com/thi-ng/umbrella/commit/b4c3883))
89
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
90
+ - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
91
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
92
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
5
93
 
6
- ## [6.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@6.0.10...@thi.ng/webgl@6.0.11) (2021-11-10)
94
+ # [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@5.0.0) (2021-06-08)
7
95
 
8
- **Note:** Version bump only for package @thi.ng/webgl
96
+ #### 🛑 Breaking changes
9
97
 
98
+ - update multipass texture uniforms ([86d363a](https://github.com/thi-ng/umbrella/commit/86d363a))
99
+ - BREAKING CHANGE: replace input tex `sampler2D[]` array w/ named inputs
100
+ - new unis: `input0`, `input1`, etc. to sync w/ same approach as
101
+ already used for outputs
102
+ - new approach also simplifies texture lookups in shader-ast code
10
103
 
104
+ #### 🚀 Features
11
105
 
106
+ - add passCopy() HOF pass gen ([fb6b5b7](https://github.com/thi-ng/umbrella/commit/fb6b5b7))
12
107
 
108
+ # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@4.0.0) (2021-02-20)
13
109
 
14
- ## [6.0.10](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@6.0.9...@thi.ng/webgl@6.0.10) (2021-11-04)
110
+ #### 🛑 Breaking changes
15
111
 
16
- **Note:** Version bump only for package @thi.ng/webgl
112
+ - update attrib type handling ([542850b](https://github.com/thi-ng/umbrella/commit/542850b))
113
+ - BREAKING CHANGE: attrib buffer data type use string consts
114
+ - part of unified umbrella-wide changes to [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) Type alias
115
+ (see [a333d4182](https://github.com/thi-ng/umbrella/commit/a333d4182))
17
116
 
117
+ #### 🩹 Bug fixes
18
118
 
119
+ - update compileAttribPool() ([6b5dd8e](https://github.com/thi-ng/umbrella/commit/6b5dd8e))
120
+ - always ensure GLType is used in resulting ModelAttributeSpec's
19
121
 
122
+ #### ♻️ Refactoring
20
123
 
124
+ - split Texture.configureImage() ([1e8670e](https://github.com/thi-ng/umbrella/commit/1e8670e))
125
+ - simplify defMultipass(), extract inner fns ([fda3011](https://github.com/thi-ng/umbrella/commit/fda3011))
126
+ - further simplify shaderSourceFromAST() ([9343ba3](https://github.com/thi-ng/umbrella/commit/9343ba3))
127
+ - extract/re-use internal helpers ([e8786f6](https://github.com/thi-ng/umbrella/commit/e8786f6))
128
+ - update shaderSourceFromAST() & prepareShaderSource()
129
+ - extract compilePrelude()
130
+ - extract compileVarying()
21
131
 
22
- ## [6.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@6.0.8...@thi.ng/webgl@6.0.9) (2021-11-03)
132
+ ### [3.3.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.8) (2020-12-07)
23
133
 
24
- **Note:** Version bump only for package @thi.ng/webgl
134
+ #### ♻️ Refactoring
25
135
 
136
+ - update type-only imports ([b9685a4](https://github.com/thi-ng/umbrella/commit/b9685a4))
137
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
26
138
 
139
+ ### [3.3.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.6) (2020-11-24)
27
140
 
141
+ #### ♻️ Refactoring
28
142
 
143
+ - update destructuring ([4e6ebcf](https://github.com/thi-ng/umbrella/commit/4e6ebcf))
29
144
 
30
- # [6.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@5.0.14...@thi.ng/webgl@6.0.0) (2021-10-12)
145
+ ### [3.3.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.3) (2020-09-22)
31
146
 
147
+ #### ♻️ Refactoring
32
148
 
33
- ### Build System
149
+ - split Texture.configure() ([91b4329](https://github.com/thi-ng/umbrella/commit/91b4329))
34
150
 
35
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
151
+ ### [3.3.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.2) (2020-09-13)
36
152
 
153
+ #### ♻️ Refactoring
37
154
 
38
- ### Features
155
+ - update imports ([18e86e9](https://github.com/thi-ng/umbrella/commit/18e86e9))
39
156
 
40
- * **webgl:** add DefShaderOpts, rename ShaderOpts ([ef46bf5](https://github.com/thi-ng/umbrella/commit/ef46bf55eaa1deff12b0268b880bc33f4878acba))
157
+ ### [3.3.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.1) (2020-08-28)
41
158
 
159
+ #### ♻️ Refactoring
42
160
 
43
- ### BREAKING CHANGES
161
+ - update delete op (TS4.0) ([7b5f1e1](https://github.com/thi-ng/umbrella/commit/7b5f1e1))
44
162
 
45
- * discontinue CommonJS & UMD versions
163
+ ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.0) (2020-08-20)
46
164
 
47
- - only ESM modules will be published from now on
48
- - CJS obsolete due to ESM support in recent versions of node:
49
- - i.e. launch NodeJS via:
50
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
51
- - in the node REPL use `await import(...)` instead of `require()`
52
- - UMD obsolete due to widespread browser support for ESM
165
+ #### 🚀 Features
53
166
 
54
- Also:
55
- - normalize/restructure/reorg all package.json files
56
- - cleanup all build scripts, remove obsolete
57
- - switch from mocha to @thi.ng/testament for all tests
167
+ - only warn once re: unknown uni/attrib ([7490aa1](https://github.com/thi-ng/umbrella/commit/7490aa1))
168
+ - add [@thi.ng/memoize](https://github.com/thi-ng/umbrella/tree/main/packages/memoize) dep
169
+ - update Shader to only warn once
170
+ - update readme
58
171
 
172
+ ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.2.0) (2020-08-16)
59
173
 
174
+ #### 🚀 Features
60
175
 
176
+ - store texture filter/wrap mode ([8a7420e](https://github.com/thi-ng/umbrella/commit/8a7420e))
177
+ - add Texture .filter, .wrap properties
178
+ - update initial default tex config to: nearest & clamp
179
+ - fix LOD param handling (use `texParameterf()`)
61
180
 
181
+ ### [3.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.1.1) (2020-08-12)
62
182
 
183
+ #### 🩹 Bug fixes
63
184
 
64
- # [5.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@4.0.16...@thi.ng/webgl@5.0.0) (2021-06-08)
185
+ - update/add DrawOpts, add unbindTextures() ([27021fa](https://github.com/thi-ng/umbrella/commit/27021fa))
65
186
 
66
- ### Code Refactoring
187
+ ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.1.0) (2020-08-12)
67
188
 
68
- - **webgl:** update multipass texture uniforms ([86d363a](https://github.com/thi-ng/umbrella/commit/86d363aa80c1861388bccd9fb57000afd96e4257))
189
+ #### 🚀 Features
69
190
 
70
- ### Features
191
+ - add DrawFlags opts for draw() ([800382b](https://github.com/thi-ng/umbrella/commit/800382b))
192
+ - add opt unbind flag for .configure() ([0e5cc2b](https://github.com/thi-ng/umbrella/commit/0e5cc2b))
193
+ - default remains true to keep existing behavior, but provide
194
+ escape hatch where needed/useful (i.e. multipass stuff)
195
+ - update impls for FBO, RBO, Texture
71
196
 
72
- - **webgl:** add passCopy() HOF pass gen ([fb6b5b7](https://github.com/thi-ng/umbrella/commit/fb6b5b76d16a75d157499f7ccf46c777a063131e))
197
+ ### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.0.1) (2020-08-08)
73
198
 
74
- ### BREAKING CHANGES
199
+ #### 🩹 Bug fixes
75
200
 
76
- - **webgl:** replace input tex `sampler2D[]` array w/ named inputs
77
- - new unis: `input0`, `input1`, etc. to sync w/ same approach as already used for outputs
78
- - new approach also simplifies texture lookups in shader-ast code
201
+ - unbind texture after configured ([9612cdd](https://github.com/thi-ng/umbrella/commit/9612cdd))
79
202
 
80
- # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.3.15...@thi.ng/webgl@4.0.0) (2021-02-20)
203
+ # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.0.0) (2020-07-28)
81
204
 
82
- ### Bug Fixes
205
+ #### 🛑 Breaking changes
83
206
 
84
- - **webgl:** update compileAttribPool() ([6b5dd8e](https://github.com/thi-ng/umbrella/commit/6b5dd8e0c5167ac44a7d0358ccd106b7899fbccf))
207
+ - add/update opts for defQuadModel() ([13b7d9e](https://github.com/thi-ng/umbrella/commit/13b7d9e))
208
+ - BREAKING CHANGE: add/update opts for defQuadModel()
209
+ - update callsite in defMultiPass()
85
210
 
86
- ### Code Refactoring
211
+ #### 🚀 Features
87
212
 
88
- - **webgl:** update attrib type handling ([542850b](https://github.com/thi-ng/umbrella/commit/542850bc0f9c93abe8634f9d899e391905ff93ec))
213
+ - add varying int support (webgl2) ([c812800](https://github.com/thi-ng/umbrella/commit/c812800))
214
+ - update varying handling in shaderSourceFromAST()
215
+ - extract varyingOpts()
89
216
 
90
- ### BREAKING CHANGES
217
+ #### 🩹 Bug fixes
91
218
 
92
- - **webgl:** attrib buffer data type use string consts
93
- - part of unified umbrella-wide changes to thi.ng/api Type alias (see a333d4182)
219
+ - bind FBO in readTexture() ([6cb4448](https://github.com/thi-ng/umbrella/commit/6cb4448))
94
220
 
95
- # [3.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.2.1...@thi.ng/webgl@3.3.0) (2020-08-20)
221
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@2.0.0) (2020-06-07)
96
222
 
97
- ### Features
223
+ #### 🛑 Breaking changes
98
224
 
99
- - **webgl:** only warn once re: unknown uni/attrib ([7490aa1](https://github.com/thi-ng/umbrella/commit/7490aa1e0d8e69c0be2f0c63f72373983898f04c))
225
+ - remove adaptDPI() ([6d49da6](https://github.com/thi-ng/umbrella/commit/6d49da6))
226
+ - BREAKING CHANGE: re-use adaptDPI() from new [@thi.ng/adapt-dpi](https://github.com/thi-ng/umbrella/tree/main/packages/adapt-dpi) pkg
227
+ - update deps
100
228
 
101
- # [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.1.1...@thi.ng/webgl@3.2.0) (2020-08-16)
229
+ ### [1.0.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.16) (2020-06-01)
102
230
 
103
- ### Features
231
+ #### ♻️ Refactoring
104
232
 
105
- - **webgl:** store texture filter/wrap mode ([8a7420e](https://github.com/thi-ng/umbrella/commit/8a7420ee708e92a1670c47330c6c1b262b76cc87))
233
+ - update deref() uniform handling ([2c81849](https://github.com/thi-ng/umbrella/commit/2c81849))
106
234
 
107
- ## [3.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.1.0...@thi.ng/webgl@3.1.1) (2020-08-12)
235
+ ### [1.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.6) (2020-04-20)
108
236
 
109
- ### Bug Fixes
237
+ #### 🩹 Bug fixes
110
238
 
111
- - **webgl:** update/add DrawOpts, add unbindTextures() ([27021fa](https://github.com/thi-ng/umbrella/commit/27021facca516e3d9c598f017819fe0314c72af4))
239
+ - unbind fbo after configure ([25414b5](https://github.com/thi-ng/umbrella/commit/25414b5))
112
240
 
113
- # [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.0.4...@thi.ng/webgl@3.1.0) (2020-08-12)
241
+ ### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.5) (2020-04-11)
114
242
 
115
- ### Features
243
+ #### 🩹 Bug fixes
116
244
 
117
- - **webgl:** add DrawFlags opts for draw() ([800382b](https://github.com/thi-ng/umbrella/commit/800382ba1a67a5dd9f8a4edc17f6d791bfa2c627))
118
- - **webgl:** add opt unbind flag for .configure() ([0e5cc2b](https://github.com/thi-ng/umbrella/commit/0e5cc2bc5b632c7d418715c936d4cc6152b4a57c))
245
+ - add missing braces ([5e6d5bf](https://github.com/thi-ng/umbrella/commit/5e6d5bf))
246
+ - `disableVertexAttribArray` in `Shader.unbind` ([d3eab37](https://github.com/thi-ng/umbrella/commit/d3eab37))
119
247
 
120
- ## [3.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@3.0.0...@thi.ng/webgl@3.0.1) (2020-08-08)
248
+ ### [1.0.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.4) (2020-04-07)
121
249
 
122
- ### Bug Fixes
250
+ #### 🩹 Bug fixes
123
251
 
124
- - **webgl:** unbind texture after configured ([9612cdd](https://github.com/thi-ng/umbrella/commit/9612cdd86130ccb780eeda2971e780f0c8dc2b52))
252
+ - fix [#217](https://github.com/thi-ng/umbrella/issues/217), use logger for shader src ([501c82d](https://github.com/thi-ng/umbrella/commit/501c82d))
125
253
 
126
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@2.0.11...@thi.ng/webgl@3.0.0) (2020-07-28)
254
+ ### [1.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.2) (2020-04-05)
127
255
 
128
- ### Bug Fixes
256
+ #### ♻️ Refactoring
129
257
 
130
- - **webgl:** bind FBO in readTexture() ([6cb4448](https://github.com/thi-ng/umbrella/commit/6cb4448f75811e9a266ff81065da03ccdf138b6d))
258
+ - switch to non-const enums ([c491b00](https://github.com/thi-ng/umbrella/commit/c491b00))
131
259
 
132
- ### Features
260
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.0) (2020-03-28)
133
261
 
134
- - **webgl:** add varying int support (webgl2) ([c812800](https://github.com/thi-ng/umbrella/commit/c812800cb8d61a19b892a7f802fd03820c7e7310))
135
- - **webgl:** add/update opts for defQuadModel() ([13b7d9e](https://github.com/thi-ng/umbrella/commit/13b7d9e5ad26622702cfd4f1c4957da50ab704ed))
262
+ #### 🛑 Breaking changes
136
263
 
137
- ### BREAKING CHANGES
264
+ - rename factory functions ([633f693](https://github.com/thi-ng/umbrella/commit/633f693))
265
+ - BREAKING CHANGE: [#210](https://github.com/thi-ng/umbrella/issues/210), rename factory functions (`defXXX`)
266
+ - rename buffer() => defBuffer()
267
+ - rename fbo() => defFBO()
268
+ - rename rbo() => defRBO()
269
+ - rename multipass() => defMultiPass()
270
+ - rename shader() => defShader()
271
+ - rename texture() => defTexture()
272
+ - rename cubeMap() => defTextureCubeMap()
273
+ - rename floatTexture() => defTextureFloat()
274
+ - rename cube() => defCubeModel()
275
+ - rename quad() => defQuadModel()
138
276
 
139
- - **webgl:** add/update opts for defQuadModel()
140
- - update callsite in defMultiPass()
277
+ #### 🚀 Features
141
278
 
142
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@1.0.17...@thi.ng/webgl@2.0.0) (2020-06-07)
279
+ - add DrawMode enums ([5adaa23](https://github.com/thi-ng/umbrella/commit/5adaa23))
143
280
 
144
- ### Code Refactoring
281
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.3.0) (2020-02-25)
145
282
 
146
- - **webgl:** remove adaptDPI() ([6d49da6](https://github.com/thi-ng/umbrella/commit/6d49da610bec87fef96c77a39f1181002872f2ba))
283
+ #### 🚀 Features
147
284
 
148
- ### BREAKING CHANGES
285
+ - update Texture.config() default handling ([4c62d87](https://github.com/thi-ng/umbrella/commit/4c62d87))
286
+ - add defaults for `filter` & `wrap` opts
287
+ - add TextureOpts docstrings
149
288
 
150
- - **webgl:** re-use adaptDPI() from new @thi.ng/adapt-dpi pkg
151
- - update deps
289
+ #### ♻️ Refactoring
152
290
 
153
- ## [1.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@1.0.6...@thi.ng/webgl@1.0.7) (2020-04-21)
291
+ - update imports ([9999cbf](https://github.com/thi-ng/umbrella/commit/9999cbf))
292
+ - fix [#200](https://github.com/thi-ng/umbrella/issues/200), extract private initBuffer() ([9ab496e](https://github.com/thi-ng/umbrella/commit/9ab496e))
154
293
 
155
- ### Bug Fixes
294
+ ### [0.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.2) (2019-11-30)
156
295
 
157
- - **webgl:** unbind fbo after configure ([25414b5](https://github.com/thi-ng/umbrella/commit/25414b598211c05597714bc07d16a5f6a6249e5f))
296
+ #### 🩹 Bug fixes
158
297
 
159
- ## [1.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@1.0.4...@thi.ng/webgl@1.0.5) (2020-04-11)
298
+ - webgl1 depth texture ([5c86165](https://github.com/thi-ng/umbrella/commit/5c86165))
299
+ - use LOGGER for warnings ([14d5025](https://github.com/thi-ng/umbrella/commit/14d5025))
300
+ - fix PHONG shader preset, minor update LAMBERT ([792379f](https://github.com/thi-ng/umbrella/commit/792379f))
160
301
 
161
- ### Bug Fixes
302
+ ### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.1) (2019-11-09)
162
303
 
163
- - **webgl:** `disableVertexAttribArray` in `Shader.unbind` ([d3eab37](https://github.com/thi-ng/umbrella/commit/d3eab37cb5e356aa80207ce445926844cc072261))
164
- - **webgl:** add missing braces ([5e6d5bf](https://github.com/thi-ng/umbrella/commit/5e6d5bfa3b0529ec7c448d2ec1dde04716fb597e))
304
+ #### 🩹 Bug fixes
165
305
 
166
- ## [1.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@1.0.3...@thi.ng/webgl@1.0.4) (2020-04-07)
306
+ - add LOGGER, update initUniforms() ([4719110](https://github.com/thi-ng/umbrella/commit/4719110))
307
+ - don't throw error when initializing unused uniforms
308
+ - ensure system defaults for all uniforms, update equiv checks ([39dc83f](https://github.com/thi-ng/umbrella/commit/39dc83f))
167
309
 
168
- ### Bug Fixes
310
+ #### ♻️ Refactoring
169
311
 
170
- - **webgl:** fix [#217](https://github.com/thi-ng/umbrella/issues/217), use logger for shader src ([501c82d](https://github.com/thi-ng/umbrella/commit/501c82dbde7cbb385f35ff8149cfc98e4c6e6405))
312
+ - add type hints (TS 3.6.4) ([bd01c79](https://github.com/thi-ng/umbrella/commit/bd01c79))
171
313
 
172
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@0.3.4...@thi.ng/webgl@1.0.0) (2020-03-28)
314
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.0) (2019-09-21)
173
315
 
174
- ### Code Refactoring
316
+ #### 🚀 Features
175
317
 
176
- - **webgl:** rename factory functions ([633f693](https://github.com/thi-ng/umbrella/commit/633f69387a9ddf35919b9b6dd108068a9e05aec7))
318
+ - add readPixels/readTexture(), add ReadableTextureFormat ([355f785](https://github.com/thi-ng/umbrella/commit/355f785))
319
+ - update multipass / PassOpts ([95aba16](https://github.com/thi-ng/umbrella/commit/95aba16))
320
+ - add renderExt to TextureFormatDecl, add FBO tex fmt checks ([180e89c](https://github.com/thi-ng/umbrella/commit/180e89c))
321
+ - migrate multipass() & types from webgl-shadertoy pkg, reorg ([2aa31ce](https://github.com/thi-ng/umbrella/commit/2aa31ce))
177
322
 
178
- ### Features
323
+ #### 🩹 Bug fixes
179
324
 
180
- - **webgl:** add DrawMode enums ([5adaa23](https://github.com/thi-ng/umbrella/commit/5adaa23c5aa06b2229cb55d216f424b367875217))
325
+ - update samplerXX[] uniform decl types ([48b8906](https://github.com/thi-ng/umbrella/commit/48b8906))
326
+ - update extension handling in shader(), add ExtensionInfo ([12abaa0](https://github.com/thi-ng/umbrella/commit/12abaa0))
181
327
 
182
- ### BREAKING CHANGES
328
+ #### ♻️ Refactoring
183
329
 
184
- - **webgl:** #210, rename factory functions (`defXXX`)
185
- - rename buffer() => defBuffer()
186
- - rename fbo() => defFBO()
187
- - rename rbo() => defRBO()
188
- - rename multipass() => defMultiPass()
189
- - rename shader() => defShader()
190
- - rename texture() => defTexture()
191
- - rename cubeMap() => defTextureCubeMap()
192
- - rename floatTexture() => defTextureFloat()
193
- - rename cube() => defCubeModel()
194
- - rename quad() => defQuadModel()
330
+ - update TEX_FORMATS ([9a084a2](https://github.com/thi-ng/umbrella/commit/9a084a2))
195
331
 
196
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@0.2.4...@thi.ng/webgl@0.3.0) (2020-02-25)
332
+ ### [0.1.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.1.3) (2019-07-31)
197
333
 
198
- ### Features
334
+ #### 🚀 Features
199
335
 
200
- - **webgl:** update Texture.config() default handling ([4c62d87](https://github.com/thi-ng/umbrella/commit/4c62d87016d6e73899d9c080e9c9f7fb03d841f2))
336
+ - add initial coll of blend mode presets ([58e0b04](https://github.com/thi-ng/umbrella/commit/58e0b04))
337
+ - add blending & stencil enums/types ([c8898a0](https://github.com/thi-ng/umbrella/commit/c8898a0))
338
+ - update Texture.configure, store target, format, type, size ([9131310](https://github.com/thi-ng/umbrella/commit/9131310))
339
+ - update texture config, split api.ts into mult files ([052552f](https://github.com/thi-ng/umbrella/commit/052552f))
340
+ - TextureOpts.format now refers to internal format, with
341
+ base format & type inferred from TEX_FORMATS decls
342
+ - add preliminary 3D texture support
201
343
 
202
- ## [0.2.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@0.2.2...@thi.ng/webgl@0.2.3) (2020-01-24)
344
+ #### 🩹 Bug fixes
203
345
 
204
- ### Bug Fixes
346
+ - update check for WEBGL_draw_buffers ([7df09d1](https://github.com/thi-ng/umbrella/commit/7df09d1))
347
+ - get extension only when more than one render targets
205
348
 
206
- - **webgl:** webgl1 depth texture ([5c86165](https://github.com/thi-ng/umbrella/commit/5c861659c353076d01153d3258d3d98bc5113a1c))
349
+ #### ♻️ Refactoring
207
350
 
208
- ## [0.2.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@0.2.1...@thi.ng/webgl@0.2.2) (2019-11-30)
351
+ - update blend mode presets as sep consts ([cc0ffcd](https://github.com/thi-ng/umbrella/commit/cc0ffcd))
352
+ - update canvas texture gens ([da0fcb2](https://github.com/thi-ng/umbrella/commit/da0fcb2))
353
+ - add pixel dep, update tex gens ([58822c8](https://github.com/thi-ng/umbrella/commit/58822c8))
354
+ - add/rename types, add/move checks, update deps ([d56b720](https://github.com/thi-ng/umbrella/commit/d56b720))
209
355
 
210
- ### Bug Fixes
356
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.1.0) (2019-07-07)
211
357
 
212
- - **webgl:** fix PHONG shader preset, minor update LAMBERT ([792379f](https://github.com/thi-ng/umbrella/commit/792379fd507cbc9ef684a1b255f3152cb55092b9))
213
- - **webgl:** use LOGGER for warnings ([14d5025](https://github.com/thi-ng/umbrella/commit/14d502556717e1e0aded784294401ec0afc6d733))
358
+ #### 🚀 Features
214
359
 
215
- ## [0.2.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@0.2.0...@thi.ng/webgl@0.2.1) (2019-11-09)
360
+ - update shaderSourceFromAST(), update shader presets, remove prefixes ([6aa5715](https://github.com/thi-ng/umbrella/commit/6aa5715))
361
+ - lambert & phong shader presets now AST based
362
+ - positionAttrib & colorAttrib helpers return AST nodes
363
+ - initial integration of shader-ast ([73faffd](https://github.com/thi-ng/umbrella/commit/73faffd))
364
+ - replace GLSL enums with shader-ast types
365
+ - add shaderSourceFromAST()
366
+ - update shader presets
367
+ - update old code gens (to be replaced soon)
368
+ - TS strictNullChecks, assertions, minor type updates ([ad672c7](https://github.com/thi-ng/umbrella/commit/ad672c7))
369
+ - add screen2d() arity to extract screen size from gl ctx ([7f38f10](https://github.com/thi-ng/umbrella/commit/7f38f10))
370
+ - add AttribPool support, update shader ext handling, add screen2d() ([f8081f2](https://github.com/thi-ng/umbrella/commit/f8081f2))
371
+ - add ModelSpec.attribPool and update compileModel to delegate to
372
+ compileAttribPool()
373
+ - update compileAttribs, compileIndices to return updated specs
374
+ - add GL_EXT_INFO and update compileExtensionPragma()
375
+ - add initShaderExtensions()
376
+ - add sceen2d() proj matrix helper
216
377
 
217
- ### Bug Fixes
378
+ #### 🩹 Bug fixes
218
379
 
219
- - **webgl:** add LOGGER, update initUniforms() ([4719110](https://github.com/thi-ng/umbrella/commit/471911084c8db79930cf273f222f345318671953))
220
- - **webgl:** ensure system defaults for all uniforms, update equiv checks ([39dc83f](https://github.com/thi-ng/umbrella/commit/39dc83ff49c97fb7ba70f7bbf0f7244d612c7fc8))
380
+ - update lambert shader preset ([2fea507](https://github.com/thi-ng/umbrella/commit/2fea507))
381
+ - update GPGPU texture & shader handling ([ce286ad](https://github.com/thi-ng/umbrella/commit/ce286ad))
382
+ - uniform array & output var handling ([7e559a1](https://github.com/thi-ng/umbrella/commit/7e559a1))
383
+ - also disable prefixes in prepareShaderSource() ([18ca4b5](https://github.com/thi-ng/umbrella/commit/18ca4b5))
384
+ - apply ModelSpec mode in compileModel, fix/simplify draw fns ([67334a6](https://github.com/thi-ng/umbrella/commit/67334a6))
221
385
 
222
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/webgl@0.1.7...@thi.ng/webgl@0.2.0) (2019-09-21)
386
+ #### ♻️ Refactoring
223
387
 
224
- ### Bug Fixes
388
+ - remove obsolete defglsl & old shader snippets, update deps ([98e0780](https://github.com/thi-ng/umbrella/commit/98e0780))
389
+ - update FX_SHADER_SPEC to use AST ([341cf04](https://github.com/thi-ng/umbrella/commit/341cf04))