neo pipelines

This commit is contained in:
aap 2020-08-18 10:58:15 +02:00
parent e1ca6c6b79
commit c556cbbbe0
61 changed files with 3723 additions and 18 deletions

View file

@ -19,6 +19,7 @@
#include "Shadows.h"
#include "PointLights.h"
#include "Renderer.h"
#include "custompipes.h"
bool gbShowPedRoadGroups;
bool gbShowCarRoadGroups;
@ -96,8 +97,12 @@ CRenderer::RenderOneRoad(CEntity *e)
return;
if(gbShowCollisionPolys)
CCollision::DrawColModel_Coloured(e->GetMatrix(), *CModelInfo::GetModelInfo(e->GetModelIndex())->GetColModel(), e->GetModelIndex());
else
else{
#ifdef EXTENDED_PIPELINES
CustomPipes::AttachGlossPipe(e->GetAtomic());
#endif
e->Render();
}
}
void
@ -232,6 +237,11 @@ CRenderer::RenderEverythingBarRoads(void)
if(e->IsBuilding() && ((CBuilding*)e)->GetIsATreadable())
continue;
#ifdef EXTENDED_PIPELINES
if(CustomPipes::bRenderingEnvMap && (e->IsPed() || e->IsVehicle()))
continue;
#endif
if(e->IsVehicle() ||
e->IsPed() && CVisibilityPlugins::GetClumpAlpha((RpClump*)e->m_rwObject) != 255){
if(e->IsVehicle() && ((CVehicle*)e)->IsBoat()){