Fix 105271: Luminance Matte not Working on NVIDIA.
Issue was that the clamping parameters were not in the correct order. This leads to undefined behavior and also lead to small artifacts on other platforms. Pull Request: https://projects.blender.org/blender/blender/pulls/105735
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user