Fixing perspective matrices
This commit is contained in:
@@ -26,7 +26,7 @@ static Matrix4 perspectiveProjection(float fov, float aspect, float nearPlane, f
|
||||
{
|
||||
0.0f,
|
||||
0.0f,
|
||||
nearPlane / (nearPlane - farPlane),
|
||||
(nearPlane + farPlane) / (nearPlane - farPlane),
|
||||
-1.0f,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
#pragma once
|
||||
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
|
||||
#define GLM_FORCE_LEFT_HANDED
|
||||
#ifdef WIN32
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable : 4201)
|
||||
|
||||
Reference in New Issue
Block a user