Commit d82c5b6f by NTAuthority

SectorGrid: change _put_offset to 0 to properly handle frustum checks (the…

SectorGrid: change _put_offset to 0 to properly handle frustum checks (the following commit contains both dirt I encountered while working on this and, sadly, a new frustum implementation as I thought calculation was wrong and aap went 'wtf' as well)
parent 29656c20
......@@ -18,7 +18,9 @@ template <typename SectorDataType, size_t sectorBound, size_t sectorQuadTreeDept
struct SectorGrid
{
// Remember that we want to put the center of sector as point (0, 0, 0).
static constexpr size_t _put_offset = ( sectorBound / 2 );
// d-do we? this breaks anything at the edge of the frustum
//static constexpr size_t _put_offset = ( sectorBound / 2 );
static constexpr size_t _put_offset = 0;
inline SectorGrid( void )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment