mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
frustumLH compile error fix.
This commit is contained in:
parent
8200f815bf
commit
2edd8b8d44
@ -274,8 +274,8 @@ namespace glm
|
||||
Result[2][3] = static_cast<T>(1);
|
||||
|
||||
#ifdef GLM_DEPTH_ZERO_TO_ONE
|
||||
Result[2][2] = farVal / (zFar - nearVal);
|
||||
Result[3][2] = -(farVal * nearVal) / (zFar - nearVal);
|
||||
Result[2][2] = farVal / (farVal - nearVal);
|
||||
Result[3][2] = -(farVal * nearVal) / (farVal - nearVal);
|
||||
#else
|
||||
Result[2][2] = (farVal + nearVal) / (farVal - nearVal);
|
||||
Result[3][2] = - (static_cast<T>(2) * farVal * nearVal) / (farVal - nearVal);
|
||||
|
Loading…
Reference in New Issue
Block a user