Fix computation of camera distance
authorOwen W. Taylor <otaylor@redhat.com>
Thu, 22 Jan 2009 14:17:16 +0000 (14:17 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 22 Jan 2009 14:17:16 +0000 (14:17 +0000)
commitf409b58e89b17267fedc4121f94e906b54ea7b4c
treea08dfc03292751ee07ffe60f149c92c060c641c1
parenta74369e309f414ef812e2d741e18cd0243a6abff
Fix computation of camera distance

Compute the value of the camera distance as exactly half the xx
component of the projection matrix. The heuristically derived
value for 60 degrees was off by about 0.016%, causing noticeable
blurring, and other field of view angles which didn't have the
heuristic adjustment off by much more.

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/cogl/gl/cogl.c