summary refs log tree commit diff stats
path: root/shaders
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-12 13:48:10 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-12 13:48:10 -0400
commit1a392a79b0491c5acc766705698191ed2ed6c2e6 (patch)
tree787441b612f1aa03d777477fb32fdcb78c6a0197 /shaders
parentea0a959c2405511255080cae9f9558f2711a887f (diff)
downloadtherapy-1a392a79b0491c5acc766705698191ed2ed6c2e6.tar.gz
therapy-1a392a79b0491c5acc766705698191ed2ed6c2e6.tar.bz2
therapy-1a392a79b0491c5acc766705698191ed2ed6c2e6.zip
Added death to my game
Diffstat (limited to 'shaders')
-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}