|
|
@@ -14,6 +14,7 @@
|
|
|
#include <anki/renderer/DepthDownscale.h>
|
|
|
#include <anki/renderer/Ssao.h>
|
|
|
#include <anki/renderer/Ssr.h>
|
|
|
+#include <anki/renderer/Ssgi.h>
|
|
|
#include <anki/renderer/GlobalIllumination.h>
|
|
|
#include <anki/core/ConfigSet.h>
|
|
|
#include <anki/util/HighRezTimer.h>
|
|
|
@@ -135,6 +136,7 @@ void LightShading::run(RenderPassWorkContext& rgraphCtx)
|
|
|
0, 16, m_r->getGBuffer().getDepthRt(), TextureSubresourceInfo(DepthStencilAspectBit::DEPTH));
|
|
|
rgraphCtx.bindColorTexture(0, 17, m_r->getSsr().getRt());
|
|
|
rgraphCtx.bindColorTexture(0, 18, m_r->getSsao().getRt());
|
|
|
+ rgraphCtx.bindColorTexture(0, 19, m_r->getSsgi().getRt());
|
|
|
|
|
|
// Draw
|
|
|
drawQuad(cmdb);
|
|
|
@@ -203,6 +205,7 @@ void LightShading::populateRenderGraph(RenderingContext& ctx)
|
|
|
TextureSubresourceInfo(DepthStencilAspectBit::DEPTH)});
|
|
|
pass.newDependency({m_r->getShadowMapping().getShadowmapRt(), TextureUsageBit::SAMPLED_FRAGMENT});
|
|
|
pass.newDependency({m_r->getSsao().getRt(), TextureUsageBit::SAMPLED_FRAGMENT});
|
|
|
+ pass.newDependency({m_r->getSsgi().getRt(), TextureUsageBit::SAMPLED_FRAGMENT});
|
|
|
|
|
|
// Refl & indirect
|
|
|
pass.newDependency({m_r->getSsr().getRt(), TextureUsageBit::SAMPLED_FRAGMENT});
|