From fa77726388cdb1a091a24e883dae9fc86556c3fa Mon Sep 17 00:00:00 2001 From: Jonas Kulla Date: Sat, 28 Sep 2013 15:41:09 +0200 Subject: [PATCH] Remove unneeded shader uniform --- shader/simple.vert | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shader/simple.vert b/shader/simple.vert index 477cb4e..ad16d47 100644 --- a/shader/simple.vert +++ b/shader/simple.vert @@ -2,7 +2,6 @@ uniform mat4 projMat; uniform vec2 texSizeInv; -uniform float texOffsetX; uniform vec2 translation; attribute vec2 position; @@ -14,5 +13,5 @@ void main() { gl_Position = projMat * vec4(position + translation, 0, 1); - v_texCoord = vec2(texCoord.x + texOffsetX, texCoord.y) * texSizeInv; + v_texCoord = texCoord * texSizeInv; }