mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-06 13:29:45 -05:00
render: drop support for ellipses
For anything more complicated than quads, compositors can easily ship their own shaders. Closes: https://github.com/swaywm/wlroots/issues/2759
This commit is contained in:
parent
9ecfa4343a
commit
a109a80dca
6 changed files with 0 additions and 108 deletions
|
|
@ -25,20 +25,6 @@ const GLchar quad_fragment_src[] =
|
|||
" gl_FragColor = v_color;\n"
|
||||
"}\n";
|
||||
|
||||
// Colored ellipses
|
||||
const GLchar ellipse_fragment_src[] =
|
||||
"precision mediump float;\n"
|
||||
"varying vec4 v_color;\n"
|
||||
"varying vec2 v_texcoord;\n"
|
||||
"\n"
|
||||
"void main() {\n"
|
||||
" float l = length(v_texcoord - vec2(0.5, 0.5));\n"
|
||||
" if (l > 0.5) {\n"
|
||||
" discard;\n"
|
||||
" }\n"
|
||||
" gl_FragColor = v_color;\n"
|
||||
"}\n";
|
||||
|
||||
// Textured quads
|
||||
const GLchar tex_vertex_src[] =
|
||||
"uniform mat3 proj;\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue