Skip to content

Instantly share code, notes, and snippets.

@OllieReynolds
Created August 13, 2016 01:32
Show Gist options
  • Save OllieReynolds/42268d1008f94f926e8f672a32e4254c to your computer and use it in GitHub Desktop.
Save OllieReynolds/42268d1008f94f926e8f672a32e4254c to your computer and use it in GitHub Desktop.
// Shader sources
const GLchar* vertexSource =
"#version 150 core\n"
"in vec2 position;"
"in vec3 color;"
"out vec3 Color;"
"void main()"
"{"
" Color = color;"
" gl_Position = vec4(position, 0.0, 1.0);"
"}";
const GLchar* fragmentSource =
"#version 150 core\n"
"in vec3 Color;"
"out vec4 outColor;"
"void main()"
"{"
" outColor = vec4(Color, 1.0);"
"}";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment