From c556cbbbe016858537ebc2950e2803bcb85f93d5 Mon Sep 17 00:00:00 2001 From: aap Date: Tue, 18 Aug 2020 10:58:15 +0200 Subject: neo pipelines --- src/modelinfo/PedModelInfo.cpp | 5 ++++- src/modelinfo/SimpleModelInfo.cpp | 5 +++++ src/modelinfo/VehicleModelInfo.cpp | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/modelinfo') diff --git a/src/modelinfo/PedModelInfo.cpp b/src/modelinfo/PedModelInfo.cpp index 60c63114..117fd378 100644 --- a/src/modelinfo/PedModelInfo.cpp +++ b/src/modelinfo/PedModelInfo.cpp @@ -8,6 +8,7 @@ #include "NodeName.h" #include "VisibilityPlugins.h" #include "ModelInfo.h" +#include "custompipes.h" void CPedModelInfo::DeleteRwObject(void) @@ -91,8 +92,10 @@ CPedModelInfo::findLimbsCb(RpAtomic *atomic, void *data) void CPedModelInfo::SetClump(RpClump *clump) { +#ifdef EXTENDED_PIPELINES + CustomPipes::AttachRimPipe(clump); +#endif #ifdef PED_SKIN - // CB has to be set here before atomics are detached from clump if(strncmp(GetName(), "player", 7) == 0) RpClumpForAllAtomics(clump, SetAtomicRendererCB, (void*)CVisibilityPlugins::RenderPlayerCB); diff --git a/src/modelinfo/SimpleModelInfo.cpp b/src/modelinfo/SimpleModelInfo.cpp index 32204500..416bdad5 100644 --- a/src/modelinfo/SimpleModelInfo.cpp +++ b/src/modelinfo/SimpleModelInfo.cpp @@ -3,6 +3,7 @@ #include "General.h" #include "Camera.h" #include "ModelInfo.h" +#include "custompipes.h" #define LOD_DISTANCE (300.0f) @@ -75,6 +76,10 @@ CSimpleModelInfo::SetAtomic(int n, RpAtomic *atomic) RpGeometry *geo = RpAtomicGetGeometry(atomic); RpGeometrySetFlags(geo, RpGeometryGetFlags(geo) & ~rpGEOMETRYLIGHT); } + +#ifdef EXTENDED_PIPELINES + CustomPipes::AttachWorldPipe(atomic); +#endif } void diff --git a/src/modelinfo/VehicleModelInfo.cpp b/src/modelinfo/VehicleModelInfo.cpp index d8b388d5..a024bb40 100644 --- a/src/modelinfo/VehicleModelInfo.cpp +++ b/src/modelinfo/VehicleModelInfo.cpp @@ -19,6 +19,7 @@ #include "Bike.h" #include "ModelIndices.h" #include "ModelInfo.h" +#include "custompipes.h" int8 CVehicleModelInfo::ms_compsToUse[2] = { -2, -2 }; int8 CVehicleModelInfo::ms_compsUsed[2]; @@ -1037,6 +1038,10 @@ CVehicleModelInfo::SetEnvironmentMap(void) SetEnvironmentMapCB(wheelmi->m_atomics[i], m_envMap); } } + +#ifdef EXTENDED_PIPELINES + CustomPipes::AttachVehiclePipe(m_clump); +#endif } void -- cgit v1.2.3