Merge remote-tracking branch 'origin/master' into 1.10

# Conflicts:
#	Source/Engine/Level/Prefabs/Prefab.Apply.cpp
This commit is contained in:
Wojtek Figat
2025-02-27 17:17:02 +01:00
40 changed files with 405 additions and 170 deletions

View File

@@ -191,8 +191,11 @@ bool TerrainMaterialShader::Load()
psDesc.DepthFunc = ComparisonFunc::Less;
psDesc.HS = nullptr;
psDesc.DS = nullptr;
// TODO: masked terrain materials (depth pass should clip holes)
psDesc.PS = nullptr;
if (EnumHasAnyFlags(_info.UsageFlags, MaterialUsageFlags::UseMask))
{
psDesc.PS = _shader->GetPS("PS_Depth");
}
_cache.Depth.Init(psDesc);
return false;