summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-13 12:53:19 +0100
committeraap <aap@papnet.eu>2020-12-13 12:53:19 +0100
commit35cac6b93b5bdb859a47fe266686bb99163eba46 (patch)
treecf18ae0ea5cdbbe1e27c6073f3c29db30e3b498c /src/render
parentstyle change (diff)
downloadre3-35cac6b93b5bdb859a47fe266686bb99163eba46.tar
re3-35cac6b93b5bdb859a47fe266686bb99163eba46.tar.gz
re3-35cac6b93b5bdb859a47fe266686bb99163eba46.tar.bz2
re3-35cac6b93b5bdb859a47fe266686bb99163eba46.tar.lz
re3-35cac6b93b5bdb859a47fe266686bb99163eba46.tar.xz
re3-35cac6b93b5bdb859a47fe266686bb99163eba46.tar.zst
re3-35cac6b93b5bdb859a47fe266686bb99163eba46.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Renderer.cpp13
-rw-r--r--src/render/Renderer.h8
2 files changed, 11 insertions, 10 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index f8dbed1e..78977a9a 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -61,14 +61,6 @@ CVehicle *CRenderer::m_pFirstPersonVehicle;
bool CRenderer::m_loadingPriority;
float CRenderer::ms_lodDistScale = 1.2f;
-#ifdef FIX_BUGS
-#define LOD_DISTANCE (300.0f*TheCamera.LODDistMultiplier)
-#else
-#define LOD_DISTANCE 300.0f
-#endif
-#define FADE_DISTANCE 20.0f
-#define STREAM_DISTANCE 30.0f
-
void
CRenderer::Init(void)
@@ -711,12 +703,13 @@ CRenderer::RenderOneBuilding(CEntity *ent, float camdist)
{
if(ent->m_rwObject == nil)
return;
+
+ ent->bImBeingRendered = true; // TODO: this seems wrong, but do we even need it?
+
assert(RwObjectGetType(ent->m_rwObject) == rpATOMIC);
RpAtomic *atomic = (RpAtomic*)ent->m_rwObject;
CSimpleModelInfo *mi = (CSimpleModelInfo*)CModelInfo::GetModelInfo(ent->GetModelIndex());
- ent->bImBeingRendered = true; // TODO: this seems wrong, but do we even need it?
-
int pass = PASS_BLEND;
if(mi->m_additive) // very questionable
pass = PASS_ADD;
diff --git a/src/render/Renderer.h b/src/render/Renderer.h
index b579bb4c..c54c0dbe 100644
--- a/src/render/Renderer.h
+++ b/src/render/Renderer.h
@@ -2,6 +2,14 @@
class CEntity;
+#ifdef FIX_BUGS
+#define LOD_DISTANCE (300.0f*TheCamera.LODDistMultiplier)
+#else
+#define LOD_DISTANCE 300.0f
+#endif
+#define FADE_DISTANCE 20.0f
+#define STREAM_DISTANCE 30.0f
+
extern bool gbShowCollisionPolys;
extern bool gbShowCollisionLines;
extern bool gbBigWhiteDebugLightSwitchedOn;