Skip to content

Instantly share code, notes, and snippets.

@nasser
Created November 11, 2014 12:57
Show Gist options
  • Save nasser/84a4157c41a007a09027 to your computer and use it in GitHub Desktop.
Save nasser/84a4157c41a007a09027 to your computer and use it in GitHub Desktop.
void main(void)
{
if(floor(gl_FragCoord.x) == floor(iMouse.x) ||
floor(gl_FragCoord.y) == floor(iMouse.y)) {
gl_FragColor = vec4(1.0);
} else {
gl_FragColor = vec4(0.0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment