]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/camera_backend.cpp
Initial implementation of Vulkan backend
[libs/gl.git] / source / backends / vulkan / camera_backend.cpp
1 #include "camera_backend.h"
2 #include "matrix.h"
3
4 namespace Msp {
5 namespace GL {
6
7 void VulkanCamera::adjust_projection_matrix(Matrix &proj_matrix)
8 {
9         Matrix adjust;
10         adjust(1, 1) = -1.0f;
11         adjust(2, 2) = 0.5f;
12         adjust(2, 3) = 0.5f;
13         proj_matrix = adjust*proj_matrix;
14 }
15
16 } // namespace GL
17 } // namespace Msp