06f0188a5b
It was not using half coordinate center
11 lines
186 B
GLSL
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);
|
|
} |