summary refs log tree commit diff stats
path: root/shaders/blit.fragment
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2015-02-21 19:21:17 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2015-02-21 19:21:17 -0500
commitcecdba5cd996cea3ebd2534aea7a3e3a41205b9c (patch)
treee955d61534a17678fe6f0e17b69f506f9d03a948 /shaders/blit.fragment
parent59860415a2782694f630f7803ae4bcf445b3f5f1 (diff)
downloadtherapy-cecdba5cd996cea3ebd2534aea7a3e3a41205b9c.tar.gz
therapy-cecdba5cd996cea3ebd2534aea7a3e3a41205b9c.tar.bz2
therapy-cecdba5cd996cea3ebd2534aea7a3e3a41205b9c.zip
Changed to using stb_image for image loading, also alpha blending works!
Diffstat (limited to 'shaders/blit.fragment')
-rw-r--r--shaders/blit.fragment4
1 files changed, 2 insertions, 2 deletions
diff --git a/shaders/blit.fragment b/shaders/blit.fragment index 07a0279..a96f217 100644 --- a/shaders/blit.fragment +++ b/shaders/blit.fragment
@@ -2,11 +2,11 @@
2 2
3in vec2 UV; 3in vec2 UV;
4 4
5out vec3 color; 5out vec4 color;
6 6
7uniform sampler2D srctex; 7uniform sampler2D srctex;
8 8
9void main() 9void main()
10{ 10{
11 color = texture(srctex, UV).xyz; 11 color = texture(srctex, UV);
12} 12}