/// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Game1 game = new Game1())
     {
         game.Run();
     }
 }
        public Camera2(Game1 game, Vector3 p, float s)
        {
            this.game = game;
            player_position = p;

            view = Matrix.CreateLookAt(player_position, lookat, Vector3.Up);
            projection = Matrix.CreatePerspectiveFieldOfView(MathHelper.ToRadians(45.0f), game.GraphicsDevice.Viewport.AspectRatio, 1.0f, 10000.0f);

            scale = s;
        }
 public Terrain(Game1 game, Texture2D heightMap, Camera2 cam)
     : base(game)
 {
     this.game = game;
     effect = game.Content.Load<Effect>("TerrainEffect");
     //Texture2D heightMap = game.Content.Load<Texture2D>("Levels\\Level2\\heightmap");
     LoadHeightData(heightMap);
     LoadContent();
     offset = new Vector3(0, 0, 0);
     camera = cam;
 }