Fix T42064: Directional blur uses wrong sampler

Now use linear one, nearest is far too doggy.
This commit is contained in:
Sergey Sharybin 2014-10-14 15:35:15 +02:00
parent 383bd34111
commit 2d6458c64c
Notes: blender-bot 2023-02-14 10:00:08 +01:00
Referenced by issue #42064, Directional Blur incorrect behavior (XY axis banding artifacts)
1 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void
const int iterations = pow(2.0f, this->m_data->iter);
float col[4] = {0, 0, 0, 0};
float col2[4] = {0, 0, 0, 0};
this->m_inputProgram->readSampled(col2, x, y, COM_PS_NEAREST);
this->m_inputProgram->readSampled(col2, x, y, COM_PS_BILINEAR);
float ltx = this->m_tx;
float lty = this->m_ty;
float lsc = this->m_sc;
@ -87,7 +87,7 @@ void DirectionalBlurOperation::executePixel(float output[4], int x, int y, void
this->m_inputProgram->readSampled(col,
cs * u + ss * v + this->m_center_x_pix,
cs * v - ss * u + this->m_center_y_pix,
COM_PS_NEAREST);
COM_PS_BILINEAR);
add_v4_v4(col2, col);