Skip to content

Instantly share code, notes, and snippets.

@timothyhahn timothyhahn/bla.c
Last active Dec 16, 2015

Embed
What would you like to do?
// Circle
vec3 circle_vert[CIRCLE_SIZE];
for(int i = 0; i < CIRCLE_SIZE; i++) {
circle_vert[i] = vec3( radius * cos(i * twoPi / 360) + .5, radius * sin(i * twoPi / 360) + .7, 0);
}
vec4 circle_col[CIRCLE_SIZE];
for(int i = 0; i < CIRCLE_SIZE; i++) {
circle_col[i] = vec4(i / 360.0, 0.0, 0.0, 1.0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.