@thi.ng/webgl 6.9.94 → 6.9.95
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/README.md +2 -2
- package/package.json +20 -19
- package/shader.js +4 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 214 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -101,7 +101,7 @@ Browser ESM import:
|
|
|
101
101
|
|
|
102
102
|
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
103
103
|
|
|
104
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 11.
|
|
104
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 11.69 KB
|
|
105
105
|
|
|
106
106
|
## Dependencies
|
|
107
107
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/webgl",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.95",
|
|
4
4
|
"description": "WebGL & GLSL abstraction layer",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "https://github.com/thi-ng/umbrella.git"
|
|
11
|
+
"url": "git+https://github.com/thi-ng/umbrella.git",
|
|
12
|
+
"directory": "packages/webgl"
|
|
12
13
|
},
|
|
13
14
|
"homepage": "https://thi.ng/webgl",
|
|
14
15
|
"funding": [
|
|
@@ -43,22 +44,22 @@
|
|
|
43
44
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
44
45
|
},
|
|
45
46
|
"dependencies": {
|
|
46
|
-
"@thi.ng/api": "^8.12.
|
|
47
|
-
"@thi.ng/canvas": "^1.1.
|
|
48
|
-
"@thi.ng/checks": "^3.8.
|
|
49
|
-
"@thi.ng/equiv": "^2.1.
|
|
50
|
-
"@thi.ng/errors": "^2.6.
|
|
51
|
-
"@thi.ng/logger": "^3.2.
|
|
52
|
-
"@thi.ng/matrices": "^3.0.
|
|
53
|
-
"@thi.ng/memoize": "^4.0.
|
|
54
|
-
"@thi.ng/object-utils": "^1.3.
|
|
55
|
-
"@thi.ng/pixel": "^7.5.
|
|
56
|
-
"@thi.ng/shader-ast": "^1.1.
|
|
57
|
-
"@thi.ng/shader-ast-glsl": "^1.0.
|
|
58
|
-
"@thi.ng/shader-ast-stdlib": "^1.0.
|
|
59
|
-
"@thi.ng/transducers": "^9.6.
|
|
60
|
-
"@thi.ng/vector-pools": "^3.2.
|
|
61
|
-
"@thi.ng/vectors": "^8.6.
|
|
47
|
+
"@thi.ng/api": "^8.12.14",
|
|
48
|
+
"@thi.ng/canvas": "^1.1.7",
|
|
49
|
+
"@thi.ng/checks": "^3.8.4",
|
|
50
|
+
"@thi.ng/equiv": "^2.1.104",
|
|
51
|
+
"@thi.ng/errors": "^2.6.3",
|
|
52
|
+
"@thi.ng/logger": "^3.2.13",
|
|
53
|
+
"@thi.ng/matrices": "^3.0.35",
|
|
54
|
+
"@thi.ng/memoize": "^4.0.38",
|
|
55
|
+
"@thi.ng/object-utils": "^1.3.6",
|
|
56
|
+
"@thi.ng/pixel": "^7.5.23",
|
|
57
|
+
"@thi.ng/shader-ast": "^1.1.37",
|
|
58
|
+
"@thi.ng/shader-ast-glsl": "^1.0.56",
|
|
59
|
+
"@thi.ng/shader-ast-stdlib": "^1.0.56",
|
|
60
|
+
"@thi.ng/transducers": "^9.6.23",
|
|
61
|
+
"@thi.ng/vector-pools": "^3.2.85",
|
|
62
|
+
"@thi.ng/vectors": "^8.6.20"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"esbuild": "^0.27.2",
|
|
@@ -227,5 +228,5 @@
|
|
|
227
228
|
],
|
|
228
229
|
"year": 2014
|
|
229
230
|
},
|
|
230
|
-
"gitHead": "
|
|
231
|
+
"gitHead": "4bd1b9d8ae52ba32b90a1b9a55d329c708ca7865\n"
|
|
231
232
|
}
|
package/shader.js
CHANGED
|
@@ -4,7 +4,7 @@ import { existsAndNotNull } from "@thi.ng/checks/exists-not-null";
|
|
|
4
4
|
import { isArray } from "@thi.ng/checks/is-array";
|
|
5
5
|
import { isBoolean } from "@thi.ng/checks/is-boolean";
|
|
6
6
|
import { isFunction } from "@thi.ng/checks/is-function";
|
|
7
|
-
import {
|
|
7
|
+
import { unsupportedFeature } from "@thi.ng/errors/unsupported";
|
|
8
8
|
import { doOnce } from "@thi.ng/memoize/do-once";
|
|
9
9
|
import { GLSLVersion } from "@thi.ng/shader-ast-glsl/api";
|
|
10
10
|
import { targetGLSL } from "@thi.ng/shader-ast-glsl/target";
|
|
@@ -273,7 +273,9 @@ const shaderSourceFromAST = (spec, type, version, opts = {}) => {
|
|
|
273
273
|
`;
|
|
274
274
|
outputAliases[id] = sym("vec4", id);
|
|
275
275
|
} else {
|
|
276
|
-
|
|
276
|
+
unsupportedFeature(
|
|
277
|
+
`GLSL ${version} doesn't support output vars`
|
|
278
|
+
);
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
281
|
}
|