diff --git a/libraries/render-utils/src/RenderDeferredTask.cpp b/libraries/render-utils/src/RenderDeferredTask.cpp index b8bc9a542b..fdd79d7d86 100644 --- a/libraries/render-utils/src/RenderDeferredTask.cpp +++ b/libraries/render-utils/src/RenderDeferredTask.cpp @@ -256,7 +256,7 @@ void RenderDeferredTask::build(JobModel& task, const render::Varying& input, ren const auto toneMappedBuffer = task.addJob<ToneMapAndResample>("ToneMapping", toneMappingInputs); // Debugging task is happening in the "over" layer after tone mapping and just before HUD - { // Debug the bounds of the rendered items, still look at the zbuffer + if (depth == 0) { // Debug the bounds of the rendered items, still look at the zbuffer const auto extraDebugBuffers = RenderDeferredTaskDebug::ExtraBuffers(linearDepthTarget, surfaceGeometryFramebuffer, ambientOcclusionFramebuffer, ambientOcclusionUniforms, scatteringResource, velocityBuffer); const auto debugInputs = RenderDeferredTaskDebug::Input(fetchedItems, shadowTaskOutputs, lightingStageInputs, lightClusters, prepareDeferredOutputs, extraDebugBuffers, deferredFrameTransform, jitter, lightingModel).asVarying(); diff --git a/libraries/render-utils/src/RenderForwardTask.cpp b/libraries/render-utils/src/RenderForwardTask.cpp index cba6f4920f..af9f07e36e 100644 --- a/libraries/render-utils/src/RenderForwardTask.cpp +++ b/libraries/render-utils/src/RenderForwardTask.cpp @@ -161,8 +161,7 @@ void RenderForwardTask::build(JobModel& task, const render::Varying& input, rend task.addJob<DrawLayered3D>("DrawInFrontOpaque", inFrontOpaquesInputs, true); task.addJob<DrawLayered3D>("DrawInFrontTransparent", inFrontTransparentsInputs, false); - { // Debug the bounds of the rendered items, still look at the zbuffer - + if (depth == 0) { // Debug the bounds of the rendered items, still look at the zbuffer task.addJob<DrawBounds>("DrawMetaBounds", metas); task.addJob<DrawBounds>("DrawBounds", opaques); task.addJob<DrawBounds>("DrawTransparentBounds", transparents);