Skip to content

Instantly share code, notes, and snippets.

@yorung
Created April 6, 2015 16:00
Show Gist options
  • Save yorung/da564a42bb224b6155cd to your computer and use it in GitHub Desktop.
Save yorung/da564a42bb224b6155cd to your computer and use it in GitHub Desktop.
Layout shader uniform buffer from C
#define POS 2
glUniformBlockBinding(program, glGetUniformBlockIndex(program, "MyUBO"), POS);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment