@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 +286 -113
- package/README.md +1 -1
- package/dev/gl.js +675 -0
- package/package.json +217 -212
- package/texture.js +1 -1
- package/textures/stripes.js +1 -1
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
|
-
|
|
110
|
+
#### 🛑 Breaking changes
|
|
7
111
|
|
|
8
|
-
|
|
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
|
-
|
|
132
|
+
### [3.3.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.8) (2020-12-07)
|
|
15
133
|
|
|
16
|
-
|
|
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
|
-
|
|
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
|
-
|
|
149
|
+
- split Texture.configure() ([91b4329](https://github.com/thi-ng/umbrella/commit/91b4329))
|
|
26
150
|
|
|
27
|
-
|
|
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
|
-
|
|
155
|
+
- update imports ([18e86e9](https://github.com/thi-ng/umbrella/commit/18e86e9))
|
|
31
156
|
|
|
32
|
-
|
|
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
|
-
|
|
161
|
+
- update delete op (TS4.0) ([7b5f1e1](https://github.com/thi-ng/umbrella/commit/7b5f1e1))
|
|
36
162
|
|
|
37
|
-
|
|
163
|
+
## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.3.0) (2020-08-20)
|
|
38
164
|
|
|
39
|
-
|
|
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
|
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
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
|
-
|
|
185
|
+
- update/add DrawOpts, add unbindTextures() ([27021fa](https://github.com/thi-ng/umbrella/commit/27021fa))
|
|
57
186
|
|
|
58
|
-
|
|
187
|
+
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.1.0) (2020-08-12)
|
|
59
188
|
|
|
60
|
-
|
|
189
|
+
#### 🚀 Features
|
|
61
190
|
|
|
62
|
-
|
|
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
|
-
|
|
197
|
+
### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.0.1) (2020-08-08)
|
|
65
198
|
|
|
66
|
-
|
|
199
|
+
#### 🩹 Bug fixes
|
|
67
200
|
|
|
68
|
-
-
|
|
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
|
-
#
|
|
203
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@3.0.0) (2020-07-28)
|
|
73
204
|
|
|
74
|
-
|
|
205
|
+
#### 🛑 Breaking changes
|
|
75
206
|
|
|
76
|
-
-
|
|
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
|
-
|
|
211
|
+
#### 🚀 Features
|
|
79
212
|
|
|
80
|
-
-
|
|
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
|
-
|
|
217
|
+
#### 🩹 Bug fixes
|
|
83
218
|
|
|
84
|
-
-
|
|
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
|
-
#
|
|
221
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@2.0.0) (2020-06-07)
|
|
88
222
|
|
|
89
|
-
|
|
223
|
+
#### 🛑 Breaking changes
|
|
90
224
|
|
|
91
|
-
-
|
|
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
|
-
|
|
229
|
+
### [1.0.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.16) (2020-06-01)
|
|
94
230
|
|
|
95
|
-
|
|
231
|
+
#### ♻️ Refactoring
|
|
96
232
|
|
|
97
|
-
-
|
|
233
|
+
- update deref() uniform handling ([2c81849](https://github.com/thi-ng/umbrella/commit/2c81849))
|
|
98
234
|
|
|
99
|
-
|
|
235
|
+
### [1.0.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.6) (2020-04-20)
|
|
100
236
|
|
|
101
|
-
|
|
237
|
+
#### 🩹 Bug fixes
|
|
102
238
|
|
|
103
|
-
-
|
|
239
|
+
- unbind fbo after configure ([25414b5](https://github.com/thi-ng/umbrella/commit/25414b5))
|
|
104
240
|
|
|
105
|
-
|
|
241
|
+
### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.5) (2020-04-11)
|
|
106
242
|
|
|
107
|
-
|
|
243
|
+
#### 🩹 Bug fixes
|
|
108
244
|
|
|
109
|
-
-
|
|
110
|
-
-
|
|
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
|
-
|
|
248
|
+
### [1.0.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.4) (2020-04-07)
|
|
113
249
|
|
|
114
|
-
|
|
250
|
+
#### 🩹 Bug fixes
|
|
115
251
|
|
|
116
|
-
-
|
|
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
|
-
|
|
254
|
+
### [1.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.2) (2020-04-05)
|
|
119
255
|
|
|
120
|
-
|
|
256
|
+
#### ♻️ Refactoring
|
|
121
257
|
|
|
122
|
-
-
|
|
258
|
+
- switch to non-const enums ([c491b00](https://github.com/thi-ng/umbrella/commit/c491b00))
|
|
123
259
|
|
|
124
|
-
|
|
260
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@1.0.0) (2020-03-28)
|
|
125
261
|
|
|
126
|
-
|
|
127
|
-
- **webgl:** add/update opts for defQuadModel() ([13b7d9e](https://github.com/thi-ng/umbrella/commit/13b7d9e5ad26622702cfd4f1c4957da50ab704ed))
|
|
262
|
+
#### 🛑 Breaking changes
|
|
128
263
|
|
|
129
|
-
|
|
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
|
-
|
|
132
|
-
- update callsite in defMultiPass()
|
|
277
|
+
#### 🚀 Features
|
|
133
278
|
|
|
134
|
-
|
|
279
|
+
- add DrawMode enums ([5adaa23](https://github.com/thi-ng/umbrella/commit/5adaa23))
|
|
135
280
|
|
|
136
|
-
|
|
281
|
+
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.3.0) (2020-02-25)
|
|
137
282
|
|
|
138
|
-
|
|
283
|
+
#### 🚀 Features
|
|
139
284
|
|
|
140
|
-
|
|
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
|
-
|
|
143
|
-
- update deps
|
|
289
|
+
#### ♻️ Refactoring
|
|
144
290
|
|
|
145
|
-
|
|
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
|
-
###
|
|
294
|
+
### [0.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.2) (2019-11-30)
|
|
148
295
|
|
|
149
|
-
|
|
296
|
+
#### 🩹 Bug fixes
|
|
150
297
|
|
|
151
|
-
|
|
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
|
-
###
|
|
302
|
+
### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.1) (2019-11-09)
|
|
154
303
|
|
|
155
|
-
|
|
156
|
-
- **webgl:** add missing braces ([5e6d5bf](https://github.com/thi-ng/umbrella/commit/5e6d5bfa3b0529ec7c448d2ec1dde04716fb597e))
|
|
304
|
+
#### 🩹 Bug fixes
|
|
157
305
|
|
|
158
|
-
|
|
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
|
-
|
|
310
|
+
#### ♻️ Refactoring
|
|
161
311
|
|
|
162
|
-
-
|
|
312
|
+
- add type hints (TS 3.6.4) ([bd01c79](https://github.com/thi-ng/umbrella/commit/bd01c79))
|
|
163
313
|
|
|
164
|
-
|
|
314
|
+
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.2.0) (2019-09-21)
|
|
165
315
|
|
|
166
|
-
|
|
316
|
+
#### 🚀 Features
|
|
167
317
|
|
|
168
|
-
-
|
|
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
|
-
|
|
323
|
+
#### 🩹 Bug fixes
|
|
171
324
|
|
|
172
|
-
-
|
|
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
|
-
|
|
328
|
+
#### ♻️ Refactoring
|
|
175
329
|
|
|
176
|
-
-
|
|
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
|
-
|
|
332
|
+
### [0.1.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.1.3) (2019-07-31)
|
|
189
333
|
|
|
190
|
-
|
|
334
|
+
#### 🚀 Features
|
|
191
335
|
|
|
192
|
-
-
|
|
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
|
-
|
|
344
|
+
#### 🩹 Bug fixes
|
|
195
345
|
|
|
196
|
-
|
|
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
|
-
|
|
349
|
+
#### ♻️ Refactoring
|
|
199
350
|
|
|
200
|
-
|
|
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
|
-
|
|
356
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/webgl@0.1.0) (2019-07-07)
|
|
203
357
|
|
|
204
|
-
|
|
205
|
-
- **webgl:** use LOGGER for warnings ([14d5025](https://github.com/thi-ng/umbrella/commit/14d502556717e1e0aded784294401ec0afc6d733))
|
|
358
|
+
#### 🚀 Features
|
|
206
359
|
|
|
207
|
-
|
|
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
|
-
|
|
378
|
+
#### 🩹 Bug fixes
|
|
210
379
|
|
|
211
|
-
-
|
|
212
|
-
-
|
|
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
|
-
|
|
386
|
+
#### ♻️ Refactoring
|
|
215
387
|
|
|
216
|
-
|
|
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