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
351 assert(renderContext->args->hasViewFrustum());351 assert(renderContext->args->hasViewFrustum());
352 RenderArgs* args = renderContext->args;352 RenderArgs* args = renderContext->args;
353 353
354 auto& diffusedCurvatureFramebuffer = inputs.get0();354 auto& deferredFramebuffer = inputs.get0();
355 auto& scatteringFramebuffer = inputs.get1();355 auto& diffusedCurvatureFramebuffer = inputs.get1();
356 auto& scatteringFramebuffer = inputs.get2();
356 357
357 gpu::doInBatch(args->_context, [&](gpu::Batch& batch) {358 gpu::doInBatch(args->_context, [&](gpu::Batch& batch) {
358 batch.enableStereo(false);359 batch.enableStereo(false);
@@ -376,11 +377,11 @@ void DebugDeferredBuffer::run(const SceneContextPointer& sceneContext, const Ren · 17 unmodified lines
376 377
377 batch.setPipeline(getPipeline(_mode, first));378 batch.setPipeline(getPipeline(_mode, first));
378 379
379 batch.setResourceTexture(Albedo, framebufferCache->getDeferredColorTexture());380 batch.setResourceTexture(Albedo, deferredFramebuffer->getDeferredColorTexture());
380 batch.setResourceTexture(Normal, framebufferCache->getDeferredNormalTexture());381 batch.setResourceTexture(Normal, deferredFramebuffer->getDeferredNormalTexture());
381 batch.setResourceTexture(Specular, framebufferCache->getDeferredSpecularTexture());382 batch.setResourceTexture(Specular, deferredFramebuffer->getDeferredSpecularTexture());
382 batch.setResourceTexture(Depth, framebufferCache->getPrimaryDepthTexture());383 batch.setResourceTexture(Depth, deferredFramebuffer->getPrimaryDepthTexture());
383 batch.setResourceTexture(Lighting, framebufferCache->getLightingTexture());384 batch.setResourceTexture(Lighting, deferredFramebuffer->getLightingTexture());
384 batch.setResourceTexture(Shadow, lightStage.lights[0]->shadow.framebuffer->getDepthStencilBuffer());385 batch.setResourceTexture(Shadow, lightStage.lights[0]->shadow.framebuffer->getDepthStencilBuffer());
385 batch.setResourceTexture(Pyramid, framebufferCache->getDepthPyramidTexture());386 batch.setResourceTexture(Pyramid, framebufferCache->getDepthPyramidTexture());
386 batch.setResourceTexture(Curvature, framebufferCache->getCurvatureTexture());387 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