Skip to content

Instantly share code, notes, and snippets.

@nasser
Created November 13, 2014 02:01
Show Gist options
  • Save nasser/23dc618880c6aee66d1c to your computer and use it in GitHub Desktop.
Save nasser/23dc618880c6aee66d1c to your computer and use it in GitHub Desktop.
void main(void)
{
vec2 px = gl_FragCoord.xy - mod(gl_FragCoord.xy, 10.);
vec2 uv = px / iResolution.xy * vec2(1., -1.);
gl_FragColor = texture2D(iChannel0, uv);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment