RetroArch/gfx/drivers/gl_shaders/modern_alpha_blend.glsl.frag.h
2017-10-10 14:00:49 -04: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);
}
);