diff options
author | Campbell Barton <campbell@blender.org> | 2022-05-05 10:32:57 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-05-05 10:33:43 +0300 |
commit | eb837ba17eb5bc53de98972ab1f0b9aa30658e19 (patch) | |
tree | 4cd67ec9ef1aa00f0e4a3bb0622e1730df00c41e /intern/cycles/util/color.h | |
parent | 6513ce258f734f50fa152a8f88240368e176389b (diff) |
Cleanup: format
Diffstat (limited to 'intern/cycles/util/color.h')
-rw-r--r-- | intern/cycles/util/color.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/util/color.h b/intern/cycles/util/color.h index a390b49cf7b..795c3754976 100644 --- a/intern/cycles/util/color.h +++ b/intern/cycles/util/color.h @@ -162,7 +162,8 @@ ccl_device float3 rgb_to_hsl(float3 rgb) if (cmax == cmin) { h = s = 0.0f; /* achromatic */ - } else { + } + else { float cdelta = cmax - cmin; s = l > 0.5f ? cdelta / (2.0f - cmax - cmin) : cdelta / (cmax + cmin); if (cmax == rgb.x) { |