mkxp-freebird/shader/blurH.vert
Jonas Kulla 19c30e3ddd Fix shader code. Thanks Mesa!
On the other hand, the kind of shit fglrx
just lets through boggles the mind.
2013-10-02 15:00:17 +02:00

19 lines
387 B
GLSL

uniform mat4 projMat;
uniform vec2 texSizeInv;
attribute vec2 position;
attribute vec2 texCoord;
varying vec2 v_texCoord;
varying vec2 v_blurCoord[2];
void main()
{
gl_Position = projMat * vec4(position, 0, 1);
v_texCoord = texCoord * texSizeInv;
v_blurCoord[0] = vec2(texCoord.x-1.0, texCoord.y) * texSizeInv;
v_blurCoord[1] = vec2(texCoord.x+1.0, texCoord.y) * texSizeInv;
}