fork/wezterm

git clone https://git.julia.blue/fork/wezterm

Wez Furlonggui: move ease/interpolation into shadera0ad3dd37

termiz-0.23.2
748 B38 linesraw
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() {
25  o_tex = tex;
26  o_has_color = has_color;
27  o_fg_color = fg_color;
28  o_fg_color_alt = alt_color;
29  o_fg_color_mix = mix_value;
30  o_hsv = hsv;
31}
32
33void main() {
34  pass_through_vertex();
35
36  // Use the adjusted cell position to render the quad
37  gl_Position = projection * vec4(position, 0.0, 1.0);
38}