mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 19:29:04 -05:00
Fixed bug preventing atm's disabling option.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user