mirror of https://github.com/PCSX2/pcsx2.git
44 lines
613 B
GLSL
44 lines
613 B
GLSL
//#version 420 // Keep it for editor detection
|
|
|
|
struct vertex_basic
|
|
{
|
|
vec4 p;
|
|
vec2 t;
|
|
};
|
|
|
|
in SHADER
|
|
{
|
|
vec4 p;
|
|
vec2 t;
|
|
} PSin;
|
|
|
|
#define PSin_p (PSin.p)
|
|
#define PSin_t (PSin.t)
|
|
|
|
#ifdef FRAGMENT_SHADER
|
|
|
|
layout(location = 0) out vec4 SV_Target0;
|
|
|
|
layout(std140, binding = 10) uniform cb10
|
|
{
|
|
vec4 BGColor;
|
|
};
|
|
|
|
layout(binding = 0) uniform sampler2D TextureSampler;
|
|
|
|
void ps_main0()
|
|
{
|
|
vec4 c = texture(TextureSampler, PSin_t);
|
|
c.a = min(c.a * 2.0, 1.0);
|
|
SV_Target0 = c;
|
|
}
|
|
|
|
void ps_main1()
|
|
{
|
|
vec4 c = texture(TextureSampler, PSin_t);
|
|
c.a = BGColor.a;
|
|
SV_Target0 = c;
|
|
}
|
|
|
|
#endif
|