Fix subpixel precision in transform node

The node was using sampler from the callee node and passed
it to the input nodes. Since the fact that compositor output
node uses NEAREST interpolation (why it uses nearest is the
whole separate story) it's not possible to have subpixel
precision in such cases:

  <image> -> <translate> -> <output>

For now solving by hard-coding translate node to use BILINEAR
interpolation. It can't become worse in this node anyway and
the sampling pipeline is to be re-visited from scratch.
This commit is contained in:
Sergey Sharybin 2014-06-05 22:05:05 +06:00
parent 91429d09a3
commit 6b256a7cd8
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ void TranslateOperation::executePixelSampled(float output[4], float x, float y,
float originalXPos = x - this->getDeltaX();
float originalYPos = y - this->getDeltaY();
this->m_inputOperation->readSampled(output, originalXPos, originalYPos, sampler);
this->m_inputOperation->readSampled(output, originalXPos, originalYPos, COM_PS_BILINEAR);
}
bool TranslateOperation::determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output)