mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 19:29:04 -05:00
Cleanup in projection classes
This commit is contained in:
@@ -301,8 +301,11 @@ bool RenderableModelProjection::deinitialize() {
|
||||
}
|
||||
|
||||
void RenderableModelProjection::render(const RenderData& data) {
|
||||
if (!_programObject) return;
|
||||
if (!_textureProj) return;
|
||||
if (!_programObject)
|
||||
return;
|
||||
if (!_textureProj)
|
||||
return;
|
||||
|
||||
_programObject->activate();
|
||||
_frameCount++;
|
||||
|
||||
@@ -413,8 +416,13 @@ void RenderableModelProjection::imageProjectGPU() {
|
||||
}
|
||||
|
||||
void RenderableModelProjection::attitudeParameters(double time) {
|
||||
_stateMatrix = SpiceManager::ref().positionTransformMatrix(_source, _destination, time);
|
||||
_instrumentMatrix = SpiceManager::ref().positionTransformMatrix(_instrumentID, _destination, time);
|
||||
try {
|
||||
_stateMatrix = SpiceManager::ref().positionTransformMatrix(_source, _destination, time);
|
||||
_instrumentMatrix = SpiceManager::ref().positionTransformMatrix(_instrumentID, _destination, time);
|
||||
}
|
||||
catch (const SpiceManager::SpiceException& e) {
|
||||
return;
|
||||
}
|
||||
|
||||
_transform = glm::mat4(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user