implement basic color shader
This commit is contained in:
1 parent
d76fb43a3c
commit
1434828ad9
2 files changed
+6
No files matched your search
@@ -1,4 +1,5 @@
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_FragColor = gl_Color;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user