quakeforge/include/QF/Vulkan/projection.h
Bill Currie 562f3c2fe2 [vulkan] Add tan and cos perspective projection
The tan and cos versions allow specifying the fov directly from the tan
or cos of the half angle, useful for dealing with lights.
2021-04-29 19:27:01 +09:00

12 lines
440 B
C

#ifndef __QF_Vulkan_projection_h
#define __QF_Vulkan_projection_h
#include "QF/simd/types.h"
void QFV_Orthographic (mat4f_t proj, float xmin, float xmax,
float ymin, float ymax, float znear, float zfar);
void QFV_PerspectiveTan (mat4f_t proj, float fov, float aspect);
void QFV_PerspectiveCos (mat4f_t proj, float fov, float aspect);
void QFV_Perspective (mat4f_t proj, float fov, float aspect);
#endif//__QF_Vulkan_projection_h