@thi.ng/webgl 6.9.100 → 6.9.102

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.
Files changed (2) hide show
  1. package/multipass.js +15 -12
  2. package/package.json +15 -15
package/multipass.js CHANGED
@@ -146,18 +146,21 @@ const __initShader = (gl, pass, textures) => {
146
146
  }
147
147
  return defShader(gl, spec);
148
148
  };
149
- const __initTextures = (opts) => Object.keys(opts.textures).reduce((acc, id) => {
150
- acc[id] = defTexture(opts.gl, {
151
- width: opts.width,
152
- height: opts.height,
153
- depth: opts.depth,
154
- filter: TextureFilter.NEAREST,
155
- wrap: TextureRepeat.CLAMP,
156
- image: null,
157
- ...opts.textures[id]
158
- });
159
- return acc;
160
- }, {});
149
+ const __initTextures = (opts) => Object.keys(opts.textures).reduce(
150
+ (acc, id) => {
151
+ acc[id] = defTexture(opts.gl, {
152
+ width: opts.width,
153
+ height: opts.height,
154
+ depth: opts.depth,
155
+ filter: TextureFilter.NEAREST,
156
+ wrap: TextureRepeat.CLAMP,
157
+ image: null,
158
+ ...opts.textures[id]
159
+ });
160
+ return acc;
161
+ },
162
+ {}
163
+ );
161
164
  const __initBuffers = (opts, textures, useMainBuffer) => (useMainBuffer ? opts.passes.slice(0, opts.passes.length - 1) : opts.passes).map(
162
165
  (pass) => defFBO(opts.gl, { tex: pass.outputs.map((id) => textures[id]) })
163
166
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/webgl",
3
- "version": "6.9.100",
3
+ "version": "6.9.102",
4
4
  "description": "WebGL & GLSL abstraction layer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -44,22 +44,22 @@
44
44
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
45
45
  },
46
46
  "dependencies": {
47
- "@thi.ng/api": "^8.12.16",
47
+ "@thi.ng/api": "^8.12.17",
48
48
  "@thi.ng/canvas": "^1.1.9",
49
- "@thi.ng/checks": "^3.8.6",
49
+ "@thi.ng/checks": "^3.8.7",
50
50
  "@thi.ng/equiv": "^2.1.106",
51
- "@thi.ng/errors": "^2.6.5",
51
+ "@thi.ng/errors": "^2.6.6",
52
52
  "@thi.ng/logger": "^3.3.0",
53
- "@thi.ng/matrices": "^3.0.38",
54
- "@thi.ng/memoize": "^4.0.40",
55
- "@thi.ng/object-utils": "^1.3.8",
56
- "@thi.ng/pixel": "^7.5.25",
57
- "@thi.ng/shader-ast": "^1.1.42",
58
- "@thi.ng/shader-ast-glsl": "^1.0.61",
59
- "@thi.ng/shader-ast-stdlib": "^1.0.61",
60
- "@thi.ng/transducers": "^9.6.28",
61
- "@thi.ng/vector-pools": "^3.2.90",
62
- "@thi.ng/vectors": "^8.6.23"
53
+ "@thi.ng/matrices": "^3.0.39",
54
+ "@thi.ng/memoize": "^4.0.41",
55
+ "@thi.ng/object-utils": "^1.3.9",
56
+ "@thi.ng/pixel": "^7.5.26",
57
+ "@thi.ng/shader-ast": "^1.1.44",
58
+ "@thi.ng/shader-ast-glsl": "^1.0.63",
59
+ "@thi.ng/shader-ast-stdlib": "^1.0.63",
60
+ "@thi.ng/transducers": "^9.6.30",
61
+ "@thi.ng/vector-pools": "^3.2.92",
62
+ "@thi.ng/vectors": "^8.6.24"
63
63
  },
64
64
  "devDependencies": {
65
65
  "esbuild": "^0.27.2",
@@ -228,5 +228,5 @@
228
228
  ],
229
229
  "year": 2014
230
230
  },
231
- "gitHead": "7a21075f27ba00b28a6eb77e70918a4c7f4e6e68\n"
231
+ "gitHead": "1107498d31504dc63d1a457b5def387d7a134f69\n"
232
232
  }