mirror of
https://github.com/lubosz/overte.git
synced 2025-04-27 19:35:29 +02:00
use cubeInKeyhole() where appropriate
This commit is contained in:
parent
9409339230
commit
9558258f64
2 changed files with 3 additions and 3 deletions
|
@ -3423,7 +3423,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node
|
|||
rootDetails.y * TREE_SCALE,
|
||||
rootDetails.z * TREE_SCALE) - glm::vec3(HALF_TREE_SCALE),
|
||||
rootDetails.s * TREE_SCALE);
|
||||
if ((bool)(_viewFrustum.cubeInFrustum(serverBounds))) {
|
||||
if (_viewFrustum.cubeTouchesKeyhole(serverBounds)) {
|
||||
inViewServers++;
|
||||
}
|
||||
}
|
||||
|
@ -3489,7 +3489,7 @@ void Application::queryOctree(NodeType_t serverType, PacketType packetType, Node
|
|||
rootDetails.s * TREE_SCALE);
|
||||
|
||||
|
||||
inView = (bool)(_viewFrustum.cubeInFrustum(serverBounds));
|
||||
inView = _viewFrustum.cubeTouchesKeyhole(serverBounds);
|
||||
} else {
|
||||
if (wantExtraDebugging) {
|
||||
qCDebug(interfaceapp) << "Jurisdiction without RootCode for node " << *node << ". That's unusual!";
|
||||
|
|
|
@ -459,7 +459,7 @@ float OctreeElement::getEnclosingRadius() const {
|
|||
}
|
||||
|
||||
ViewFrustum::location OctreeElement::computeViewLocation(const ViewFrustum& viewFrustum) const {
|
||||
return viewFrustum.cubeInFrustum(_cube);
|
||||
return viewFrustum.cubeInKeyhole(_cube);
|
||||
}
|
||||
|
||||
// There are two types of nodes for which we want to "render"
|
||||
|
|
Loading…
Reference in a new issue