mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-08 04:20:14 -05:00
Start removing warnings
This commit is contained in:
@@ -66,7 +66,7 @@ int Distance::getDesiredLevel(const Chunk& chunk, const RenderData& data) const
|
||||
double scaleFactor =
|
||||
globe.generalProperties().lodScaleFactor * ellipsoid.minimumRadius();
|
||||
double projectedScaleFactor = scaleFactor / distance;
|
||||
int desiredLevel = ceil(log2(projectedScaleFactor));
|
||||
int desiredLevel = static_cast<int>(ceil(log2(projectedScaleFactor)));
|
||||
return desiredLevel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user