mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-08 19:23:28 +02:00
use correct ViewFrustum overlap tests
This commit is contained in:
parent
2591c5ee3e
commit
918880b058
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ void OctreeHeadlessViewer::queryOctree() {
|
|||
|
||||
if (foundRootDetails) {
|
||||
AACube serverBounds(glm::vec3(rootDetails.x, rootDetails.y, rootDetails.z), rootDetails.s);
|
||||
if ((bool)(_viewFrustum.cubeInFrustum(serverBounds))) {
|
||||
if (_viewFrustum.cubeTouchesKeyhole(serverBounds)) {
|
||||
inViewServers++;
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ void OctreeHeadlessViewer::queryOctree() {
|
|||
|
||||
if (foundRootDetails) {
|
||||
AACube serverBounds(glm::vec3(rootDetails.x, rootDetails.y, rootDetails.z), rootDetails.s);
|
||||
inView = (bool)(_viewFrustum.cubeInFrustum(serverBounds));
|
||||
inView = _viewFrustum.cubeInFrustum(serverBounds);
|
||||
}
|
||||
|
||||
if (inView) {
|
||||
|
|
Loading…
Reference in a new issue