Fix T47452: Translate-node seams w/ subpixel offset

This commit is contained in:
2016-02-18 01:28:41 +11:00
parent 8512a8b956
commit 578f98d7ad
3 changed files with 39 additions and 8 deletions

View File

@@ -259,7 +259,9 @@ public:
float u = x;
float v = y;
this->wrap_pixel(u, v, extend_x, extend_y);
BLI_bilinear_interpolation_fl(this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u, v);
BLI_bilinear_interpolation_wrap_fl(
this->m_buffer, result, this->m_width, this->m_height, this->m_num_channels, u, v,
extend_x == COM_MB_REPEAT, extend_y == COM_MB_REPEAT);
}
void readEWA(float *result, const float uv[2], const float derivatives[2][2]);