Fix Global Surface Atlas drawing of objects that are hidden in GBuffer pass but should be visible for GI

This commit is contained in:
Wojciech Figat
2022-08-09 14:37:29 +02:00
parent 210342d337
commit 6a1378ebdb
8 changed files with 13 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ PACK_STRUCT(struct DeferredMaterialShaderData {
DrawPass DeferredMaterialShader::GetDrawModes() const
{
return DrawPass::Depth | DrawPass::GBuffer | DrawPass::MotionVectors | DrawPass::QuadOverdraw;
return DrawPass::Depth | DrawPass::GBuffer | DrawPass::GlobalSurfaceAtlas | DrawPass::MotionVectors | DrawPass::QuadOverdraw;
}
bool DeferredMaterialShader::CanUseLightmap() const