diff options
author | aap <aap@papnet.eu> | 2020-08-19 14:36:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 14:36:38 +0200 |
commit | 76fe1247c86873fa548c85ae8598efd4ce1947c2 (patch) | |
tree | 0d7d5e42a8e92841af0f89dc577eb0888831fd9f /src/render | |
parent | Island loading cleanup and fix (diff) | |
parent | Merge branch 'master' of github.com:gtamodding/re3 (diff) | |
download | re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.gz re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.bz2 re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.lz re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.xz re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.zst re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.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 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()){ |