@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.
- package/CHANGELOG.md +280 -115
- package/dev/gl.js +675 -0
- 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
|
-
|
|
94
|
+
# [5.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@5.0.0) (2021-06-08)
|
|
7
95
|
|
|
8
|
-
|
|
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
|
-
|
|
110
|
+
#### 🛑 Breaking changes
|
|
15
111
|
|
|
16
|
-
|
|
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
|
-
|
|
132
|
+
### [3.3.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.8) (2020-12-07)
|
|
23
133
|
|
|
24
|
-
|
|
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
|
-
|
|
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
|
-
|
|
149
|
+
- split Texture.configure() ([91b4329](https://github.com/thi-ng/umbrella/commit/91b4329))
|
|
34
150
|
|
|
35
|
-
|
|
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
|
-
|
|
155
|
+
- update imports ([18e86e9](https://github.com/thi-ng/umbrella/commit/18e86e9))
|
|
39
156
|
|
|
40
|
-
|
|
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
|
-
|
|
161
|
+
- update delete op (TS4.0) ([7b5f1e1](https://github.com/thi-ng/umbrella/commit/7b5f1e1))
|
|
44
162
|
|
|
45
|
-
|
|
163
|
+
## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.0) (2020-08-20)
|
|
46
164
|
|
|
47
|
-
|
|
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
|
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
-
|
|
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
|
-
|
|
185
|
+
- update/add DrawOpts, add unbindTextures() ([27021fa](https://github.com/thi-ng/umbrella/commit/27021fa))
|
|
65
186
|
|
|
66
|
-
|
|
187
|
+
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.1.0) (2020-08-12)
|
|
67
188
|
|
|
68
|
-
|
|
189
|
+
#### 🚀 Features
|
|
69
190
|
|
|
70
|
-
|
|
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
|
-
|
|
197
|
+
### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.0.1) (2020-08-08)
|
|
73
198
|
|
|
74
|
-
|
|
199
|
+
#### 🩹 Bug fixes
|
|
75
200
|
|
|
76
|
-
-
|
|
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
|
-
#
|
|
203
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.0.0) (2020-07-28)
|
|
81
204
|
|
|
82
|
-
|
|
205
|
+
#### 🛑 Breaking changes
|
|
83
206
|
|
|
84
|
-
-
|
|
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
|
-
|
|
211
|
+
#### 🚀 Features
|
|
87
212
|
|
|
88
|
-
-
|
|
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
|
-
|
|
217
|
+
#### 🩹 Bug fixes
|
|
91
218
|
|
|
92
|
-
-
|
|
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
|
-
#
|
|
221
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@2.0.0) (2020-06-07)
|
|
96
222
|
|
|
97
|
-
|
|
223
|
+
#### 🛑 Breaking changes
|
|
98
224
|
|
|
99
|
-
-
|
|
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
|
-
|
|
229
|
+
### [1.0.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.16) (2020-06-01)
|
|
102
230
|
|
|
103
|
-
|
|
231
|
+
#### ♻️ Refactoring
|
|
104
232
|
|
|
105
|
-
-
|
|
233
|
+
- update deref() uniform handling ([2c81849](https://github.com/thi-ng/umbrella/commit/2c81849))
|
|
106
234
|
|
|
107
|
-
|
|
235
|
+
### [1.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.6) (2020-04-20)
|
|
108
236
|
|
|
109
|
-
|
|
237
|
+
#### 🩹 Bug fixes
|
|
110
238
|
|
|
111
|
-
-
|
|
239
|
+
- unbind fbo after configure ([25414b5](https://github.com/thi-ng/umbrella/commit/25414b5))
|
|
112
240
|
|
|
113
|
-
|
|
241
|
+
### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.5) (2020-04-11)
|
|
114
242
|
|
|
115
|
-
|
|
243
|
+
#### 🩹 Bug fixes
|
|
116
244
|
|
|
117
|
-
-
|
|
118
|
-
-
|
|
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
|
-
|
|
248
|
+
### [1.0.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.4) (2020-04-07)
|
|
121
249
|
|
|
122
|
-
|
|
250
|
+
#### 🩹 Bug fixes
|
|
123
251
|
|
|
124
|
-
-
|
|
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
|
-
|
|
254
|
+
### [1.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.2) (2020-04-05)
|
|
127
255
|
|
|
128
|
-
|
|
256
|
+
#### ♻️ Refactoring
|
|
129
257
|
|
|
130
|
-
-
|
|
258
|
+
- switch to non-const enums ([c491b00](https://github.com/thi-ng/umbrella/commit/c491b00))
|
|
131
259
|
|
|
132
|
-
|
|
260
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.0) (2020-03-28)
|
|
133
261
|
|
|
134
|
-
|
|
135
|
-
- **webgl:** add/update opts for defQuadModel() ([13b7d9e](https://github.com/thi-ng/umbrella/commit/13b7d9e5ad26622702cfd4f1c4957da50ab704ed))
|
|
262
|
+
#### 🛑 Breaking changes
|
|
136
263
|
|
|
137
|
-
|
|
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
|
-
|
|
140
|
-
- update callsite in defMultiPass()
|
|
277
|
+
#### 🚀 Features
|
|
141
278
|
|
|
142
|
-
|
|
279
|
+
- add DrawMode enums ([5adaa23](https://github.com/thi-ng/umbrella/commit/5adaa23))
|
|
143
280
|
|
|
144
|
-
|
|
281
|
+
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.3.0) (2020-02-25)
|
|
145
282
|
|
|
146
|
-
|
|
283
|
+
#### 🚀 Features
|
|
147
284
|
|
|
148
|
-
|
|
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
|
-
|
|
151
|
-
- update deps
|
|
289
|
+
#### ♻️ Refactoring
|
|
152
290
|
|
|
153
|
-
|
|
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
|
-
###
|
|
294
|
+
### [0.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.2) (2019-11-30)
|
|
156
295
|
|
|
157
|
-
|
|
296
|
+
#### 🩹 Bug fixes
|
|
158
297
|
|
|
159
|
-
|
|
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
|
-
###
|
|
302
|
+
### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.1) (2019-11-09)
|
|
162
303
|
|
|
163
|
-
|
|
164
|
-
- **webgl:** add missing braces ([5e6d5bf](https://github.com/thi-ng/umbrella/commit/5e6d5bfa3b0529ec7c448d2ec1dde04716fb597e))
|
|
304
|
+
#### 🩹 Bug fixes
|
|
165
305
|
|
|
166
|
-
|
|
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
|
-
|
|
310
|
+
#### ♻️ Refactoring
|
|
169
311
|
|
|
170
|
-
-
|
|
312
|
+
- add type hints (TS 3.6.4) ([bd01c79](https://github.com/thi-ng/umbrella/commit/bd01c79))
|
|
171
313
|
|
|
172
|
-
|
|
314
|
+
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.0) (2019-09-21)
|
|
173
315
|
|
|
174
|
-
|
|
316
|
+
#### 🚀 Features
|
|
175
317
|
|
|
176
|
-
-
|
|
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
|
-
|
|
323
|
+
#### 🩹 Bug fixes
|
|
179
324
|
|
|
180
|
-
-
|
|
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
|
-
|
|
328
|
+
#### ♻️ Refactoring
|
|
183
329
|
|
|
184
|
-
-
|
|
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
|
-
|
|
332
|
+
### [0.1.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.1.3) (2019-07-31)
|
|
197
333
|
|
|
198
|
-
|
|
334
|
+
#### 🚀 Features
|
|
199
335
|
|
|
200
|
-
-
|
|
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
|
-
|
|
344
|
+
#### 🩹 Bug fixes
|
|
203
345
|
|
|
204
|
-
|
|
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
|
-
|
|
349
|
+
#### ♻️ Refactoring
|
|
207
350
|
|
|
208
|
-
|
|
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
|
-
|
|
356
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.1.0) (2019-07-07)
|
|
211
357
|
|
|
212
|
-
|
|
213
|
-
- **webgl:** use LOGGER for warnings ([14d5025](https://github.com/thi-ng/umbrella/commit/14d502556717e1e0aded784294401ec0afc6d733))
|
|
358
|
+
#### 🚀 Features
|
|
214
359
|
|
|
215
|
-
|
|
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
|
-
|
|
378
|
+
#### 🩹 Bug fixes
|
|
218
379
|
|
|
219
|
-
-
|
|
220
|
-
-
|
|
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
|
-
|
|
386
|
+
#### ♻️ Refactoring
|
|
223
387
|
|
|
224
|
-
|
|
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))
|