@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-12-16T12:52:26Z
3
+ - **Last updated**: 2022-12-22T21:47:08Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -23,7 +23,7 @@ This project is part of the
23
23
 
24
24
  ## About
25
25
 
26
- WebGL & GLSL abstraction layer
26
+ WebGL & GLSL abstraction layer.
27
27
 
28
28
  Largely declarative WebGL 1.0 / 2.0 abstraction layer, partially ported
29
29
  & updated from Clojure/ClojureScript versions of
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
- * {@link @thi.ng/vector-pools#AttribPool} instance.
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
- * See: {@link https://www.khronos.org/registry/OpenGL/extensions/ANGLE/ANGLE_instanced_arrays.txt}
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
- * multiple render targets (color attachments) and optional depth
5
- * buffer. Multiple targets are only supported if the
6
- * `WEBGL_draw_buffers` extension is available. The max. number of
7
- * attachments can be obtained via the `maxAttachments` property of the
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
- * {@link https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers}
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
- * multiple render targets (color attachments) and optional depth
11
- * buffer. Multiple targets are only supported if the
12
- * `WEBGL_draw_buffers` extension is available. The max. number of
13
- * attachments can be obtained via the `maxAttachments` property of the
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
- * {@link https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers}
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.17",
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.4",
42
- "@thi.ng/api": "^8.6.0",
43
- "@thi.ng/associative": "^6.2.19",
44
- "@thi.ng/checks": "^3.3.5",
45
- "@thi.ng/equiv": "^2.1.15",
46
- "@thi.ng/errors": "^2.2.6",
47
- "@thi.ng/logger": "^1.4.5",
48
- "@thi.ng/matrices": "^2.1.36",
49
- "@thi.ng/memoize": "^3.1.19",
50
- "@thi.ng/pixel": "^4.0.11",
51
- "@thi.ng/shader-ast": "^0.12.33",
52
- "@thi.ng/shader-ast-glsl": "^0.4.33",
53
- "@thi.ng/shader-ast-stdlib": "^0.12.26",
54
- "@thi.ng/transducers": "^8.3.26",
55
- "@thi.ng/vector-pools": "^3.1.37",
56
- "@thi.ng/vectors": "^7.5.27"
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.7",
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": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
222
+ "gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
223
223
  }