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:
parent
3ed4eaf247
commit
b808adcc00
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user