History

Introducing the sl files and the blurring stages

samcake committed 10 years ago

Commit 52f3c7e1 parent 8dba66f24 files · +576 −784Browse files

Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 24 files). Show all

Unified · Split

libraries/render-utils/src/RenderDeferredTask.cpp+5−1
@@ -158,12 +158,16 @@ void RenderDeferredTask::run(const SceneContextPointer& sceneContext, const Rend · 157 unmodified lines
158158
159159 // TODO: turn on/off AO through menu item
160160 setOcclusionStatus(renderContext->getOcclusionStatus());
161−
161+ if (_occlusionJobIndex >= 0) {
162+ _jobs[_occlusionJobIndex].edit<AmbientOcclusionEffect>().setRadius(renderContext->getAmbientOcclusion().radius);
163+ }
164+
162165 setAntialiasingStatus(renderContext->getFxaaStatus());
163166
164167 setToneMappingExposure(renderContext->getTone().exposure);
165168 setToneMappingToneCurve(renderContext->getTone().toneCurve);
166169
170+
167171 renderContext->getArgs()->_context->syncCache();
168172
169173 for (auto job : _jobs) {