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:
parent
da187ba73b
commit
67c2c45964
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user