Last active
December 16, 2015 11:59
-
-
Save timothyhahn/5431599 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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