Skip to content

Instantly share code, notes, and snippets.

@soardex
Created May 22, 2015 00:45
Show Gist options
  • Save soardex/aa51efd34ee25bf9018c to your computer and use it in GitHub Desktop.
Save soardex/aa51efd34ee25bf9018c to your computer and use it in GitHub Desktop.
Most simplest GLSL vertex and fragment shader for testing
# 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