summary refs log tree commit diff stats
path: root/shaders/blit.fragment
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/blit.fragment')
-rw-r--r--shaders/blit.fragment3
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;
5out vec4 color; 5out vec4 color;
6 6
7uniform sampler2D srctex; 7uniform sampler2D srctex;
8uniform float alpha;
8 9
9void main() 10void main()
10{ 11{
11 color = texture(srctex, UV); 12 color = vec4(texture(srctex, UV).rgb, alpha);
12} 13}