mirror of
https://github.com/g-truc/glm.git
synced 2024-11-23 01:14:34 +00:00
Update matrix_clip_space.inl
This commit is contained in:
parent
0bb41224f3
commit
80679fd523
@ -323,13 +323,13 @@ namespace glm
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
GLM_FUNC_QUALIFIER mat<4, 4, T, defaultp> perspective(T fovy, T aspect, T zNear, T zFar)
|
GLM_FUNC_QUALIFIER mat<4, 4, T, defaultp> perspective(T fovy, T aspect, T zNear, T zFar)
|
||||||
{
|
{
|
||||||
if GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL == GLM_CLIP_CONTROL_LH_ZO)
|
GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL == GLM_CLIP_CONTROL_LH_ZO)
|
||||||
return perspectiveLH_ZO(fovy, aspect, zNear, zFar);
|
return perspectiveLH_ZO(fovy, aspect, zNear, zFar);
|
||||||
else if GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL == GLM_CLIP_CONTROL_LH_NO)
|
else GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL == GLM_CLIP_CONTROL_LH_NO)
|
||||||
return perspectiveLH_NO(fovy, aspect, zNear, zFar);
|
return perspectiveLH_NO(fovy, aspect, zNear, zFar);
|
||||||
else if GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL == GLM_CLIP_CONTROL_RH_ZO)
|
else GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL == GLM_CLIP_CONTROL_RH_ZO)
|
||||||
return perspectiveRH_ZO(fovy, aspect, zNear, zFar);
|
return perspectiveRH_ZO(fovy, aspect, zNear, zFar);
|
||||||
else if GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL == GLM_CLIP_CONTROL_RH_NO)
|
else GLM_IF_CONSTEXPR(GLM_CONFIG_CLIP_CONTROL == GLM_CLIP_CONTROL_RH_NO)
|
||||||
return perspectiveRH_NO(fovy, aspect, zNear, zFar);
|
return perspectiveRH_NO(fovy, aspect, zNear, zFar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user