add debug render groups

This commit is contained in:
aap
2021-02-18 12:21:47 +01:00
parent 1a429bb3c4
commit 9db87fc636
21 changed files with 132 additions and 0 deletions

View File

@ -293,6 +293,7 @@ CVisibilityPlugins::RenderFadingEntities(void)
continue;
#endif
mi = (CSimpleModelInfo *)CModelInfo::GetModelInfo(e->GetModelIndex());
#ifdef FIX_BUGS
if(mi->GetModelType() == MITYPE_SIMPLE && mi->m_noZwrite)
#else
@ -308,7 +309,9 @@ CVisibilityPlugins::RenderFadingEntities(void)
DeActivateDirectional();
SetAmbientColours();
e->bImBeingRendered = true;
PUSH_RENDERGROUP(mi->GetModelName());
RenderFadingAtomic((RpAtomic*)e->m_rwObject, node->item.sort);
POP_RENDERGROUP();
e->bImBeingRendered = false;
}else
CRenderer::RenderOneNonRoad(e);