libobs: Fix bilinear lowres RGBA as well
parent
4a2a06b22f
commit
a33a5d2151
|
@ -89,9 +89,8 @@ float4 PSDrawLowresBilinearRGBAMultiplyTonemap(VertData f_in) : TARGET
|
||||||
float4 PSDrawLowresBilinearRGBADivide(VertData f_in) : TARGET
|
float4 PSDrawLowresBilinearRGBADivide(VertData f_in) : TARGET
|
||||||
{
|
{
|
||||||
float4 rgba = DrawLowresBilinear(f_in);
|
float4 rgba = DrawLowresBilinear(f_in);
|
||||||
float alpha = rgba.a;
|
rgba.rgb *= max(1. / rgba.a, 0.);
|
||||||
float multiplier = (alpha > 0.0) ? (1.0 / alpha) : 0.0;
|
return rgba;
|
||||||
return float4(rgba.rgb * multiplier, alpha);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
technique Draw
|
technique Draw
|
||||||
|
|
Loading…
Reference in New Issue