SameBoy/Shaders/NearestNeighbor.fsh
2016-06-14 14:11:37 +03:00

6 lines
157 B
GLSL

vec4 scale(sampler2D image)
{
vec2 texCoord = vec2(gl_FragCoord.x, uResolution.y - gl_FragCoord.y) / uResolution;
return texture(image, texCoord);
}