From 07929e17752232ee8d2ca809fb42dd6aee58765a Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Sat, 7 May 2022 12:35:52 +0200 Subject: [PATCH] :wrench: Use float for window size uniforms --- src/shaderSnippets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shaderSnippets.js b/src/shaderSnippets.js index 5ef4679..9b31e5c 100644 --- a/src/shaderSnippets.js +++ b/src/shaderSnippets.js @@ -28,8 +28,8 @@ function standardUniforms() { uniform sampler2D uTexture; uniform float uProgress; uniform float uTime; - uniform int uSizeX; - uniform int uSizeY; + uniform float uSizeX; + uniform float uSizeY; `; }