diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_ChromaMatteOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ChromaMatteOperation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_ChromaMatteOperation.cpp b/source/blender/compositor/operations/COM_ChromaMatteOperation.cpp index 9a20ca412e0..bc6389c5bbd 100644 --- a/source/blender/compositor/operations/COM_ChromaMatteOperation.cpp +++ b/source/blender/compositor/operations/COM_ChromaMatteOperation.cpp @@ -84,16 +84,16 @@ void ChromaMatteOperation::executePixelSampled(float output[4], float x, float y /*if within the acceptance angle */ /* if kfg is <0 then the pixel is outside of the key color */ - kfg = x_angle - (fabsf(z_angle) / tanf(acceptance / 2.f)); + kfg = x_angle - (fabsf(z_angle) / tanf(acceptance / 2.0f)); - if (kfg > 0.f) { /* found a pixel that is within key color */ + if (kfg > 0.0f) { /* found a pixel that is within key color */ alpha = 1.0f - (kfg / gain); beta = atan2(z_angle, x_angle); /* if beta is within the cutoff angle */ - if (fabsf(beta) < (cutoff / 2.f)) { - alpha = 0.f; + if (fabsf(beta) < (cutoff / 2.0f)) { + alpha = 0.0f; } /* don't make something that was more transparent less transparent */ |