From 5c25a7415dff65cbfe6df60bdecb8f2fe2b8e4f5 Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Mon, 9 Oct 2017 19:44:22 +0200 Subject: [PATCH] no need for subtracting here anymore --- shader/bordertilelinetex.vert | 4 ++-- shader/bordertiletex.vert | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shader/bordertilelinetex.vert b/shader/bordertilelinetex.vert index 01fb577fe..4a203cdb4 100644 --- a/shader/bordertilelinetex.vert +++ b/shader/bordertilelinetex.vert @@ -20,7 +20,7 @@ void main() gl_Position = vec4(Pos * VertPos, 0.0, 1.0); float F1 = -(0.5/(1024.0 * pow(0.5, (LOD+1.0)))); float F2 = (0.5/(1024.0 * pow(0.5, (LOD+1.0)))); - float tx = (inVertexTexCoord.x/(16.0)) - (inVertexTexRightOrBottom.x == 0 ? 0.0 : (1.0/1024.0)); - float ty = (inVertexTexCoord.y/(16.0)) - (inVertexTexRightOrBottom.y == 0 ? 0.0 : (1.0/1024.0)); + float tx = (inVertexTexCoord.x/(16.0)); + float ty = (inVertexTexCoord.y/(16.0)); texCoord = vec2(tx + (inVertexTexRightOrBottom.x == 0 ? F2 : F1), ty + (inVertexTexRightOrBottom.y == 0 ? F2 : F1)); } \ No newline at end of file diff --git a/shader/bordertiletex.vert b/shader/bordertiletex.vert index 526e0808e..278017c68 100644 --- a/shader/bordertiletex.vert +++ b/shader/bordertiletex.vert @@ -24,7 +24,7 @@ void main() gl_Position = vec4(Pos * VertPos, 0.0, 1.0); float F1 = -(0.5/(1024.0 * pow(0.5, (LOD+1.0)))); float F2 = (0.5/(1024.0 * pow(0.5, (LOD+1.0)))); - float tx = (inVertexTexCoord.x/(16.0)) - (inVertexTexRightOrBottom.x == 0 ? 0.0 : (1.0/1024.0)); - float ty = (inVertexTexCoord.y/(16.0)) - (inVertexTexRightOrBottom.y == 0 ? 0.0 : (1.0/1024.0)); + float tx = (inVertexTexCoord.x/(16.0)); + float ty = (inVertexTexCoord.y/(16.0)); texCoord = vec2(tx + (inVertexTexRightOrBottom.x == 0 ? F2 : F1), ty + (inVertexTexRightOrBottom.y == 0 ? F2 : F1)); } \ No newline at end of file