2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 13:44:56 +00:00

HUD rendering bug fixes

This commit is contained in:
Jack Andersen
2018-01-05 20:50:42 -10:00
parent a78c4c6b36
commit 168fab6b14
47 changed files with 254 additions and 120 deletions

View File

@@ -174,7 +174,7 @@ void CCameraFilterPassPoly::SetFilter(EFilterType type, EFilterShape shape,
m_filter->SetFilter(type, shape, time, color, txtr);
}
void CCameraBlurPass::Draw()
void CCameraBlurPass::Draw(bool clearDepth)
{
if (x10_curType == EBlurType::NoBlur)
return;
@@ -189,7 +189,9 @@ void CCameraBlurPass::Draw()
{
if (!m_shader)
m_shader.emplace();
m_shader->draw(x1c_curValue);
m_shader->draw(x1c_curValue, clearDepth);
if (clearDepth)
CGraphics::SetDepthRange(DEPTH_NEAR, DEPTH_FAR);
}
}

View File

@@ -109,7 +109,7 @@ class CCameraBlurPass
mutable std::experimental::optional<CXRayBlurFilter> m_xrayShader;
public:
void Draw();
void Draw(bool clearDepth=false);
void Update(float dt);
void SetBlur(EBlurType type, float amount, float duration);
void DisableBlur(float duration);