Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-14 21:03:59 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-14 21:28:44 +0300
commit9886ae63311da83d962a546bb2c252316ba63538 (patch)
tree7a9f4946fbfad8af41dd8c68bac8d5bcb3c1f9c8 /intern/cycles/kernel/svm
parentfb6f1aa12f945c6a17ca96f402dec2f6bce81463 (diff)
Fix T61470: incorrect saturation clamping in recent bugfix.
We should clamp the result after multiplication.
Diffstat (limited to 'intern/cycles/kernel/svm')
-rw-r--r--intern/cycles/kernel/svm/svm_hsv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/svm_hsv.h b/intern/cycles/kernel/svm/svm_hsv.h
index e69a4ee9154..6f3efa639e2 100644
--- a/intern/cycles/kernel/svm/svm_hsv.h
+++ b/intern/cycles/kernel/svm/svm_hsv.h
@@ -38,7 +38,7 @@ ccl_device void svm_node_hsv(KernelGlobals *kg, ShaderData *sd, float *stack, ui
/* remember: fmod doesn't work for negative numbers here */
color.x = fmodf(color.x + hue + 0.5f, 1.0f);
- color.y *= saturate(sat);
+ color.y = saturate(color.y * sat);
color.z *= val;
color = hsv_to_rgb(color);