mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 11:17:32 +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) {
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue