Skip to content

Instantly share code, notes, and snippets.

@lewkoo
Last active January 4, 2016 10:19
Show Gist options
  • Save lewkoo/8608162 to your computer and use it in GitHub Desktop.
Save lewkoo/8608162 to your computer and use it in GitHub Desktop.
Fragment shader
#version 120
void main(){
//this is the fragment shader
//this is where the pixel level drawing happens
//gl_FragCoord gives us the x and y of the current pixel its drawing
gl_FragColor.r = gl_Color.r + 20;
gl_FragColor.g = gl_Color.g + 20;
gl_FragColor.b = gl_Color.b + 20;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment