mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
THursday morning the frustum culling seems broken in one particular angle
This commit is contained in:
parent
6922c9adf0
commit
355b8ee40d
9 changed files with 12 additions and 10 deletions
|
@ -3600,7 +3600,7 @@ public:
|
|||
static render::ItemID _item; // unique WorldBoxRenderData
|
||||
};
|
||||
|
||||
render::ItemID WorldBoxRenderData::_item = 0;
|
||||
render::ItemID WorldBoxRenderData::_item { render::Item::INVALID_ITEM_ID };
|
||||
|
||||
namespace render {
|
||||
template <> const ItemKey payloadGetKey(const WorldBoxRenderData::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); }
|
||||
|
|
|
@ -239,7 +239,7 @@ protected:
|
|||
|
||||
virtual void updatePalms();
|
||||
|
||||
render::ItemID _renderItemID;
|
||||
render::ItemID _renderItemID{ render::Item::INVALID_ITEM_ID };
|
||||
|
||||
ThreadSafeValueCache<glm::vec3> _leftPalmPositionCache { glm::vec3() };
|
||||
ThreadSafeValueCache<glm::quat> _leftPalmRotationCache { glm::quat() };
|
||||
|
|
|
@ -92,7 +92,7 @@ public:
|
|||
protected:
|
||||
float updatePulse();
|
||||
|
||||
render::ItemID _renderItemID;
|
||||
render::ItemID _renderItemID{ render::Item::INVALID_ITEM_ID };
|
||||
|
||||
bool _isLoaded;
|
||||
float _alpha;
|
||||
|
|
|
@ -96,7 +96,7 @@ private:
|
|||
QVector<QVector<glm::vec3>> _points;
|
||||
bool _dimensionsInitialized = true;
|
||||
|
||||
render::ItemID _myMetaItem;
|
||||
render::ItemID _myMetaItem{ render::Item::INVALID_ITEM_ID };
|
||||
|
||||
bool _showCollisionHull = false;
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ protected:
|
|||
void createPipelines();
|
||||
|
||||
render::ScenePointer _scene;
|
||||
render::ItemID _renderItemId;
|
||||
render::ItemID _renderItemId{ render::Item::INVALID_ITEM_ID };
|
||||
|
||||
NetworkTexturePointer _texture;
|
||||
gpu::PipelinePointer _untexturedPipeline;
|
||||
|
|
|
@ -129,7 +129,7 @@ private:
|
|||
NetworkTexturePointer _zTexture;
|
||||
|
||||
const int MATERIAL_GPU_SLOT = 3;
|
||||
render::ItemID _myItem;
|
||||
render::ItemID _myItem{ render::Item::INVALID_ITEM_ID };
|
||||
static gpu::PipelinePointer _pipeline;
|
||||
|
||||
ShapeInfo _shapeInfo;
|
||||
|
|
|
@ -54,7 +54,7 @@ private:
|
|||
Model* _model;
|
||||
bool _needsInitialSimulation;
|
||||
|
||||
render::ItemID _myMetaItem;
|
||||
render::ItemID _myMetaItem{ render::Item::INVALID_ITEM_ID };
|
||||
};
|
||||
|
||||
#endif // hifi_RenderableZoneEntityItem_h
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
protected:
|
||||
std::shared_ptr<AnimDebugDrawData> _animDebugDrawData;
|
||||
std::shared_ptr<AnimDebugDrawPayload> _animDebugDrawPayload;
|
||||
render::ItemID _itemID;
|
||||
render::ItemID _itemID{ render::Item::INVALID_ITEM_ID };
|
||||
|
||||
static gpu::PipelinePointer _pipeline;
|
||||
|
||||
|
|
|
@ -109,11 +109,13 @@ Octree::Indices Octree::indexConcreteCellPath(const Locations& path) const {
|
|||
Octree::Index Octree::allocateCell(Index parent, const Location& location) {
|
||||
|
||||
if (_cells[parent].hasChild(location.octant())) {
|
||||
assert(_cells[parent].child(location.octant()) == INVALID_CELL);
|
||||
return _cells[parent].child(location.octant());
|
||||
}
|
||||
|
||||
assert(_cells[parent].getlocation().child(location.octant()) == location);
|
||||
if (!(_cells[parent].getlocation().child(location.octant()) == location)) {
|
||||
auto parentLoc = _cells[parent].getlocation();
|
||||
assert(false);
|
||||
}
|
||||
|
||||
Index newIndex;
|
||||
if (_freeCells.empty()) {
|
||||
|
|
Loading…
Reference in a new issue