@thi.ng/webgl 6.2.17 → 6.2.19
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 +1 -1
- package/README.md +1 -1
- package/api/model.d.ts +4 -3
- package/fbo.d.ts +6 -7
- package/fbo.js +6 -7
- package/package.json +19 -19
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/api/model.d.ts
CHANGED
|
@@ -24,7 +24,8 @@ export interface ModelSpec {
|
|
|
24
24
|
attribs: ModelAttributeSpecs;
|
|
25
25
|
/**
|
|
26
26
|
* Geometry attributes given as
|
|
27
|
-
*
|
|
27
|
+
* [`AttribPool`](https://docs.thi.ng/umbrella/vector-pools/classes/AttribPool.html)
|
|
28
|
+
* instance.
|
|
28
29
|
*/
|
|
29
30
|
attribPool?: AttribPool;
|
|
30
31
|
/**
|
|
@@ -93,8 +94,8 @@ export interface ModelAttributeSpec {
|
|
|
93
94
|
*/
|
|
94
95
|
type?: Type | GLType;
|
|
95
96
|
/**
|
|
96
|
-
* Only used for instanced attributes.
|
|
97
|
-
*
|
|
97
|
+
* Only used for instanced attributes. See:
|
|
98
|
+
* https://www.khronos.org/registry/OpenGL/extensions/ANGLE/ANGLE_instanced_arrays.txt
|
|
98
99
|
*/
|
|
99
100
|
divisor?: number;
|
|
100
101
|
}
|
package/fbo.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import type { FboOpts, IFbo } from "./api/buffers.js";
|
|
2
2
|
/**
|
|
3
|
-
* WebGL framebuffer wrapper w/ automatic detection & support for
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* FBO instance.
|
|
3
|
+
* WebGL framebuffer wrapper w/ automatic detection & support for multiple
|
|
4
|
+
* render targets (color attachments) and optional depth buffer. Multiple
|
|
5
|
+
* targets are only supported if the `WEBGL_draw_buffers` extension is
|
|
6
|
+
* available. The max. number of attachments can be obtained via the
|
|
7
|
+
* `maxAttachments` property of the FBO instance.
|
|
9
8
|
*
|
|
10
9
|
* ```
|
|
11
10
|
* // create FBO w/ 2 render targets
|
|
12
11
|
* fbo = new FBO(gl, { tex: [tex1, tex2] });
|
|
13
12
|
* ```
|
|
14
13
|
*
|
|
15
|
-
*
|
|
14
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers
|
|
16
15
|
*/
|
|
17
16
|
export declare class FBO implements IFbo {
|
|
18
17
|
gl: WebGLRenderingContext;
|
package/fbo.js
CHANGED
|
@@ -6,19 +6,18 @@ import { RBO } from "./rbo.js";
|
|
|
6
6
|
const GL_COLOR_ATTACHMENT0_WEBGL = 0x8ce0;
|
|
7
7
|
const GL_MAX_COLOR_ATTACHMENTS_WEBGL = 0x8cdf;
|
|
8
8
|
/**
|
|
9
|
-
* WebGL framebuffer wrapper w/ automatic detection & support for
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* FBO instance.
|
|
9
|
+
* WebGL framebuffer wrapper w/ automatic detection & support for multiple
|
|
10
|
+
* render targets (color attachments) and optional depth buffer. Multiple
|
|
11
|
+
* targets are only supported if the `WEBGL_draw_buffers` extension is
|
|
12
|
+
* available. The max. number of attachments can be obtained via the
|
|
13
|
+
* `maxAttachments` property of the FBO instance.
|
|
15
14
|
*
|
|
16
15
|
* ```
|
|
17
16
|
* // create FBO w/ 2 render targets
|
|
18
17
|
* fbo = new FBO(gl, { tex: [tex1, tex2] });
|
|
19
18
|
* ```
|
|
20
19
|
*
|
|
21
|
-
*
|
|
20
|
+
* https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers
|
|
22
21
|
*/
|
|
23
22
|
export class FBO {
|
|
24
23
|
constructor(gl, opts) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/webgl",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.19",
|
|
4
4
|
"description": "WebGL & GLSL abstraction layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -38,26 +38,26 @@
|
|
|
38
38
|
"test": "testament test"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@thi.ng/adapt-dpi": "^2.2.
|
|
42
|
-
"@thi.ng/api": "^8.6.
|
|
43
|
-
"@thi.ng/associative": "^6.2.
|
|
44
|
-
"@thi.ng/checks": "^3.3.
|
|
45
|
-
"@thi.ng/equiv": "^2.1.
|
|
46
|
-
"@thi.ng/errors": "^2.2.
|
|
47
|
-
"@thi.ng/logger": "^1.4.
|
|
48
|
-
"@thi.ng/matrices": "^2.1.
|
|
49
|
-
"@thi.ng/memoize": "^3.1.
|
|
50
|
-
"@thi.ng/pixel": "^4.0.
|
|
51
|
-
"@thi.ng/shader-ast": "^0.12.
|
|
52
|
-
"@thi.ng/shader-ast-glsl": "^0.4.
|
|
53
|
-
"@thi.ng/shader-ast-stdlib": "^0.12.
|
|
54
|
-
"@thi.ng/transducers": "^8.3.
|
|
55
|
-
"@thi.ng/vector-pools": "^3.1.
|
|
56
|
-
"@thi.ng/vectors": "^7.5.
|
|
41
|
+
"@thi.ng/adapt-dpi": "^2.2.5",
|
|
42
|
+
"@thi.ng/api": "^8.6.2",
|
|
43
|
+
"@thi.ng/associative": "^6.2.21",
|
|
44
|
+
"@thi.ng/checks": "^3.3.6",
|
|
45
|
+
"@thi.ng/equiv": "^2.1.16",
|
|
46
|
+
"@thi.ng/errors": "^2.2.7",
|
|
47
|
+
"@thi.ng/logger": "^1.4.6",
|
|
48
|
+
"@thi.ng/matrices": "^2.1.38",
|
|
49
|
+
"@thi.ng/memoize": "^3.1.21",
|
|
50
|
+
"@thi.ng/pixel": "^4.0.13",
|
|
51
|
+
"@thi.ng/shader-ast": "^0.12.35",
|
|
52
|
+
"@thi.ng/shader-ast-glsl": "^0.4.35",
|
|
53
|
+
"@thi.ng/shader-ast-stdlib": "^0.12.28",
|
|
54
|
+
"@thi.ng/transducers": "^8.3.28",
|
|
55
|
+
"@thi.ng/vector-pools": "^3.1.39",
|
|
56
|
+
"@thi.ng/vectors": "^7.5.29"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@microsoft/api-extractor": "^7.33.7",
|
|
60
|
-
"@thi.ng/testament": "^0.3.
|
|
60
|
+
"@thi.ng/testament": "^0.3.8",
|
|
61
61
|
"rimraf": "^3.0.2",
|
|
62
62
|
"tools": "^0.0.1",
|
|
63
63
|
"typedoc": "^0.23.22",
|
|
@@ -219,5 +219,5 @@
|
|
|
219
219
|
],
|
|
220
220
|
"year": 2014
|
|
221
221
|
},
|
|
222
|
-
"gitHead": "
|
|
222
|
+
"gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
|
|
223
223
|
}
|