PrusaSlicer-NonPlainar/resources/shaders/ES/background.fs

14 lines
193 B
Forth
Raw Normal View History

2022-07-21 08:18:18 +00:00
#version 100
precision highp float;
uniform vec4 top_color;
uniform vec4 bottom_color;
varying vec2 tex_coord;
void main()
{
gl_FragColor = mix(bottom_color, top_color, tex_coord.y);
}