Clean up
This commit is contained in:
parent
db4be24897
commit
9914308726
@ -216,8 +216,7 @@ namespace glm
|
|||||||
assert(aspect != static_cast<T>(0));
|
assert(aspect != static_cast<T>(0));
|
||||||
assert(zFar != zNear);
|
assert(zFar != zNear);
|
||||||
|
|
||||||
T const rad = fovy;
|
T const tanHalfFovy = tan(fovy / static_cast<T>(2));
|
||||||
T const tanHalfFovy = tan(rad / static_cast<T>(2));
|
|
||||||
|
|
||||||
tmat4x4<T, defaultp> Result(static_cast<T>(0));
|
tmat4x4<T, defaultp> Result(static_cast<T>(0));
|
||||||
Result[0][0] = static_cast<T>(1) / (aspect * tanHalfFovy);
|
Result[0][0] = static_cast<T>(1) / (aspect * tanHalfFovy);
|
||||||
|
Loading…
Reference in New Issue
Block a user