Make comment more coherent

This commit is contained in:
Julian Groß 2023-10-16 21:24:26 +02:00 committed by GitHub
parent 68f6e466bf
commit f04c3b5840
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,9 +127,9 @@ void FetchSpatialTree::run(const RenderContextPointer& renderContext, const Inpu
// Octree selection!
float threshold = 0.0f;
if (queryFrustum.isPerspective()) {
//TODO: It was:
// threshold = args->_lodFarAngleHalfTan;
// But now should be dependent on distance
// TODO: Before our LOD took distance into account it used:
// threshold = args->_lodAngleHalfTan;
// We should make it dependent on distance in the future.
threshold = args->_lodFarAngleHalfTan;
if (frustumResolution.y > 0) {
threshold = glm::max(queryFrustum.getFieldOfView() / frustumResolution.y, threshold);
@ -426,4 +426,4 @@ void ClearContainingZones::run(const RenderContextPointer& renderContext) {
// of the next frame
CullTest::_prevContainingZones = CullTest::_containingZones;
CullTest::_containingZones.clear();
}
}