obs-studio/plugins/obs-transitions/data/premultiplied.inc

10 lines
162 B
C++

float4 convert_pmalpha(float4 color)
{
float4 ret = color;
if (color.a >= 0.001)
ret.xyz /= color.a;
else
ret = float4(0.0, 0.0, 0.0, 0.0);
return ret;
}