Disables writing depth for decals as they follow terrain and water (if floating) shape. Fixes #6494

Tested By: Langbart
Differential Revision: https://code.wildfiregames.com/D4637
This was SVN commit r26852.
This commit is contained in:
Vladislav Belov 2022-05-05 17:25:20 +00:00
parent 3ed4eaf247
commit b808adcc00

View File

@ -173,6 +173,7 @@ void CDecalRData::RenderDecals(
Renderer::Backend::BlendFactor::ONE_MINUS_SRC_ALPHA;
pipelineStateDesc.blendState.colorBlendOp = pipelineStateDesc.blendState.alphaBlendOp =
Renderer::Backend::BlendOp::ADD;
pipelineStateDesc.depthStencilState.depthWriteEnabled = false;
deviceCommandContext->SetGraphicsPipelineState(pipelineStateDesc);
deviceCommandContext->BeginPass();