0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

obs-filters: Fix shader for LUT on OpenGL

This commit is contained in:
jpark37 2021-05-04 11:40:29 -07:00 committed by Jim
parent da187ba73b
commit 67c2c45964

View File

@ -86,7 +86,7 @@ float4 LUT1D(VertDataOut v_in) : TARGET
float4 LUT3D(VertDataOut v_in) : TARGET
{
float4 textureColor = image.Sample(textureSampler, v_in.uv);
textureColor.rgb = max(0.0, textureColor.rgb / textureColor.a);
textureColor.rgb = max(float3(0.0, 0.0, 0.0), textureColor.rgb / textureColor.a);
textureColor.rgb = srgb_linear_to_nonlinear(textureColor.rgb);
float r = textureColor.r;
float g = textureColor.g;