Minor fixes

This commit is contained in:
Jérôme Leclercq
2021-11-24 22:29:09 +01:00
parent caf1a0f1e8
commit a33a118ed3
3 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ namespace Nz
m_transparentMaterialPass->EnableDepthWrite(false);
m_transparentMaterialPass->EnableBlending(true);
m_transparentMaterialPass->SetBlendEquation(BlendEquation::Add, BlendEquation::Add);
m_transparentMaterialPass->SetBlendFunc(BlendFunc::SrcAlpha, BlendFunc::InvSrcAlpha, BlendFunc::One, BlendFunc::Zero);
m_transparentMaterialPass->SetBlendFunc(BlendFunc::SrcAlpha, BlendFunc::InvSrcAlpha, BlendFunc::One, BlendFunc::One);
m_transparentMaterial = std::make_shared<Material>();
m_transparentMaterial->AddPass("ForwardPass", m_transparentMaterialPass);