forked from bartvdbraak/blender
Fix T42064: Directional blur uses wrong sampler
Now use linear one, nearest is far too doggy.
This commit is contained in:
parent
383bd34111
commit
2d6458c64c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user