Add todo comment from discussion in PR

This commit is contained in:
Malin E
2023-04-13 12:35:51 +02:00
parent 71caf31f02
commit a017006ec6

View File

@@ -682,6 +682,9 @@ void RenderableModel::render(const RenderData& data, RendererTasks&) {
// Formula from RenderableGlobe
constexpr double tfov = 0.5773502691896257;
constexpr int res = 2880;
// @TODO (malej 13-APR-23): This should only use the boundingSphere function once
// that takes the gui scale into account too for all renderables
const double maxDistance =
res * boundingSphere() * glm::compMax(data.modelTransform.scale) / tfov;