diff options
author | aap <aap@papnet.eu> | 2020-08-18 10:58:15 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-08-18 10:58:15 +0200 |
commit | c556cbbbe016858537ebc2950e2803bcb85f93d5 (patch) | |
tree | b301c8f091840a378b82b27806546a28abd6d221 /src/render | |
parent | Move stuff to vendor (diff) | |
download | re3-c556cbbbe016858537ebc2950e2803bcb85f93d5.tar re3-c556cbbbe016858537ebc2950e2803bcb85f93d5.tar.gz re3-c556cbbbe016858537ebc2950e2803bcb85f93d5.tar.bz2 re3-c556cbbbe016858537ebc2950e2803bcb85f93d5.tar.lz re3-c556cbbbe016858537ebc2950e2803bcb85f93d5.tar.xz re3-c556cbbbe016858537ebc2950e2803bcb85f93d5.tar.zst re3-c556cbbbe016858537ebc2950e2803bcb85f93d5.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Renderer.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 7ae29a2f..76d8af2b 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -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()){ |