mirror of
https://github.com/overte-org/overte.git
synced 2025-04-13 11:22:10 +02:00
Make comment more coherent
This commit is contained in:
parent
68f6e466bf
commit
f04c3b5840
1 changed files with 4 additions and 4 deletions
|
@ -127,9 +127,9 @@ void FetchSpatialTree::run(const RenderContextPointer& renderContext, const Inpu
|
||||||
// Octree selection!
|
// Octree selection!
|
||||||
float threshold = 0.0f;
|
float threshold = 0.0f;
|
||||||
if (queryFrustum.isPerspective()) {
|
if (queryFrustum.isPerspective()) {
|
||||||
//TODO: It was:
|
// TODO: Before our LOD took distance into account it used:
|
||||||
// threshold = args->_lodFarAngleHalfTan;
|
// threshold = args->_lodAngleHalfTan;
|
||||||
// But now should be dependent on distance
|
// We should make it dependent on distance in the future.
|
||||||
threshold = args->_lodFarAngleHalfTan;
|
threshold = args->_lodFarAngleHalfTan;
|
||||||
if (frustumResolution.y > 0) {
|
if (frustumResolution.y > 0) {
|
||||||
threshold = glm::max(queryFrustum.getFieldOfView() / frustumResolution.y, threshold);
|
threshold = glm::max(queryFrustum.getFieldOfView() / frustumResolution.y, threshold);
|
||||||
|
@ -426,4 +426,4 @@ void ClearContainingZones::run(const RenderContextPointer& renderContext) {
|
||||||
// of the next frame
|
// of the next frame
|
||||||
CullTest::_prevContainingZones = CullTest::_containingZones;
|
CullTest::_prevContainingZones = CullTest::_containingZones;
|
||||||
CullTest::_containingZones.clear();
|
CullTest::_containingZones.clear();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue