John Salamon 7 éve
szülő
commit
c1e3a16e11
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      code.js

+ 1 - 1
code.js

@@ -207,7 +207,7 @@ let startGL = function(img) {
 
 		gl.useProgram(data.program);
 		gl.uniform1f(data.uniforms.enabled, true);
-		gl.uniform2f(data.uniforms.dim, img.width, img.height);
+		gl.uniform2f(data.uniforms.dim, img.width/2, img.height/2);
 		gl.uniform2f(data.uniforms.rseed, Math.random(), Math.random());