@thi.ng/webgl 6.9.101 → 6.9.103
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/multipass.js +15 -12
- 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(
|
|
150
|
-
acc
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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.
|
|
3
|
+
"version": "6.9.103",
|
|
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.
|
|
47
|
+
"@thi.ng/api": "^8.12.17",
|
|
48
48
|
"@thi.ng/canvas": "^1.1.9",
|
|
49
|
-
"@thi.ng/checks": "^3.8.
|
|
49
|
+
"@thi.ng/checks": "^3.8.7",
|
|
50
50
|
"@thi.ng/equiv": "^2.1.106",
|
|
51
|
-
"@thi.ng/errors": "^2.6.
|
|
51
|
+
"@thi.ng/errors": "^2.6.6",
|
|
52
52
|
"@thi.ng/logger": "^3.3.0",
|
|
53
|
-
"@thi.ng/matrices": "^3.0.
|
|
54
|
-
"@thi.ng/memoize": "^4.0.
|
|
55
|
-
"@thi.ng/object-utils": "^1.3.
|
|
56
|
-
"@thi.ng/pixel": "^7.5.
|
|
57
|
-
"@thi.ng/shader-ast": "^1.1.
|
|
58
|
-
"@thi.ng/shader-ast-glsl": "^1.0.
|
|
59
|
-
"@thi.ng/shader-ast-stdlib": "^1.0.
|
|
60
|
-
"@thi.ng/transducers": "^9.6.
|
|
61
|
-
"@thi.ng/vector-pools": "^3.2.
|
|
62
|
-
"@thi.ng/vectors": "^8.6.
|
|
53
|
+
"@thi.ng/matrices": "^3.0.40",
|
|
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.93",
|
|
62
|
+
"@thi.ng/vectors": "^8.6.25"
|
|
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": "
|
|
231
|
+
"gitHead": "d46ec975b426bb2ceb137cab734395c97436d59b\n"
|
|
232
232
|
}
|