Skip to content

Instantly share code, notes, and snippets.

@ryosuzuki
Created December 6, 2016 21:57
Show Gist options
  • Save ryosuzuki/01c90bdea60559f0066aaa1f9c1463cc to your computer and use it in GitHub Desktop.
Save ryosuzuki/01c90bdea60559f0066aaa1f9c1463cc to your computer and use it in GitHub Desktop.
#version 330
precision lowp float;
uniform vec3 color;
out vec4 outColor;
void main() {
outColor = vec4(color, 1.0);
}
#version 330
uniform mat4 mvp;
in vec3 position;
void main() {
gl_Position = mvp * vec4(position, 1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment