From b3cf076f4ed9c67eb2d03d38382ce7a5c4993dba Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 15 Dec 2015 00:38:07 +0200 Subject: [PATCH] Tweak the view matrix in interactive control mode --- source/control.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/control.c b/source/control.c index b268f36..533bb80 100644 --- a/source/control.c +++ b/source/control.c @@ -32,10 +32,10 @@ typedef struct InteractiveView static unsigned short frustum_indices[] = { 2, 1, 3, 0, 1, 0xFFFF, 3, 4, 2, 0, 4, 0xFFFF }; static float view_matrix[] = { - 0.70711f, 0.40825f, -0.57735f, 0.0f, - 0.0f, 0.81650f, 0.57735f, 0.0f, - 0.70711f, -0.40725f, 0.57735f, 0.0f, - -0.2f, 0.0f, -2.5f, 1.0f + 0.70711f, 0.23570f, -0.66667f, 0.0f, + 0.0f, 0.94281f, 0.33333f, 0.0f, + 0.70711f, -0.23570f, 0.66667f, 0.0f, + -0.2f, 0.0f, -2.0f, 1.0f }; static float projection_matrix[] = { -- 2.43.0