Merge pull request 'Morphable Camera & Controller' (#56) from morphable_camera_and_controller into master

Reviewed-on: https://git.madvoxel.net/OpenVulkano/OpenVulkano/pulls/56
Reviewed-by: Georg Hagen <georg.hagen@madvoxel.com>
This commit is contained in:
Vladyslav_Baranovskyi_EXT
2024-06-26 20:32:15 +02:00
7 changed files with 214 additions and 29 deletions

View File

@@ -233,7 +233,7 @@ namespace OpenVulkano::Scene
return 2.0f * atanf(tanf(m_fov * 0.5f) * m_aspect);
}
void UpdateProjectionMatrix() final
void UpdateProjectionMatrix()
{
m_projection = Math::Utils::perspectiveRH_ZO(m_fov, m_aspect, m_nearPlane, m_farPlane);
UpdateViewProjectionMatrix();