fork/wezterm
git clone https://git.julia.blue/fork/wezterm
a0ad3dd37
termwiz-0.23.3
1// This is the Glyph vertex shader. 2// It is responsible for placing the glyph images in the 3// correct place on screen. 4 5precision highp float ; 6 7in vec2 position; 8in vec2 tex; 9in vec4 fg_color; 10in float has_color; 11in float mix_value; 12in vec3 hsv; 13in vec4 alt_color; 14 15uniform mat4 projection; 16 17out float o_has_color; 18out vec2 o_tex; 19out vec3 o_hsv; 20out vec4 o_fg_color; 21out vec4 o_fg_color_alt; 22out float o_fg_color_mix; 23 24void pass_through_vertex() { 25o_tex = tex; 26o_has_color = has_color; 27o_fg_color = fg_color; 28o_fg_color_alt = alt_color; 29o_fg_color_mix = mix_value; 30o_hsv = hsv; 31} 32 33void main() { 34pass_through_vertex(); 35 36// Use the adjusted cell position to render the quad 37gl_Position = projection * vec4(position, 0.0 , 1.0 ); 38}