diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-05-08 23:57:10 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-05-08 23:57:10 +0400 |
commit | ad38297a08b3f6901bfdefdca56b1f0e4f8ac58d (patch) | |
tree | 8974ab68ae9c9cc2d515ebccc6b6e9557f110c8d /source/blender/nodes/intern/CMP_nodes/CMP_hueSatVal.c | |
parent | 106974a9d2d5caa5188322507980e3d57d2e3517 (diff) |
Fix for bug #11005: hue-sat-value node was doing unnecessary
clamping, which not only is suboptimal for working with hdr
images, it was also doing the clamping incorrect.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_hueSatVal.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_hueSatVal.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_hueSatVal.c b/source/blender/nodes/intern/CMP_nodes/CMP_hueSatVal.c index eeddb4ce756..92614d1cc6a 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_hueSatVal.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_hueSatVal.c @@ -52,9 +52,7 @@ static void do_hue_sat_fac(bNode *node, float *out, float *in, float *fac) hsv[0]+= (nhs->hue - 0.5f); if(hsv[0]>1.0) hsv[0]-=1.0; else if(hsv[0]<0.0) hsv[0]+= 1.0; hsv[1]*= nhs->sat; - if(hsv[1]>1.0) hsv[1]= 1.0; else if(hsv[1]<0.0) hsv[1]= 0.0; hsv[2]*= nhs->val; - if(hsv[2]>1.0) hsv[2]= 1.0; else if(hsv[2]<0.0) hsv[2]= 0.0; hsv_to_rgb(hsv[0], hsv[1], hsv[2], col, col+1, col+2); out[0]= mfac*in[0] + *fac*col[0]; |