Gs-ogl:glsl: Adjust sw blend shader a bit.

Get rid of Color_pabe vector, makes more sense to use As and Cs in pabe code.
This commit is contained in:
lightningterror 2021-11-22 06:44:43 +01:00
parent afacc47f33
commit e38d754e86
1 changed files with 1 additions and 2 deletions

View File

@ -627,7 +627,6 @@ void ps_blend(inout vec4 Color, float As)
{
#if SW_BLEND
vec4 RT = trunc(texelFetch(RtSampler, ivec2(gl_FragCoord.xy), 0) * 255.0f + 0.1f);
vec4 Color_pabe = Color;
#if PS_DFMT == FMT_24
float Ad = 1.0f;
@ -681,7 +680,7 @@ void ps_blend(inout vec4 Color, float As)
// PABE
#if PS_PABE
Color.rgb = (Color_pabe.a >= 128.0f) ? Color.rgb : Color_pabe.rgb;
Color.rgb = (As >= 1.0f) ? Color.rgb : Cs;
#endif
// Dithering