vertex_color: use gl_Color/gl_ColorFront
This commit is contained in:
parent
be66a461c4
commit
e8995ff46a
@ -1,8 +1,8 @@
|
|||||||
#version 120
|
#version 120
|
||||||
|
|
||||||
varying vec3 color_out;
|
//varying vec3 color_out;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
gl_FragColor = vec4(color_out, 1);
|
gl_FragColor = gl_Color;
|
||||||
}
|
}
|
||||||
|
@ -5,10 +5,10 @@ uniform float time;
|
|||||||
attribute vec3 position;
|
attribute vec3 position;
|
||||||
attribute vec3 color;
|
attribute vec3 color;
|
||||||
|
|
||||||
varying vec3 color_out;
|
//varying vec3 color_out;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
gl_Position = vec4(position, 1);
|
gl_Position = vec4(position, 1);
|
||||||
color_out = color;
|
gl_FrontColor = vec4(color, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user