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

10 lines
162 B
PHP
Raw Normal View History

2017-04-19 19:54:15 +00:00
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;
}