overlay.fs 203 B

123456789101112
  1. #version 430
  2. layout (binding = 0) uniform sampler2D samp;
  3. in vec2 varTex;
  4. in vec4 varColor;
  5. out vec4 color;
  6. void main() {
  7. color = vec4(varColor.xyz, max(texture(samp, varTex).r, varColor.w));
  8. }