mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 10:00:18 +02:00
restor name: viewTest() --> frustumTest()
This commit is contained in:
parent
669cc75596
commit
706cf66240
1 changed files with 3 additions and 3 deletions
|
@ -237,7 +237,7 @@ void CullSpatialSelection::run(const SceneContextPointer& sceneContext, const Re
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
bool viewTest(const AABox& bound) {
|
bool frustumTest(const AABox& bound) {
|
||||||
if (_args->_viewFrustum->boxInFrustum(bound) == ViewFrustum::OUTSIDE) {
|
if (_args->_viewFrustum->boxInFrustum(bound) == ViewFrustum::OUTSIDE) {
|
||||||
_renderDetails._outOfView++;
|
_renderDetails._outOfView++;
|
||||||
return false;
|
return false;
|
||||||
|
@ -302,7 +302,7 @@ void CullSpatialSelection::run(const SceneContextPointer& sceneContext, const Re
|
||||||
auto& item = scene->getItem(id);
|
auto& item = scene->getItem(id);
|
||||||
if (_filter.test(item.getKey())) {
|
if (_filter.test(item.getKey())) {
|
||||||
ItemBound itemBound(id, item.getBound());
|
ItemBound itemBound(id, item.getBound());
|
||||||
if (test.viewTest(itemBound.bound)) {
|
if (test.frustumTest(itemBound.bound)) {
|
||||||
outItems.emplace_back(itemBound);
|
outItems.emplace_back(itemBound);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -316,7 +316,7 @@ void CullSpatialSelection::run(const SceneContextPointer& sceneContext, const Re
|
||||||
auto& item = scene->getItem(id);
|
auto& item = scene->getItem(id);
|
||||||
if (_filter.test(item.getKey())) {
|
if (_filter.test(item.getKey())) {
|
||||||
ItemBound itemBound(id, item.getBound());
|
ItemBound itemBound(id, item.getBound());
|
||||||
if (test.viewTest(itemBound.bound)) {
|
if (test.frustumTest(itemBound.bound)) {
|
||||||
if (test.solidAngleTest(itemBound.bound)) {
|
if (test.solidAngleTest(itemBound.bound)) {
|
||||||
outItems.emplace_back(itemBound);
|
outItems.emplace_back(itemBound);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue