diff options
Diffstat (limited to 'shaders')
-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 a96f217..2d412c0 100644 --- a/shaders/blit.fragment +++ b/shaders/blit.fragment | |||
@@ -5,8 +5,9 @@ in vec2 UV; | |||
5 | out vec4 color; | 5 | out vec4 color; |
6 | 6 | ||
7 | uniform sampler2D srctex; | 7 | uniform sampler2D srctex; |
8 | uniform float alpha; | ||
8 | 9 | ||
9 | void main() | 10 | void main() |
10 | { | 11 | { |
11 | color = texture(srctex, UV); | 12 | color = vec4(texture(srctex, UV).rgb, alpha); |
12 | } | 13 | } |