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