stk-code_catmod/data/shaders/passthrough.frag
Vincent Lejeune 06f0188a5b Fix passthrough shader
It was not using half coordinate center
2015-02-23 22:02:32 +01:00

11 lines
186 B
GLSL

uniform sampler2D tex;
uniform int width;
uniform int height;
out vec4 FragColor;
void main()
{
vec2 uv = gl_FragCoord.xy / vec2(width, height);
FragColor = texture(tex, uv);
}