2022-03-21 12:10:47 +00:00
|
|
|
#version 140
|
|
|
|
|
|
|
|
uniform vec4 top_color;
|
|
|
|
uniform vec4 bottom_color;
|
|
|
|
|
|
|
|
in vec2 tex_coord;
|
|
|
|
|
2022-03-24 13:45:59 +00:00
|
|
|
out vec4 out_color;
|
|
|
|
|
2022-03-21 12:10:47 +00:00
|
|
|
void main()
|
|
|
|
{
|
2022-03-24 13:45:59 +00:00
|
|
|
out_color = mix(bottom_color, top_color, tex_coord.y);
|
2022-03-21 12:10:47 +00:00
|
|
|
}
|