glava-ridged/shaders/glava/test/2.frag

13 lines
314 B
GLSL
Raw Normal View History

2023-09-07 16:16:06 -06:00
/* Pass the initial results to a dummy shader to assert that linking works correctly */
in vec4 gl_FragCoord;
#request uniform "prev" tex
uniform sampler2D tex; /* screen texture */
out vec4 fragment; /* output */
void main() {
fragment = texelFetch(tex, ivec2(gl_FragCoord.x, gl_FragCoord.y), 0);
}