diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-12 13:48:10 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2015-03-12 13:48:10 -0400 |
commit | 1a392a79b0491c5acc766705698191ed2ed6c2e6 (patch) | |
tree | 787441b612f1aa03d777477fb32fdcb78c6a0197 /shaders | |
parent | ea0a959c2405511255080cae9f9558f2711a887f (diff) | |
download | therapy-1a392a79b0491c5acc766705698191ed2ed6c2e6.tar.gz therapy-1a392a79b0491c5acc766705698191ed2ed6c2e6.tar.bz2 therapy-1a392a79b0491c5acc766705698191ed2ed6c2e6.zip |
Added death to my game
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 | } |