Disable sharpen with FXAA

This commit is contained in:
Olivier Prat 2018-02-23 14:46:37 +01:00
parent 095f426f31
commit 6a550e983f

View file

@ -366,7 +366,8 @@ void Antialiasing::run(const render::RenderContextPointer& renderContext, const
batch.setPipeline(getDebugBlendPipeline());
} else {
batch.setPipeline(getBlendPipeline());
batch._glUniform1f(_sharpenLoc, _sharpen);
// Disable sharpen if FXAA
batch._glUniform1f(_sharpenLoc, _sharpen * _params.get().regionInfo.z);
}
batch.setResourceFramebufferSwapChainTexture(AntialiasingPass_NextMapSlot, _antialiasingBuffers, 1);
batch.draw(gpu::TRIANGLE_STRIP, 4);