[gtk+/wip/baedert/gl: 191/216] gl renderer: Fix shadow shader



commit 902ecc0ee3f81e7029503ed4de3bf28deceae039
Author: Timm Bäder <mail baedert org>
Date:   Wed Dec 6 17:24:58 2017 +0100

    gl renderer: Fix shadow shader
    
    We need to take the alpha of the shadow color into account as well.

 gsk/resources/glsl/shadow.fs.glsl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gsk/resources/glsl/shadow.fs.glsl b/gsk/resources/glsl/shadow.fs.glsl
index 3426ba3..f3535f1 100644
--- a/gsk/resources/glsl/shadow.fs.glsl
+++ b/gsk/resources/glsl/shadow.fs.glsl
@@ -7,7 +7,7 @@ void main() {
   // pre-multiply
   color.rgb *= color.a;
 
-  color = vec4(u_color.rgb * diffuse.a, diffuse.a);
+  color = vec4(u_color.rgb * diffuse.a, diffuse.a * color.a);
 
   setOutputColor(color);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]