yolobs-studio/plugins/obs-transitions/data/premultiplied.inc
2017-04-19 21:54:15 +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;
}