From e86c27d54b6a19f8710fb748fe554f9d9de445c5 Mon Sep 17 00:00:00 2001 From: Safar Date: Mon, 1 Dec 2014 12:37:32 +1300 Subject: [PATCH] Removed my bug :) --- examples/gpu/source/math.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/gpu/source/math.c b/examples/gpu/source/math.c index 5dc9c58..2161cc6 100644 --- a/examples/gpu/source/math.c +++ b/examples/gpu/source/math.c @@ -108,8 +108,7 @@ void initProjectionMatrix(float* m, float fovy, float aspect, float near, float mp[0x8] = 0.0f; mp[0x9] = 0.0f; mp[0xA] = -(far+near)/(far-near); - mp[0xB] = -2.0f*-mp[0xA]; - + mp[0xB] = -2.0f*(far*near)/(far-near); mp[0xC] = 0.0f; mp[0xD] = 0.0f; mp[0xE] = -1.0f;