mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
15 lines
348 B
C
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);
|
|
}
|
|
);
|