2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-17 01:37:03 +00:00

CElementGenShaders, CDecalShaders fixes

Add conditions for HSH_PROFILE_MODE
This commit is contained in:
2020-10-21 01:12:07 -04:00
parent 2874a48166
commit c8ba49bb50
31 changed files with 157 additions and 49 deletions

View File

@@ -90,6 +90,7 @@ void CTextRenderBuffer::Render(const zeus::CColor& col, float time) {
const zeus::CMatrix4f proj = CGraphics::GetPerspectiveProjectionMatrix(true);
const zeus::CMatrix4f mat = proj * mv;
#if !HSH_PROFILE_MODE
m_uniBuf.load({mat, col});
if (m_drawFlags == CGuiWidget::EGuiModelDrawFlags::AlphaAdditiveOverdraw) {
zeus::CColor colPremul = col * col.a();
@@ -121,6 +122,7 @@ void CTextRenderBuffer::Render(const zeus::CColor& col, float time) {
img.m_dataBindingOverdraw[idx].draw_instanced(0, 4, 1);
}
}
#endif
}
void CTextRenderBuffer::AddImage(const zeus::CVector2i& offset, const CFontImageDef& image) {