mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 18:22:09 +02:00
fix: remove incorrect alpha_blend in bgimage.slang
This commit is contained in:
committed by
GitHub
parent
4bb534f72c
commit
ebb9b4c1c4
22
old-shaders/rounded_rect.vert.glsl
Normal file
22
old-shaders/rounded_rect.vert.glsl
Normal file
@@ -0,0 +1,22 @@
|
||||
#version 140
|
||||
|
||||
|
||||
|
||||
#line 0 7893001
|
||||
#define left 0
|
||||
#define top 1
|
||||
#define right 2
|
||||
#define bottom 3
|
||||
|
||||
const ivec2 vertex_pos_map[4] = ivec2[4](
|
||||
ivec2(right, top),
|
||||
ivec2(right, bottom),
|
||||
ivec2(left, bottom),
|
||||
ivec2(left, top)
|
||||
);
|
||||
const vec4 dest_rect = vec4(-1, 1, 1, -1);
|
||||
|
||||
void main() {
|
||||
ivec2 pos = vertex_pos_map[gl_VertexID];
|
||||
gl_Position = vec4(dest_rect[pos.x], dest_rect[pos.y], 0, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user