mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 15:32:59 +00:00
17 lines
387 B
C
17 lines
387 B
C
#include "shaders_common.h"
|
|
|
|
static const char *stock_fragment_modern_blend = CG(
|
|
void main(
|
|
uniform sampler2D vTexture,
|
|
uniform float4 bgcolor,
|
|
float2 TexCoord : TEXCOORD0,
|
|
float4 Color : COLOR,
|
|
float4 out oColor : COLOR)
|
|
{
|
|
if (bgcolor.a > 0.0)
|
|
oColor = bgcolor;
|
|
else
|
|
oColor = tex2D(vTexture, TexCoord) * Color;
|
|
}
|
|
);
|