diff options
Diffstat (limited to 'shaders/blit.fragment')
-rw-r--r-- | shaders/blit.fragment | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shaders/blit.fragment b/shaders/blit.fragment index 2d412c0..d2e9e46 100644 --- a/shaders/blit.fragment +++ b/shaders/blit.fragment | |||
@@ -9,5 +9,6 @@ uniform float alpha; | |||
9 | 9 | ||
10 | void main() | 10 | void main() |
11 | { | 11 | { |
12 | color = vec4(texture(srctex, UV).rgb, alpha); | 12 | vec4 texmex = texture(srctex, UV); |
13 | color = vec4(texmex.rgb, alpha * texmex.a); | ||
13 | } | 14 | } |