Пример #1
0
 public void SetProjection(
     float s,                //  Stereo-scopic 3D eye separation
     float p,                //  Perspective (0 == parallel, 1 == perspective)
     float n, float f,       //  Near and far z clip depths
     float w, float h,       //  Width and height of viewport (at depth vz)
     Vector3 v,              //  Center of viewport
     Vector3 e               //  Center of projection (eye position)
     )
 {
     Matrix4.CreateProjection(s, p, n, f, w, h, v, e, out matrix);
     Matrix4.Invert(matrix, out inverseMatrix);
 }