passthrough.frag 186 B

1234567891011
  1. uniform sampler2D tex;
  2. uniform int width;
  3. uniform int height;
  4. out vec4 FragColor;
  5. void main()
  6. {
  7. vec2 uv = gl_FragCoord.xy / vec2(width, height);
  8. FragColor = texture(tex, uv);
  9. }