X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fcamera_backend.cpp;fp=source%2Fbackends%2Fvulkan%2Fcamera_backend.cpp;h=9eba4289ce1eb9166569ef1f6e01589c5abb3f99;hb=99ca354f18119f82f1adeca100cd665a8f640317;hp=0000000000000000000000000000000000000000;hpb=4cd245dafe6a7ee5c93edca5aee2d146f1155309;p=libs%2Fgl.git diff --git a/source/backends/vulkan/camera_backend.cpp b/source/backends/vulkan/camera_backend.cpp new file mode 100644 index 00000000..9eba4289 --- /dev/null +++ b/source/backends/vulkan/camera_backend.cpp @@ -0,0 +1,17 @@ +#include "camera_backend.h" +#include "matrix.h" + +namespace Msp { +namespace GL { + +void VulkanCamera::adjust_projection_matrix(Matrix &proj_matrix) +{ + Matrix adjust; + adjust(1, 1) = -1.0f; + adjust(2, 2) = 0.5f; + adjust(2, 3) = 0.5f; + proj_matrix = adjust*proj_matrix; +} + +} // namespace GL +} // namespace Msp