载入中...
搜索中...
未找到
ClipSpace.h
浏览该文件的文档.
1#pragma once
2
3#include <glm/gtc/matrix_transform.hpp>
4
5namespace eve {
6namespace graphics {
7
20inline glm::mat4 perspectiveVulkanRH_ZO(float fovyRad, float aspect, float zNear, float zFar) {
21 glm::mat4 p = glm::perspectiveRH_ZO(fovyRad, aspect, zNear, zFar);
22 p[1][1] *= -1.f;
23 return p;
24}
25
28inline glm::mat4 orthoVulkanRH_ZO(float left, float right, float bottom, float top, float zNear,
29 float zFar) {
30 glm::mat4 p = glm::orthoRH_ZO(left, right, bottom, top, zNear, zFar);
31 p[1][1] *= -1.f;
32 return p;
33}
34
35} // namespace graphics
36} // namespace eve
glm::vec4 p[6]
glm::mat4 perspectiveVulkanRH_ZO(float fovyRad, float aspect, float zNear, float zFar)
Right-handed, zero-to-one depth perspective for Vulkan swapchains.
Definition ClipSpace.h:20
glm::mat4 orthoVulkanRH_ZO(float left, float right, float bottom, float top, float zNear, float zFar)
Definition ClipSpace.h:28
Definition Build.cpp:11