Fix_105606_MetalTextureUploadRegression #1

Closed
Michael Parkin-White wants to merge 17 commits from Fix_105606_MetalTextureUploadRegression into Fix_103605_MetalBarycentrics

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 0b68e609fc - Show all commits

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;
}