예제 #1
0
        public static void initCameraNear()
        {
            Point eye = new Point(0, -5, 12);
              Point at = new Point(0, 20, 0);
              Point up = new Point(0, 0, 1);

              cameraNear = new Camera(eye,at,up);
        }
예제 #2
0
        public static void initCameraFar()
        {
            Point eye = new Point(0, 0, 90);
              Point at = new Point(0, 10, 0);
              Point up = new Point(0, 1, 0);

              cameraFar = new Camera(eye, at, up);
        }
예제 #3
0
 public static void switchCameras(bool isFp)
 {
     if (!isFp)
       {
     camera = cameraFar;
       }
       else
       {
     camera = cameraNear;
       }
 }