mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-21 16:05:02 +02:00
Move the border shaders into their own files
This commit is contained in:
9
kitty/border_vertex.glsl
Normal file
9
kitty/border_vertex.glsl
Normal 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])];
|
||||
}
|
||||
Reference in New Issue
Block a user