mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 04:20:00 +00:00
only do backface culling on buildings
This commit is contained in:
parent
ebddb7956c
commit
b3da518ae0
|
@ -111,7 +111,7 @@ CRenderer::RenderOneRoad(CEntity *e)
|
||||||
CustomPipes::AttachGlossPipe(e->GetAtomic());
|
CustomPipes::AttachGlossPipe(e->GetAtomic());
|
||||||
#endif
|
#endif
|
||||||
#ifdef EXTRA_MODEL_FLAGS
|
#ifdef EXTRA_MODEL_FLAGS
|
||||||
if(CModelInfo::GetModelInfo(e->GetModelIndex())->RenderDoubleSided()){
|
if(!e->IsBuilding() || CModelInfo::GetModelInfo(e->GetModelIndex())->RenderDoubleSided()){
|
||||||
BACKFACE_CULLING_OFF;
|
BACKFACE_CULLING_OFF;
|
||||||
e->Render();
|
e->Render();
|
||||||
BACKFACE_CULLING_ON;
|
BACKFACE_CULLING_ON;
|
||||||
|
@ -181,7 +181,7 @@ CRenderer::RenderOneNonRoad(CEntity *e)
|
||||||
BACKFACE_CULLING_OFF;
|
BACKFACE_CULLING_OFF;
|
||||||
}
|
}
|
||||||
#ifdef EXTRA_MODEL_FLAGS
|
#ifdef EXTRA_MODEL_FLAGS
|
||||||
if(CModelInfo::GetModelInfo(e->GetModelIndex())->RenderDoubleSided()){
|
if(!e->IsBuilding() || CModelInfo::GetModelInfo(e->GetModelIndex())->RenderDoubleSided()){
|
||||||
BACKFACE_CULLING_OFF;
|
BACKFACE_CULLING_OFF;
|
||||||
e->Render();
|
e->Render();
|
||||||
BACKFACE_CULLING_ON;
|
BACKFACE_CULLING_ON;
|
||||||
|
|
Loading…
Reference in a new issue