mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 22:44:15 +02:00
Switched back to half res depth when resolutionLevel>1
This commit is contained in:
parent
8e914fa565
commit
6240454c55
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue