Small fade fix

Fade constellation boundaries and constellations figures fix.
pull/110/head
Alexell 2017-03-02 21:20:39 +03:00 committed by Hleb Valoshka
parent d85fde1eac
commit 53b79871b0
1 changed files with 2 additions and 2 deletions

View File

@ -3233,7 +3233,7 @@ void Renderer::draw(const Observer& observer,
/* We'll linearly fade the lines as a function of the observer's
distance to the origin of coordinates: */
float opacity = 1.0f;
float dist = observerPosLY.norm();
float dist = observerPosLY.norm() * 1.6e4f;
if (dist > MaxAsterismLinesConstDist)
{
opacity = clamp((MaxAsterismLinesConstDist - dist) /
@ -3279,7 +3279,7 @@ void Renderer::draw(const Observer& observer,
/* We'll linearly fade the boundaries as a function of the
observer's distance to the origin of coordinates: */
float opacity = 1.0f;
float dist = observerPosLY.norm() * 1e6f;
float dist = observerPosLY.norm() * 1.6e4f;
if (dist > MaxAsterismLabelsConstDist)
{
opacity = clamp((MaxAsterismLabelsConstDist - dist) /