Switched back to half res depth when resolutionLevel>1

This commit is contained in:
Olivier Prat 2018-09-28 10:33:47 +02:00
parent 8e914fa565
commit 6240454c55

View file

@ -458,8 +458,7 @@ const gpu::PipelinePointer& AmbientOcclusionEffect::getBuildNormalsPipeline() {
}
int AmbientOcclusionEffect::getDepthResolutionLevel() const {
// Having some problems making a nice AO with Half resolution depth, so stick to full res.
return 0;
return std::min(1, _aoParametersBuffer->getResolutionLevel());
}
void AmbientOcclusionEffect::run(const render::RenderContextPointer& renderContext, const Inputs& inputs, Outputs& outputs) {