Optimize RenderTargetWriteMask on depth pass for transparency and terrain materials
This commit is contained in:
@@ -185,6 +185,7 @@ bool ForwardMaterialShader::Load()
|
||||
psDesc.DepthWriteEnable = true;
|
||||
psDesc.DepthEnable = true;
|
||||
psDesc.DepthFunc = ComparisonFunc::Less;
|
||||
psDesc.BlendMode.RenderTargetWriteMask = BlendingMode::ColorWrite::None;
|
||||
psDesc.HS = nullptr;
|
||||
psDesc.DS = nullptr;
|
||||
psDesc.VS = _shader->GetVS("VS");
|
||||
|
||||
Reference in New Issue
Block a user