Fix T61470: incorrect saturation clamping in recent bugfix.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 14 Feb 2019 18:03:59 +0000 (19:03 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Thu, 14 Feb 2019 18:28:44 +0000 (19:28 +0100)
commit9886ae63311da83d962a546bb2c252316ba63538
tree7a9f4946fbfad8af41dd8c68bac8d5bcb3c1f9c8
parentfb6f1aa12f945c6a17ca96f402dec2f6bce81463
Fix T61470: incorrect saturation clamping in recent bugfix.

We should clamp the result after multiplication.
intern/cycles/kernel/shaders/node_hsv.osl
intern/cycles/kernel/svm/svm_hsv.h
source/blender/gpu/shaders/gpu_shader_material.glsl
source/blender/nodes/shader/nodes/node_shader_hueSatVal.c