Bring back fading of sphere with only fade out threshold specified

Without this, the milkyway sphere does not fade out at all
This commit is contained in:
Emma Broman
2021-01-11 10:41:13 +01:00
parent ee29a704af
commit cc825143a3

View File

@@ -282,7 +282,8 @@ RenderableSphere::RenderableSphere(const ghoul::Dictionary& dictionary)
addProperty(_fadeInThreshold);
}
if (dictionary.hasKey(FadeInThresholdInfo.identifier)) {
if (dictionary.hasKey(FadeInThresholdInfo.identifier) ||
dictionary.hasKey(FadeOutThresholdInfo.identifier)) {
_disableFadeInDistance.set(false);
addProperty(_disableFadeInDistance);
}