mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 10:40:09 -06:00
Make the aberration correction specification for targetPosition in SpiceManager explicit by including a seprate class for it
This commit is contained in:
@@ -182,8 +182,8 @@ void RenderablePlanet::render(const RenderData& data)
|
||||
|
||||
|
||||
double lt;
|
||||
glm::dvec3 p;
|
||||
openspace::SpiceManager::ref().getTargetPosition("SUN", _target, "GALACTIC", "NONE", _time, p, lt);
|
||||
glm::dvec3 p =
|
||||
SpiceManager::ref().targetPosition("SUN", _target, "GALACTIC", SpiceManager::AberrationCorrection(), _time, lt);
|
||||
psc sun_pos = PowerScaledCoordinate::CreatePowerScaledCoordinate(p.x, p.y, p.z);
|
||||
|
||||
// setup the data to the shader
|
||||
|
||||
Reference in New Issue
Block a user