GS: Change transparency shader to output full alpha

This commit is contained in:
Connor McLaughlin 2022-12-10 18:33:03 +10:00 committed by refractionpcsx2
parent 4dbe17eaf9
commit b706c25b68
3 changed files with 3 additions and 14 deletions

View File

@ -81,13 +81,8 @@ float ps_depth_copy(PS_INPUT input) : SV_Depth
PS_OUTPUT ps_filter_transparency(PS_INPUT input)
{
PS_OUTPUT output;
float4 c = sample_c(input.t);
c.a = dot(c.rgb, float3(0.299, 0.587, 0.114));
output.c = c;
output.c = float4(c.rgb, 1.0);
return output;
}

View File

@ -246,10 +246,7 @@ void ps_convert_rgba_8i()
void ps_filter_transparency()
{
vec4 c = sample_c();
c.a = dot(c.rgb, vec3(0.299, 0.587, 0.114));
SV_Target0 = c;
SV_Target0 = vec4(c.rgb, 1.0);
}
#endif

View File

@ -52,10 +52,7 @@ void ps_depth_copy()
void ps_filter_transparency()
{
vec4 c = sample_c(v_tex);
c.a = dot(c.rgb, vec3(0.299, 0.587, 0.114));
o_col0 = c;
o_col0 = vec4(c.rgb, 1.0);
}
#endif