summaryrefslogtreecommitdiff
path: root/src/render/Renderer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/Renderer.cpp')
-rw-r--r--src/render/Renderer.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index 568f0afa..8a93ee70 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -20,6 +20,7 @@
#include "PointLights.h"
#include "Renderer.h"
#include "Frontend.h"
+#include "custompipes.h"
bool gbShowPedRoadGroups;
bool gbShowCarRoadGroups;
@@ -97,8 +98,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
@@ -233,6 +238,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()){