1
0
forked from mirrors/0ad

Fixes A8 framebuffer format used for LOS interpolation and enables smooth LOS by default.

Tested By: Langbart, mastoras
Differential Revision: https://code.wildfiregames.com/D4654
This was SVN commit r26906.
This commit is contained in:
vladislavbelov
2022-05-26 16:36:57 +00:00
parent 68d73e1726
commit 095838da0a
29 changed files with 185 additions and 51 deletions
+4 -4
View File
@@ -490,11 +490,11 @@ void CMiniMapTexture::RenderFinalTexture(
DrawTexture(deviceCommandContext);
deviceCommandContext->EndPass();
pipelineStateDesc.blendState.enabled = false;
pipelineStateDesc.blendState.colorWriteMask =
Renderer::Backend::ColorWriteMask::ALPHA;
deviceCommandContext->SetGraphicsPipelineState(pipelineStateDesc);
tech = g_Renderer.GetShaderManager().LoadEffect(str_minimap_los, CShaderDefines());
deviceCommandContext->SetGraphicsPipelineState(
tech->GetGraphicsPipelineStateDesc());
deviceCommandContext->BeginPass();
shader = tech->GetShader();
deviceCommandContext->SetTexture(
shader->GetBindingSlot(str_baseTex), losTexture.GetTexture());