summary refs log tree commit diff stats
path: root/shaders/blit.fragment
blob: d2e9e46414b504e83a85cc67ced15076e731db37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#version 330 core

in vec2 UV;

out vec4 color;

uniform sampler2D srctex;
uniform float alpha;

void main()
{
  vec4 texmex = texture(srctex, UV);
  color = vec4(texmex.rgb, alpha * texmex.a);
}