summary refs log tree commit diff stats
path: root/shaders/blit.fragment
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-03-13 16:35:02 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-03-13 16:35:02 -0400
commit5990e7802c84b3f407de3934a1d75721115d1da7 (patch)
tree2702e729b96a83cc2d58ee27304926d1dedae0f7 /shaders/blit.fragment
parentbdf50ff543c73c83cc7a06426bc2a6fe66616b87 (diff)
downloadtherapy-5990e7802c84b3f407de3934a1d75721115d1da7.tar.gz
therapy-5990e7802c84b3f407de3934a1d75721115d1da7.tar.bz2
therapy-5990e7802c84b3f407de3934a1d75721115d1da7.zip
Fixed bug with blitting transparent textures
Also moved player in front of checkpoint
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 2d412c0..d2e9e46 100644 --- a/shaders/blit.fragment +++ b/shaders/blit.fragment
@@ -9,5 +9,6 @@ uniform float alpha;
9 9
10void main() 10void 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}