Showing the changes to libraries/render-utils/src/RenderDeferredTask.cpp (1 of 9 files). Show all
Unified · Split
| @@ -202,6 +202,11 @@ void RenderDeferredTask::run(const SceneContextPointer& sceneContext, const Rend · 201 unmodified lines | ||
| 202 | 202 | job.run(sceneContext, renderContext); |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | + if (_occlusionJobIndex >= 0 && renderContext->getOcclusionStatus()) { | |
| 206 | + renderContext->getAmbientOcclusion().gpuTime = _jobs[_occlusionJobIndex].edit<AmbientOcclusionEffect>().getGPUTime(); | |
| 207 | + } else { | |
| 208 | + renderContext->getAmbientOcclusion().gpuTime = 0.0; | |
| 209 | + } | |
| 205 | 210 | }; |
| 206 | 211 | |
| 207 | 212 | void DrawOpaqueDeferred::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems) { |