megapixels/data/blit.frag

14 lines
190 B
GLSL
Raw Normal View History

#ifdef GL_ES
2021-04-15 15:14:20 +02:00
precision mediump float;
#endif
2021-04-15 15:14:20 +02:00
uniform sampler2D texture;
varying vec2 uv;
#define fetch(p) texture2D(texture, p).r
void main() {
gl_FragColor = texture2D(texture, uv);
}