vertex_color: use gl_Color/gl_ColorFront

This commit is contained in:
Zack Buhman 2025-10-13 22:16:26 -05:00
parent be66a461c4
commit e8995ff46a
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
#version 120
varying vec3 color_out;
//varying vec3 color_out;
void main()
{
gl_FragColor = vec4(color_out, 1);
gl_FragColor = gl_Color;
}

View File

@ -5,10 +5,10 @@ uniform float time;
attribute vec3 position;
attribute vec3 color;
varying vec3 color_out;
//varying vec3 color_out;
void main()
{
gl_Position = vec4(position, 1);
color_out = color;
gl_FrontColor = vec4(color, 1);
}