implement basic color shader
This commit is contained in:
parent
d76fb43a3c
commit
1434828ad9
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user