]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Tweak the view matrix in interactive control mode
authorMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 22:38:07 +0000 (00:38 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 22:38:07 +0000 (00:38 +0200)
source/control.c

index b268f36f26eab7063bf4622c2da7ef3453e518c7..533bb8093924de35b995c69ce7e06d2c6e3c82ff 100644 (file)
@@ -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[] =
 {