From 133bbd81febe7d26ae849087b2ca9e6c655e7a3d Mon Sep 17 00:00:00 2001 From: ZappoMan Date: Mon, 15 Jul 2013 01:42:21 -0700 Subject: [PATCH] small spacing change --- libraries/voxels/src/ViewFrustum.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libraries/voxels/src/ViewFrustum.cpp b/libraries/voxels/src/ViewFrustum.cpp index 415a064e5d..dd4562cd8d 100644 --- a/libraries/voxels/src/ViewFrustum.cpp +++ b/libraries/voxels/src/ViewFrustum.cpp @@ -532,8 +532,6 @@ const int hullVertexLookup[MAX_POSSIBLE_COMBINATIONS][MAX_PROJECTED_POLYGON_VERT VoxelProjectedPolygon ViewFrustum::getProjectedPolygon(const AABox& box) const { const glm::vec3& bottomNearRight = box.getCorner(); const glm::vec3& topFarLeft = box.getTopFarLeft(); - - int lookUp = ((_position.x < bottomNearRight.x) ) // 1 = right | compute 6-bit + ((_position.x > topFarLeft.x ) << 1) // 2 = left | code to + ((_position.y < bottomNearRight.y) << 2) // 4 = bottom | classify camera @@ -541,8 +539,6 @@ VoxelProjectedPolygon ViewFrustum::getProjectedPolygon(const AABox& box) const { + ((_position.z < bottomNearRight.z) << 4) // 16 = front/near | the 6 defining + ((_position.z > topFarLeft.z ) << 5); // 32 = back/far | planes - //printLog(">>>>>>>>> ViewFrustum::getProjectedPolygon() lookup=%d\n",lookUp); - int vertexCount = hullVertexLookup[lookUp][0]; //look up number of vertices VoxelProjectedPolygon projectedPolygon(vertexCount);