[#42][Fix] fix up vector, camera coordinate system, depth
Vulkan uses a left handed coordinate system. Thus, we need to define GLM_FORCE_LEFT_HANDED and adjust left and right movement of the camera. We also need to define GLM_DEPTH_ZERO_TO_ONE for the depth values which range between 0 and 1 in Vulkan. Although the up vector is pointing upwards again, it seems that the rendered scene is not flipped along y axis... is this correct?
parent
9fed028f
No related branches found
No related tags found
Showing
- modules/camera/include/vkcv/camera/Camera.hpp 2 additions, 0 deletionsmodules/camera/include/vkcv/camera/Camera.hpp
- modules/camera/include/vkcv/camera/CameraManager.hpp 2 additions, 2 deletionsmodules/camera/include/vkcv/camera/CameraManager.hpp
- modules/camera/src/vkcv/camera/Camera.cpp 3 additions, 3 deletionsmodules/camera/src/vkcv/camera/Camera.cpp
- modules/camera/src/vkcv/camera/CameraManager.cpp 1 addition, 1 deletionmodules/camera/src/vkcv/camera/CameraManager.cpp
- modules/camera/src/vkcv/camera/TrackballCamera.cpp 2 additions, 2 deletionsmodules/camera/src/vkcv/camera/TrackballCamera.cpp
Please register or sign in to comment