diff --git a/node-graph/gcore/src/raster/adjustments.rs b/node-graph/gcore/src/raster/adjustments.rs index ee197623..769b32c7 100644 --- a/node-graph/gcore/src/raster/adjustments.rs +++ b/node-graph/gcore/src/raster/adjustments.rs @@ -77,9 +77,9 @@ fn levels_node(color: Color, input_start: f64, input_mid: f64, input_end: f64, o // Gamma correction let gamma = if midtones < 0.5 { - (1. + (9. * (1. - midtones * 2.))).min(9.99) + 1. / (1. + (9. * (1. - midtones * 2.))).min(9.99) } else { - ((1. - midtones) * 2.).max(0.01) + 1. / ((1. - midtones) * 2.).max(0.01) }; // Input levels