From dbae80e6b5e7b60740ce4545c2850f4437041892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 29 Mar 2012 11:34:39 -0400 Subject: [PATCH] compositor: Support alpha for solid color surfaces --- src/compositor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index f9e1f23d..60142d17 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2156,9 +2156,10 @@ static const char texture_fragment_shader[] = static const char solid_fragment_shader[] = "precision mediump float;\n" "uniform vec4 color;\n" + "uniform float alpha;\n" "void main()\n" "{\n" - " gl_FragColor = color\n;" + " gl_FragColor = alpha * color\n;" "}\n"; static int