add shot-ring shader and create shot-ring attributes buffer

This commit is contained in:
josh committed 2012-09-27 23:01:52 -04:00
1 parent ba0bc9b77d
commit 741a325a5f
4 files changed
+44

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
void main(void)
{
gl_FragColor = vec4(1.0, 0.1, 0.1, 1.0);
}
+13
View File
@@ -0,0 +1,13 @@
uniform mat4 projection;
uniform mat4 modelview;
uniform float scale;
/* pos.xyz is position, pos.w is offset */
attribute vec4 pos;
void main(void)
{
vec3 pos3 = pos.xyz * (scale + pos.w);
gl_Position = projection * modelview * vec4(pos3, 1);
}