[Bf-blender-cvs] [dd185bf] master: Fix T47336: compositor color balance offset/slope/power incorrectly clamps HDR colors.
Brecht Van Lommel
noreply at git.blender.org
Sun Feb 7 16:44:01 CET 2016
Commit: dd185bf5b87a37f32af32fc5d1ef6e90748fdd64
Author: Brecht Van Lommel
Date: Sun Feb 7 16:41:41 2016 +0100
Branches: master
https://developer.blender.org/rBdd185bf5b87a37f32af32fc5d1ef6e90748fdd64
Fix T47336: compositor color balance offset/slope/power incorrectly clamps HDR colors.
===================================================================
M source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp
===================================================================
diff --git a/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp b/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp
index 2846642..fb97e45 100644
--- a/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp
+++ b/source/blender/compositor/operations/COM_ColorBalanceASCCDLOperation.cpp
@@ -28,7 +28,7 @@ inline float colorbalance_cdl(float in, float offset, float power, float slope)
float x = in * slope + offset;
/* prevent NaN */
- CLAMP(x, 0.0f, 1.0f);
+ if (x < 0.f) x = 0.f;
return powf(x, power);
}
More information about the Bf-blender-cvs
mailing list