obs-filters: Optimize and fix alpha in color grade filter

Closes jp9000/obs-studio#945
This commit is contained in:
Cephas Reis 2017-06-11 23:09:04 -05:00 committed by jp9000
parent f1588daca0
commit f53a595ea2

View File

@ -53,7 +53,8 @@ float4 LUT(VertDataOut v_in) : TARGET
float4 newColor2 = clut.Sample(textureSampler, texPos2);
float4 luttedColor = lerp(newColor1, newColor2, frac(blueColor));
return lerp(textureColor, luttedColor, clut_amount);
float4 final_color = lerp(textureColor, luttedColor, clut_amount);
return float4(final_color.rgb, textureColor.a);
}
technique Draw