Refactored UpdateProjectionMatrix(), SetTargetState() now launches the transition

This commit is contained in:
Vladyslav Baranovskyi
2024-06-26 20:59:06 +03:00
parent a696ae2c7f
commit 656350d790
3 changed files with 19 additions and 12 deletions

View File

@@ -56,4 +56,10 @@ namespace OpenVulkano::Scene
static_cast<MorphableCamera*>(GetCamera())->SetMorphState(newState);
}
}
void MorphableCameraController::SetTargetState(bool toPerspective)
{
m_targetMorphStatePerspective = toPerspective;
m_isMorphing = true;
}
}