John Salamon преди 7 години
родител
ревизия
3c80c3cb14
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      code.js
  2. 2 2
      gl.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/2, img.height/2);
+		gl.uniform2f(data.uniforms.dim, img.width, img.height);
 		gl.uniform2f(data.uniforms.rseed, Math.random(), Math.random());
 
 

+ 2 - 2
gl.js

@@ -5,7 +5,7 @@
 
 // Vertex shader program
 
-const vsSource = `precision mediump float;
+const vsSource = `precision highp float;
 
 	attribute vec4 position;
 	attribute vec2 texcoord;
@@ -20,7 +20,7 @@ const vsSource = `precision mediump float;
 	}
 `;
 
-const fsSource = `precision mediump float;
+const fsSource = `precision highp float;
 
 	varying vec2 texcoord_f;
 	uniform vec2 dim;