implement basic color shader

This commit is contained in:
Josh Holtrop committed 2011-04-30 09:32:14 -04:00
1 parent d76fb43a3c
commit 1434828ad9
2 files changed
+6

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
void main(void)
{
gl_FragColor = gl_Color;
}
+5
View File
@@ -1,4 +1,9 @@
attribute vec3 pos;
attribute vec3 color;
void main(void)
{
gl_Position = gl_ModelViewMatrix * vec4(pos, 1);
gl_FrontColor = vec4(color, 1);
}