Removed one more reference to global function.
This commit is contained in:
parent
8577f0d185
commit
c21f6abeb7
@ -749,6 +749,15 @@ public:
|
|||||||
assignSamplerNames(0, "blendMap", ST_NEAREST_FILTERED,
|
assignSamplerNames(0, "blendMap", ST_NEAREST_FILTERED,
|
||||||
1, "colorMap", ST_NEAREST_FILTERED);
|
1, "colorMap", ST_NEAREST_FILTERED);
|
||||||
} // MLAAGatherSHader
|
} // MLAAGatherSHader
|
||||||
|
// ------------------------------------------------------------------------
|
||||||
|
void render(const core::vector2df &pixel_size)
|
||||||
|
{
|
||||||
|
use();
|
||||||
|
setTextureUnits(irr_driver->getRenderTargetTexture(RTT_MLAA_BLEND),
|
||||||
|
irr_driver->getRenderTargetTexture(RTT_MLAA_TMP));
|
||||||
|
drawFullScreenEffect(pixel_size);
|
||||||
|
|
||||||
|
} // render
|
||||||
}; // MLAAGatherSHader
|
}; // MLAAGatherSHader
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@ -1369,12 +1378,7 @@ void PostProcessing::applyMLAA()
|
|||||||
|
|
||||||
// Pass 3: gather
|
// Pass 3: gather
|
||||||
irr_driver->getFBO(FBO_MLAA_COLORS).bind();
|
irr_driver->getFBO(FBO_MLAA_COLORS).bind();
|
||||||
|
MLAAGatherSHader::getInstance()->render(PIXEL_SIZE);
|
||||||
MLAAGatherSHader::getInstance()->use();
|
|
||||||
MLAAGatherSHader::getInstance()
|
|
||||||
->setTextureUnits(irr_driver->getRenderTargetTexture(RTT_MLAA_BLEND),
|
|
||||||
irr_driver->getRenderTargetTexture(RTT_MLAA_TMP));
|
|
||||||
DrawFullScreenEffect<MLAAGatherSHader>(PIXEL_SIZE);
|
|
||||||
|
|
||||||
// Done.
|
// Done.
|
||||||
glDisable(GL_STENCIL_TEST);
|
glDisable(GL_STENCIL_TEST);
|
||||||
|
Loading…
Reference in New Issue
Block a user