[gtk+: 70/97] gl renderer: Fix shadow shader
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+: 70/97] gl renderer: Fix shadow shader
- Date: Thu, 21 Dec 2017 18:14:06 +0000 (UTC)
commit fd0b7caa7c426b17256b0700011779b7f524f14c
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]