5899a26aad
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
13 lines
320 B
GLSL
13 lines
320 B
GLSL
varying vec4 offset[2];
|
|
uniform vec2 PIXEL_SIZE;
|
|
|
|
void main() {
|
|
gl_Position = ftransform();
|
|
vec4 invy = gl_MultiTexCoord0;
|
|
// invy.y = 1.0 - invy.y;
|
|
gl_TexCoord[0] = invy;
|
|
|
|
offset[0] = invy.xyxy + PIXEL_SIZE.xyxy * vec4(-1.0, 0.0, 0.0, 1.0);
|
|
offset[1] = invy.xyxy + PIXEL_SIZE.xyxy * vec4( 1.0, 0.0, 0.0, -1.0);
|
|
}
|