RetroArch/gfx/drivers/gl_shaders/modern_alpha_blend.glsl.frag.h
twinaphex c5b9352c34 Revert "Rename some files"
This reverts commit 03a8bc9875ef4e0e942ab6d8d0d9402c4e1830fe.
2018-11-24 01:26:05 +01:00

15 lines
348 B
C

#include "shaders_common.h"
static const char *stock_fragment_modern_blend = GLSL(
uniform sampler2D Texture;
uniform vec4 bgcolor;
varying vec2 tex_coord;
varying vec4 color;
void main() {
if (bgcolor.a > 0.0)
gl_FragColor = bgcolor;
else
gl_FragColor = color * texture2D(Texture, tex_coord);
}
);