Fix 105271: Luminance Matte not Working on NVIDIA. #105735

Merged
Jeroen Bakker merged 1 commits from Jeroen-Bakker/blender:compositor-105271 into blender-v3.5-release 2023-03-13 16:07:28 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ void node_composite_luminance_matte(vec4 color,
out float matte)
{
float luminance = get_luminance(color.rgb, luminance_coefficients);
float alpha = clamp(0.0, 1.0, (luminance - low) / (high - low));
float alpha = clamp((luminance - low) / (high - low), 0.0, 1.0);
matte = min(alpha, color.a);
result = color * matte;
}