Commit fbd7e689e5952b33533ce2c40d9ee26616b6925f
authorMichel Pollet <buserror@gmail.com>
Sat, 16 Jun 2012 08:08:25 +0000 (09:08 +0100)
committerMichel Pollet <buserror@gmail.com>
Sat, 16 Jun 2012 08:08:25 +0000 (09:08 +0100)
For calculating perspective matrix

2 files changed:
examples/shared/libc3/src/c3camera.c
examples/shared/libc3/src/c3camera.h

index f4eef0ff87a4b851c34c1b8555723d25c3b69cef..a4e6257aecd11b35f42b14d2c5c0553f8747df91 100644 (file)
@@ -334,7 +334,7 @@ c3cam_reset(
     c->up = c3vec3f( 0.0, 1.0, 0.0 );
     c->eye = c3vec3f(0.0, 0.0, 10.0);
     c->lookat = c3vec3f(0.0,0.0,0.0);
-
+    c->fov = 50.0f;
     c->mtx = identity3D();
 
     c3cam_update(c);
index 5f47af761438fba3c5a9d03373d04db269110e8b..a189f9dd11433479f615da3ea11fce9c9f67e849 100644 (file)
@@ -30,6 +30,7 @@ typedef struct c3cam_t {
        c3vec3 up, side, forward;
        c3mat4 mtx;
        c3f distance;
+       c3f fov;
 } c3cam_t, *c3cam_p;
 
 /******************************* set_distance() ***********/