Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 24 files). Show all
Unified · Split
| @@ -158,12 +158,16 @@ void RenderDeferredTask::run(const SceneContextPointer& sceneContext, const Rend · 157 unmodified lines | ||
| 158 | 158 | |
| 159 | 159 | // TODO: turn on/off AO through menu item |
| 160 | 160 | setOcclusionStatus(renderContext->getOcclusionStatus()); |
| 161 | − | |
| 161 | + if (_occlusionJobIndex >= 0) { | |
| 162 | + _jobs[_occlusionJobIndex].edit<AmbientOcclusionEffect>().setRadius(renderContext->getAmbientOcclusion().radius); | |
| 163 | + } | |
| 164 | + | |
| 162 | 165 | setAntialiasingStatus(renderContext->getFxaaStatus()); |
| 163 | 166 | |
| 164 | 167 | setToneMappingExposure(renderContext->getTone().exposure); |
| 165 | 168 | setToneMappingToneCurve(renderContext->getTone().toneCurve); |
| 166 | 169 | |
| 170 | + | |
| 167 | 171 | renderContext->getArgs()->_context->syncCache(); |
| 168 | 172 | |
| 169 | 173 | for (auto job : _jobs) { |