Change rendering of patches to map to ellipsoids instead of spheres.

This commit is contained in:
Kalle Bladin
2016-04-27 16:16:26 -04:00
parent 0c3f8a323c
commit 8af4e1ddce
8 changed files with 88 additions and 20 deletions
@@ -52,7 +52,7 @@ namespace openspace {
RenderableGlobe::RenderableGlobe(const ghoul::Dictionary& dictionary)
: DistanceSwitch()
, _rotation("rotation", "Rotation", 0, 0, 360)
, _ellipsoid(Vec3(6.3e6))
, _ellipsoid(Vec3(6378137.0, 6378137.0, 6356752.314245)) // Earth's radii
{
std::string name;
bool success = dictionary.getValue(SceneGraphNode::KeyName, name);