Exemplo n.º 1
0
        internal Camera(Engine engine)
        {
            _engine = engine;

            this.Viewport   = new Viewport(0, 0, _engine.Window.Width, _engine.Window.Height);
            this.View       = Matrix.LookAtLH(new Vector3(0, 20, -90), new Vector3(0, 20, 0), new Vector3(0, 1, 0));
            this.Projection = Matrix.PerspectiveFovLH((float)(Math.PI / 4.0), Viewport.AspectRatio(), 0.5f, 10000.0f);

            CenterCursor();
        }