Skip to content

Instantly share code, notes, and snippets.

@ssvb
Created March 27, 2014 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssvb/9818950 to your computer and use it in GitHub Desktop.
Save ssvb/9818950 to your computer and use it in GitHub Desktop.
const char *vertex_shader_source =
"uniform mat4 modelviewprojectionMatrix;\n"
"\n"
"attribute vec4 in_position; \n"
"attribute vec2 in_coord; \n"
" \n"
"varying vec2 coord; \n"
" \n"
"void main() \n"
"{ \n"
" gl_Position = modelviewprojectionMatrix * in_position;\n"
" coord = in_coord; \n"
"} \n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment