2016-06-14 14:11:37 +03:00
|
|
|
vec4 scale(sampler2D image)
|
2016-04-28 23:07:05 +03:00
|
|
|
{
|
|
|
|
vec2 texCoord = vec2(gl_FragCoord.x, uResolution.y - gl_FragCoord.y) / uResolution;
|
|
|
|
|
2016-06-14 14:11:37 +03:00
|
|
|
return texture(image, texCoord);
|
2016-04-28 23:07:05 +03:00
|
|
|
}
|