mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-10 05:32:18 -06:00
allow cutoff to be disabled by setting it to 0
This commit is contained in:
@@ -548,10 +548,13 @@ void PlanetaryTrailTileProvider::update() {
|
||||
if (_start + feature._time > now) {
|
||||
break;
|
||||
}
|
||||
double opacity = 1.0 - glm::smoothstep(
|
||||
static_cast<double>(_start + feature._time),
|
||||
static_cast<double>(_start + feature._time + _cutoff),
|
||||
now);
|
||||
double opacity = 1.0;
|
||||
if (_cutoff > 0) {
|
||||
opacity -= glm::smoothstep(
|
||||
static_cast<double>(_start + feature._time),
|
||||
static_cast<double>(_start + feature._time + _cutoff),
|
||||
now);
|
||||
}
|
||||
points.push_back({ feature._lat, feature._lon, opacity });
|
||||
last = feature;
|
||||
index++;
|
||||
|
||||
Reference in New Issue
Block a user