From bdd24eabbc9b48185dcfe5979e151e04cfcca388 Mon Sep 17 00:00:00 2001 From: Marat Date: Tue, 20 Feb 2024 00:36:38 +0500 Subject: [PATCH] fix textureSize --- lib/stdlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stdlib.js b/lib/stdlib.js index f513717..f503022 100644 --- a/lib/stdlib.js +++ b/lib/stdlib.js @@ -766,7 +766,7 @@ function textureSize(sampler, lod) { if (sampler.shape) return [sampler.shape[0], sampler.shape[1]]; return [sampler.width, sampler.height]; }; -texture.type = function (node) { +textureSize.type = function (node) { var samplerType = this.process(node.children[1]).type; if (/1D/.test(samplerType)) return 'int'; if (/2D|Cube/.test(samplerType)) return 'ivec2';