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

@@ -39,7 +39,7 @@ PACK_STRUCT(struct TerrainMaterialShaderData {
DrawPass TerrainMaterialShader::GetDrawModes() const
{
return DrawPass::Depth | DrawPass::GBuffer;
return DrawPass::Depth | DrawPass::GBuffer | DrawPass::GlobalSurfaceAtlas;
}
bool TerrainMaterialShader::CanUseLightmap() const