fix minor interp bug
This commit is contained in:
parent
758a900e51
commit
faae6e715a
@ -29,7 +29,7 @@ function<float(float, float, float)> WorldGeometry::xLerpFunction(Maybe<float> d
|
|||||||
unsigned xsize = m_size[0];
|
unsigned xsize = m_size[0];
|
||||||
return [discontinuityThreshold, xsize](float offset, float min, float max) -> float {
|
return [discontinuityThreshold, xsize](float offset, float min, float max) -> float {
|
||||||
float distance = wrapDiffF<float>(max, min, xsize);
|
float distance = wrapDiffF<float>(max, min, xsize);
|
||||||
if (discontinuityThreshold && distance > *discontinuityThreshold)
|
if (discontinuityThreshold && abs(distance) > *discontinuityThreshold)
|
||||||
return min + distance;
|
return min + distance;
|
||||||
return min + offset * distance;
|
return min + offset * distance;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user