mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 13:56:24 +02:00
remove some dead code
This commit is contained in:
parent
110adc5c22
commit
0b2bf8bda8
2 changed files with 1 additions and 19 deletions
|
@ -229,8 +229,6 @@ bool LODManager::shouldRender(const RenderArgs* args, const AABox& bounds) {
|
|||
static bool shouldRenderTableNeedsBuilding = true;
|
||||
static QMap<float, float> shouldRenderTable;
|
||||
if (shouldRenderTableNeedsBuilding) {
|
||||
qDebug() << "LODManager::shouldRender() rebuilding table!";
|
||||
|
||||
float SMALLEST_SCALE_IN_TABLE = 0.001f; // 1mm is plenty small
|
||||
float scale = maxScale;
|
||||
float factor = 1.0f;
|
||||
|
@ -256,14 +254,7 @@ bool LODManager::shouldRender(const RenderArgs* args, const AABox& bounds) {
|
|||
visibleDistanceAtClosestScale *= 2.0f;
|
||||
}
|
||||
|
||||
bool result = distanceToCamera <= visibleDistanceAtClosestScale;
|
||||
|
||||
/*
|
||||
qDebug() << "LODManager::shouldRender() bounds:" << bounds << "result:" << result
|
||||
<< "distanceToCamera:" << distanceToCamera << "visibleDistanceAtClosestScale:" << visibleDistanceAtClosestScale;
|
||||
*/
|
||||
|
||||
return result;
|
||||
return distanceToCamera <= visibleDistanceAtClosestScale;
|
||||
};
|
||||
|
||||
// TODO: This is essentially the same logic used to render octree cells, but since models are more detailed then octree cells
|
||||
|
|
|
@ -230,27 +230,18 @@ public:
|
|||
|
||||
class CullItems {
|
||||
public:
|
||||
CullItems() {
|
||||
qDebug() << "CullItems() created... ";
|
||||
}
|
||||
void run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems, ItemIDsBounds& outItems);
|
||||
typedef Job::ModelIO<CullItems, ItemIDsBounds, ItemIDsBounds> JobModel;
|
||||
};
|
||||
|
||||
class CullItemsOpaque {
|
||||
public:
|
||||
CullItemsOpaque() {
|
||||
qDebug() << "CullItemsOpaque() created... ";
|
||||
}
|
||||
void run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems, ItemIDsBounds& outItems);
|
||||
typedef Job::ModelIO<CullItemsOpaque, ItemIDsBounds, ItemIDsBounds> JobModel;
|
||||
};
|
||||
|
||||
class CullItemsTransparent {
|
||||
public:
|
||||
CullItemsTransparent() {
|
||||
qDebug() << "CullItemsTransparent() created... ";
|
||||
}
|
||||
void run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ItemIDsBounds& inItems, ItemIDsBounds& outItems);
|
||||
typedef Job::ModelIO<CullItemsTransparent, ItemIDsBounds, ItemIDsBounds> JobModel;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue