History

BRinging the intermediate render textures in the pipeline as varyings and not throug the singletonn anymore

samcake committed 10 years ago

Commit ba759071 parent 0e99a4a23 files · +242 −117Browse files

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

Unified · Split

libraries/render-utils/src/DebugDeferredBuffer.cpp+8−7
@@ -351,8 +351,9 @@ void DebugDeferredBuffer::run(const SceneContextPointer& sceneContext, const Ren · 350 unmodified lines
351351 assert(renderContext->args->hasViewFrustum());
352352 RenderArgs* args = renderContext->args;
353353
354− auto& diffusedCurvatureFramebuffer = inputs.get0();
355− auto& scatteringFramebuffer = inputs.get1();
354+ auto& deferredFramebuffer = inputs.get0();
355+ auto& diffusedCurvatureFramebuffer = inputs.get1();
356+ auto& scatteringFramebuffer = inputs.get2();
356357
357358 gpu::doInBatch(args->_context, [&](gpu::Batch& batch) {
358359 batch.enableStereo(false);
@@ -376,11 +377,11 @@ void DebugDeferredBuffer::run(const SceneContextPointer& sceneContext, const Ren · 17 unmodified lines
376377
377378 batch.setPipeline(getPipeline(_mode, first));
378379
379− batch.setResourceTexture(Albedo, framebufferCache->getDeferredColorTexture());
380− batch.setResourceTexture(Normal, framebufferCache->getDeferredNormalTexture());
381− batch.setResourceTexture(Specular, framebufferCache->getDeferredSpecularTexture());
382− batch.setResourceTexture(Depth, framebufferCache->getPrimaryDepthTexture());
383− batch.setResourceTexture(Lighting, framebufferCache->getLightingTexture());
380+ batch.setResourceTexture(Albedo, deferredFramebuffer->getDeferredColorTexture());
381+ batch.setResourceTexture(Normal, deferredFramebuffer->getDeferredNormalTexture());
382+ batch.setResourceTexture(Specular, deferredFramebuffer->getDeferredSpecularTexture());
383+ batch.setResourceTexture(Depth, deferredFramebuffer->getPrimaryDepthTexture());
384+ batch.setResourceTexture(Lighting, deferredFramebuffer->getLightingTexture());
384385 batch.setResourceTexture(Shadow, lightStage.lights[0]->shadow.framebuffer->getDepthStencilBuffer());
385386 batch.setResourceTexture(Pyramid, framebufferCache->getDepthPyramidTexture());
386387 batch.setResourceTexture(Curvature, framebufferCache->getCurvatureTexture());

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t