use correct ViewFrustum overlap tests

This commit is contained in:
Andrew Meadows 2016-02-23 10:24:23 -08:00
parent 2591c5ee3e
commit 918880b058

View file

@ -91,7 +91,7 @@ void OctreeHeadlessViewer::queryOctree() {
if (foundRootDetails) { if (foundRootDetails) {
AACube serverBounds(glm::vec3(rootDetails.x, rootDetails.y, rootDetails.z), rootDetails.s); AACube serverBounds(glm::vec3(rootDetails.x, rootDetails.y, rootDetails.z), rootDetails.s);
if ((bool)(_viewFrustum.cubeInFrustum(serverBounds))) { if (_viewFrustum.cubeTouchesKeyhole(serverBounds)) {
inViewServers++; inViewServers++;
} }
} }
@ -162,7 +162,7 @@ void OctreeHeadlessViewer::queryOctree() {
if (foundRootDetails) { if (foundRootDetails) {
AACube serverBounds(glm::vec3(rootDetails.x, rootDetails.y, rootDetails.z), rootDetails.s); AACube serverBounds(glm::vec3(rootDetails.x, rootDetails.y, rootDetails.z), rootDetails.s);
inView = (bool)(_viewFrustum.cubeInFrustum(serverBounds)); inView = _viewFrustum.cubeInFrustum(serverBounds);
} }
if (inView) { if (inView) {