Last active
January 4, 2016 10:19
-
-
Save lewkoo/8608162 to your computer and use it in GitHub Desktop.
Fragment shader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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