mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-07 12:10:52 -06:00
Remove warnings on MSVC
This commit is contained in:
@@ -422,8 +422,12 @@ void GeoJsonProperties::createFromDictionary(const ghoul::Dictionary& dictionary
|
||||
// Distances are computed based on a certain lat/long angle size
|
||||
constexpr float DefaultAngle = glm::radians(1.f);
|
||||
constexpr float MaxAngle = glm::radians(45.f);
|
||||
float defaultDistance = globe.ellipsoid().longitudalDistance(0.f, 0.f, DefaultAngle);
|
||||
float maxDistance = globe.ellipsoid().longitudalDistance(0.f, 0.f, MaxAngle);
|
||||
float defaultDistance = static_cast<float>(
|
||||
globe.ellipsoid().longitudalDistance(0.f, 0.f, DefaultAngle)
|
||||
);
|
||||
float maxDistance = static_cast<float>(
|
||||
globe.ellipsoid().longitudalDistance(0.f, 0.f, MaxAngle)
|
||||
);
|
||||
tessellation.distance = defaultDistance;
|
||||
tessellation.distance.setMaxValue(maxDistance);
|
||||
|
||||
|
||||
@@ -575,8 +575,6 @@ std::vector<std::vector<glm::vec3>> GlobeGeometryFeature::createLineGeometry() {
|
||||
continue;
|
||||
}
|
||||
|
||||
float length = static_cast<float>(glm::distance(lastPos, v));
|
||||
|
||||
if (_properties.tessellationEnabled()) {
|
||||
// Tessellate.
|
||||
// But first, determine the step size for the tessellation (larger
|
||||
|
||||
Reference in New Issue
Block a user