Compositor: Cleanup, don't shortcut float values
Use 0.0f instead of 0.f and so on.
This commit is contained in:
@@ -63,7 +63,7 @@ void MapUVOperation::executePixelSampled(float output[4], float x, float y, Pixe
|
||||
float du = len_v2(deriv[0]);
|
||||
float dv = len_v2(deriv[1]);
|
||||
float factor = 1.0f - threshold * (du / m_inputColorProgram->getWidth() + dv / m_inputColorProgram->getHeight());
|
||||
if (factor < 0.f) alpha = 0.f;
|
||||
if (factor < 0.0f) alpha = 0.0f;
|
||||
else alpha *= factor;
|
||||
|
||||
/* "premul" */
|
||||
|
||||
Reference in New Issue
Block a user