Example #1
0
 public Camera(int bufferWidth, int bufferHeight, float fov, float nearPlane, float farPlane)
 {
     outputBuffer = new TextureBuffer(bufferWidth, bufferHeight);
     MoveTo(new Point3F(0, 0, 0));
     RotateTo(new Angle3F(0, 0, 0));
     perspectiveMatrix = Matrix4.FromPesrpective(fov, nearPlane, farPlane, bufferWidth / bufferHeight);
 }