Skip to content

Commit

Permalink
fix aberration factor not taken into account for milkyway texture (#4102
Browse files Browse the repository at this point in the history
)
  • Loading branch information
henrysky authored Jan 25, 2025
1 parent ca42446 commit c054b2c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/core/StelCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3173,14 +3173,10 @@ vec3 applyAberrationToViewDir(vec3 viewDir)

void StelCore::setAberrationUniforms(QOpenGLShaderProgram& program) const
{
Vec3d velocity;
Vec3d velocity(0.);
if(getUseAberration())
{
velocity = cachedAberrationVec;
}
else
{
velocity = Vec3d(0,0,0);
velocity = getAberrationFactor() * cachedAberrationVec;
}
program.setUniformValue("STELCORE_currentPlanetBarycentricEclipticVelocity", velocity.toQVector());
}

0 comments on commit c054b2c

Please sign in to comment.