Fixed bug preventing atm's disabling option.

This commit is contained in:
Jonathas Costa
2017-07-27 15:25:52 -04:00
parent efeca7eac6
commit 49c8af702b
4 changed files with 6 additions and 21 deletions
@@ -1583,7 +1583,9 @@ bool AtmosphereDeferredcaster::isAtmosphereInFrustum(const double * MVMatrix, co
return false;
} else if ((glm::dot(nearNormal, position) + nearDistance) < -radius) {
return false;
} /*else if ((glm::dot(farNormal, position) + farDistance) < -radius) {
}
// The far plane testing is disabled because the atm has no depth.
/*else if ((glm::dot(farNormal, position) + farDistance) < -radius) {
return false;
}*/
@@ -545,8 +545,6 @@ namespace openspace {
OsEng.renderEngine().deferredcasterManager().detachDeferredcaster(*_deferredcaster.get());
}
};
onEnabledChange(onChange);
}
return isReady();