yolobs-studio/plugins/obs-transitions/data/premultiplied.inc
2017-04-15 21:02:06 +02:00

9 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;
}