Move the border shaders into their own files

This commit is contained in:
Kovid Goyal
2017-08-29 12:49:34 +05:30
parent a44e3a3a50
commit acdeaaeda5
3 changed files with 18 additions and 21 deletions

9
kitty/border_vertex.glsl Normal file
View File

@@ -0,0 +1,9 @@
#version GLSL_VERSION
uniform vec3 colors[3];
in vec3 rect;
out vec3 color;
void main() {
gl_Position = vec4(rect[0], rect[1], 0, 1);
color = colors[uint(rect[2])];
}