compositor: Support alpha for solid color surfaces

Kristian Høgsberg 13 years ago
parent 29a9cf0f97
commit dbae80e6b5
  1. 3
      src/compositor.c

@ -2156,9 +2156,10 @@ static const char texture_fragment_shader[] =
static const char solid_fragment_shader[] = static const char solid_fragment_shader[] =
"precision mediump float;\n" "precision mediump float;\n"
"uniform vec4 color;\n" "uniform vec4 color;\n"
"uniform float alpha;\n"
"void main()\n" "void main()\n"
"{\n" "{\n"
" gl_FragColor = color\n;" " gl_FragColor = alpha * color\n;"
"}\n"; "}\n";
static int static int

Loading…
Cancel
Save