We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a58fa commit 7f6f2c6Copy full SHA for 7f6f2c6
lib/stdlib.js
@@ -766,7 +766,7 @@ function textureSize(sampler, lod) {
766
if (sampler.shape) return [sampler.shape[0], sampler.shape[1]];
767
return [sampler.width, sampler.height];
768
};
769
-texture.type = function (node) {
+textureSize.type = function (node) {
770
var samplerType = this.process(node.children[1]).type;
771
if (/1D/.test(samplerType)) return 'int';
772
if (/2D|Cube/.test(samplerType)) return 'ivec2';
0 commit comments