fix the alpha0 shit

This commit is contained in:
Arisotura 2019-04-29 18:52:23 +02:00
parent 41e7af8412
commit ffa0ddd94c
1 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ vec4 TextureLookup()
paladdr = (paladdr << 2) + pixel.r;
vec4 color = texelFetch(TexPalMem, ivec2(paladdr&0x3FF, paladdr>>10), 0);
return vec4(color.rgb, step(1,pixel.r)*alpha0);
return vec4(color.rgb, max(step(1,pixel.r),alpha0));
}
else if (type == 3)
{
@ -179,7 +179,7 @@ vec4 TextureLookup()
paladdr = (paladdr << 3) + pixel.r;
vec4 color = texelFetch(TexPalMem, ivec2(paladdr&0x3FF, paladdr>>10), 0);
return vec4(color.rgb, step(1,pixel.r)*alpha0);
return vec4(color.rgb, max(step(1,pixel.r),alpha0));
}
else if (type == 4)
{
@ -189,7 +189,7 @@ vec4 TextureLookup()
paladdr = (paladdr << 3) + pixel.r;
vec4 color = texelFetch(TexPalMem, ivec2(paladdr&0x3FF, paladdr>>10), 0);
return vec4(color.rgb, step(1,pixel.r)*alpha0);
return vec4(color.rgb, max(step(1,pixel.r),alpha0));
}
else if (type == 5)
{