diff options
Diffstat (limited to 'shaders/blit.fragment')
-rw-r--r-- | shaders/blit.fragment | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shaders/blit.fragment b/shaders/blit.fragment new file mode 100644 index 0000000..07a0279 --- /dev/null +++ b/shaders/blit.fragment | |||
@@ -0,0 +1,12 @@ | |||
1 | #version 330 core | ||
2 | |||
3 | in vec2 UV; | ||
4 | |||
5 | out vec3 color; | ||
6 | |||
7 | uniform sampler2D srctex; | ||
8 | |||
9 | void main() | ||
10 | { | ||
11 | color = texture(srctex, UV).xyz; | ||
12 | } | ||