RetroArch/gfx/drivers/gl_shaders/modern_alpha_blend.glsl.frag.h

15 lines
348 B
C
Raw Normal View History

2016-05-28 18:18:23 +02:00
#include "shaders_common.h"
static const char *stock_fragment_modern_blend = GLSL(
uniform sampler2D Texture;
2017-10-04 00:04:17 -04:00
uniform vec4 bgcolor;
2016-05-28 18:18:23 +02:00
varying vec2 tex_coord;
varying vec4 color;
void main() {
2017-10-10 14:00:49 -04:00
if (bgcolor.a > 0.0)
gl_FragColor = bgcolor;
2017-10-04 00:04:17 -04:00
else
gl_FragColor = color * texture2D(Texture, tex_coord);
2016-05-28 18:18:23 +02:00
}
);