Created
May 22, 2015 00:45
-
-
Save soardex/aa51efd34ee25bf9018c to your computer and use it in GitHub Desktop.
Most simplest GLSL vertex and fragment shader for testing
This file contains hidden or 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
# vertex shader | |
``` | |
#version 150 | |
attribute vec3 position; | |
void main() | |
{ | |
gl_Position = vec4(position, 1.0); | |
} | |
``` | |
# fragment shader | |
``` | |
#version 150 | |
void main() | |
{ | |
gl_FragColor = vec4(1, 0, 0, 1); | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment