mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:13:29 +02:00
Disable sharpen with FXAA
This commit is contained in:
parent
095f426f31
commit
6a550e983f
1 changed files with 2 additions and 1 deletions
|
@ -366,7 +366,8 @@ void Antialiasing::run(const render::RenderContextPointer& renderContext, const
|
||||||
batch.setPipeline(getDebugBlendPipeline());
|
batch.setPipeline(getDebugBlendPipeline());
|
||||||
} else {
|
} else {
|
||||||
batch.setPipeline(getBlendPipeline());
|
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.setResourceFramebufferSwapChainTexture(AntialiasingPass_NextMapSlot, _antialiasingBuffers, 1);
|
||||||
batch.draw(gpu::TRIANGLE_STRIP, 4);
|
batch.draw(gpu::TRIANGLE_STRIP, 4);
|
||||||
|
|
Loading…
Reference in a new issue