@thi.ng/webgl 6.0.10 → 6.1.2

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 CHANGED
@@ -1,216 +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)
93
+
94
+ # [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@5.0.0) (2021-06-08)
95
+
96
+ #### 🛑 Breaking changes
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
103
+
104
+ #### 🚀 Features
105
+
106
+ - add passCopy() HOF pass gen ([fb6b5b7](https://github.com/thi-ng/umbrella/commit/fb6b5b7))
107
+
108
+ # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@4.0.0) (2021-02-20)
5
109
 
6
- ## [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
7
111
 
8
- **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))
9
116
 
117
+ #### 🩹 Bug fixes
10
118
 
119
+ - update compileAttribPool() ([6b5dd8e](https://github.com/thi-ng/umbrella/commit/6b5dd8e))
120
+ - always ensure GLType is used in resulting ModelAttributeSpec's
11
121
 
122
+ #### ♻️ Refactoring
12
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()
13
131
 
14
- ## [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)
15
133
 
16
- **Note:** Version bump only for package @thi.ng/webgl
134
+ #### ♻️ Refactoring
17
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))
18
138
 
139
+ ### [3.3.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.6) (2020-11-24)
19
140
 
141
+ #### ♻️ Refactoring
20
142
 
143
+ - update destructuring ([4e6ebcf](https://github.com/thi-ng/umbrella/commit/4e6ebcf))
21
144
 
22
- # [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)
23
146
 
147
+ #### ♻️ Refactoring
24
148
 
25
- ### Build System
149
+ - split Texture.configure() ([91b4329](https://github.com/thi-ng/umbrella/commit/91b4329))
26
150
 
27
- * 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)
28
152
 
153
+ #### ♻️ Refactoring
29
154
 
30
- ### Features
155
+ - update imports ([18e86e9](https://github.com/thi-ng/umbrella/commit/18e86e9))
31
156
 
32
- * **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)
33
158
 
159
+ #### ♻️ Refactoring
34
160
 
35
- ### BREAKING CHANGES
161
+ - update delete op (TS4.0) ([7b5f1e1](https://github.com/thi-ng/umbrella/commit/7b5f1e1))
36
162
 
37
- * discontinue CommonJS & UMD versions
163
+ ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.0) (2020-08-20)
38
164
 
39
- - only ESM modules will be published from now on
40
- - CJS obsolete due to ESM support in recent versions of node:
41
- - i.e. launch NodeJS via:
42
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
43
- - in the node REPL use `await import(...)` instead of `require()`
44
- - UMD obsolete due to widespread browser support for ESM
165
+ #### 🚀 Features
45
166
 
46
- Also:
47
- - normalize/restructure/reorg all package.json files
48
- - cleanup all build scripts, remove obsolete
49
- - 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
50
171
 
172
+ ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.2.0) (2020-08-16)
51
173
 
174
+ #### 🚀 Features
52
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()`)
53
180
 
181
+ ### [3.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.1.1) (2020-08-12)
54
182
 
183
+ #### 🩹 Bug fixes
55
184
 
56
- # [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))
57
186
 
58
- ### Code Refactoring
187
+ ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.1.0) (2020-08-12)
59
188
 
60
- - **webgl:** update multipass texture uniforms ([86d363a](https://github.com/thi-ng/umbrella/commit/86d363aa80c1861388bccd9fb57000afd96e4257))
189
+ #### 🚀 Features
61
190
 
62
- ### 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
63
196
 
64
- - **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)
65
198
 
66
- ### BREAKING CHANGES
199
+ #### 🩹 Bug fixes
67
200
 
68
- - **webgl:** replace input tex `sampler2D[]` array w/ named inputs
69
- - new unis: `input0`, `input1`, etc. to sync w/ same approach as already used for outputs
70
- - new approach also simplifies texture lookups in shader-ast code
201
+ - unbind texture after configured ([9612cdd](https://github.com/thi-ng/umbrella/commit/9612cdd))
71
202
 
72
- # [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)
73
204
 
74
- ### Bug Fixes
205
+ #### 🛑 Breaking changes
75
206
 
76
- - **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()
77
210
 
78
- ### Code Refactoring
211
+ #### 🚀 Features
79
212
 
80
- - **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()
81
216
 
82
- ### BREAKING CHANGES
217
+ #### 🩹 Bug fixes
83
218
 
84
- - **webgl:** attrib buffer data type use string consts
85
- - 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))
86
220
 
87
- # [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)
88
222
 
89
- ### Features
223
+ #### 🛑 Breaking changes
90
224
 
91
- - **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
92
228
 
93
- # [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)
94
230
 
95
- ### Features
231
+ #### ♻️ Refactoring
96
232
 
97
- - **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))
98
234
 
99
- ## [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)
100
236
 
101
- ### Bug Fixes
237
+ #### 🩹 Bug fixes
102
238
 
103
- - **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))
104
240
 
105
- # [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)
106
242
 
107
- ### Features
243
+ #### 🩹 Bug fixes
108
244
 
109
- - **webgl:** add DrawFlags opts for draw() ([800382b](https://github.com/thi-ng/umbrella/commit/800382ba1a67a5dd9f8a4edc17f6d791bfa2c627))
110
- - **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))
111
247
 
112
- ## [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)
113
249
 
114
- ### Bug Fixes
250
+ #### 🩹 Bug fixes
115
251
 
116
- - **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))
117
253
 
118
- # [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)
119
255
 
120
- ### Bug Fixes
256
+ #### ♻️ Refactoring
121
257
 
122
- - **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))
123
259
 
124
- ### Features
260
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.0) (2020-03-28)
125
261
 
126
- - **webgl:** add varying int support (webgl2) ([c812800](https://github.com/thi-ng/umbrella/commit/c812800cb8d61a19b892a7f802fd03820c7e7310))
127
- - **webgl:** add/update opts for defQuadModel() ([13b7d9e](https://github.com/thi-ng/umbrella/commit/13b7d9e5ad26622702cfd4f1c4957da50ab704ed))
262
+ #### 🛑 Breaking changes
128
263
 
129
- ### 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()
130
276
 
131
- - **webgl:** add/update opts for defQuadModel()
132
- - update callsite in defMultiPass()
277
+ #### 🚀 Features
133
278
 
134
- # [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))
135
280
 
136
- ### Code Refactoring
281
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.3.0) (2020-02-25)
137
282
 
138
- - **webgl:** remove adaptDPI() ([6d49da6](https://github.com/thi-ng/umbrella/commit/6d49da610bec87fef96c77a39f1181002872f2ba))
283
+ #### 🚀 Features
139
284
 
140
- ### 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
141
288
 
142
- - **webgl:** re-use adaptDPI() from new @thi.ng/adapt-dpi pkg
143
- - update deps
289
+ #### ♻️ Refactoring
144
290
 
145
- ## [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))
146
293
 
147
- ### Bug Fixes
294
+ ### [0.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.2) (2019-11-30)
148
295
 
149
- - **webgl:** unbind fbo after configure ([25414b5](https://github.com/thi-ng/umbrella/commit/25414b598211c05597714bc07d16a5f6a6249e5f))
296
+ #### 🩹 Bug fixes
150
297
 
151
- ## [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))
152
301
 
153
- ### Bug Fixes
302
+ ### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.1) (2019-11-09)
154
303
 
155
- - **webgl:** `disableVertexAttribArray` in `Shader.unbind` ([d3eab37](https://github.com/thi-ng/umbrella/commit/d3eab37cb5e356aa80207ce445926844cc072261))
156
- - **webgl:** add missing braces ([5e6d5bf](https://github.com/thi-ng/umbrella/commit/5e6d5bfa3b0529ec7c448d2ec1dde04716fb597e))
304
+ #### 🩹 Bug fixes
157
305
 
158
- ## [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))
159
309
 
160
- ### Bug Fixes
310
+ #### ♻️ Refactoring
161
311
 
162
- - **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))
163
313
 
164
- # [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)
165
315
 
166
- ### Code Refactoring
316
+ #### 🚀 Features
167
317
 
168
- - **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))
169
322
 
170
- ### Features
323
+ #### 🩹 Bug fixes
171
324
 
172
- - **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))
173
327
 
174
- ### BREAKING CHANGES
328
+ #### ♻️ Refactoring
175
329
 
176
- - **webgl:** #210, rename factory functions (`defXXX`)
177
- - rename buffer() => defBuffer()
178
- - rename fbo() => defFBO()
179
- - rename rbo() => defRBO()
180
- - rename multipass() => defMultiPass()
181
- - rename shader() => defShader()
182
- - rename texture() => defTexture()
183
- - rename cubeMap() => defTextureCubeMap()
184
- - rename floatTexture() => defTextureFloat()
185
- - rename cube() => defCubeModel()
186
- - rename quad() => defQuadModel()
330
+ - update TEX_FORMATS ([9a084a2](https://github.com/thi-ng/umbrella/commit/9a084a2))
187
331
 
188
- # [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)
189
333
 
190
- ### Features
334
+ #### 🚀 Features
191
335
 
192
- - **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
193
343
 
194
- ## [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
195
345
 
196
- ### 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
197
348
 
198
- - **webgl:** webgl1 depth texture ([5c86165](https://github.com/thi-ng/umbrella/commit/5c861659c353076d01153d3258d3d98bc5113a1c))
349
+ #### ♻️ Refactoring
199
350
 
200
- ## [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))
201
355
 
202
- ### Bug Fixes
356
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.1.0) (2019-07-07)
203
357
 
204
- - **webgl:** fix PHONG shader preset, minor update LAMBERT ([792379f](https://github.com/thi-ng/umbrella/commit/792379fd507cbc9ef684a1b255f3152cb55092b9))
205
- - **webgl:** use LOGGER for warnings ([14d5025](https://github.com/thi-ng/umbrella/commit/14d502556717e1e0aded784294401ec0afc6d733))
358
+ #### 🚀 Features
206
359
 
207
- ## [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
208
377
 
209
- ### Bug Fixes
378
+ #### 🩹 Bug fixes
210
379
 
211
- - **webgl:** add LOGGER, update initUniforms() ([4719110](https://github.com/thi-ng/umbrella/commit/471911084c8db79930cf273f222f345318671953))
212
- - **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))
213
385
 
214
- # [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
215
387
 
216
- ### 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))
package/README.md CHANGED
@@ -100,7 +100,7 @@ node --experimental-repl-await
100
100
  > const webgl = await import("@thi.ng/webgl");
101
101
  ```
102
102
 
103
- Package sizes (gzipped, pre-treeshake): ESM: 12.14 KB
103
+ Package sizes (gzipped, pre-treeshake): ESM: 12.24 KB
104
104
 
105
105
  ## Dependencies
106
106