]> git.tdb.fi Git - libs/gl.git/blob - source/backends/vulkan/camera_backend.cpp
Refactor handling of viewport Y axis
[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(2, 2) = 0.5f;
11         adjust(2, 3) = 0.5f;
12         proj_matrix = adjust*proj_matrix;
13 }
14
15 } // namespace GL
16 } // namespace Msp