Exemplo n.º 1
0
 public static FreeCamera SetUpFreeCamera()
 {
     float aspect = GLThread.Resolution.Height > GLThread.Resolution.Width ? GLThread.Resolution.Height / GLThread.Resolution.Width : GLThread.Resolution.Width / GLThread.Resolution.Height;
     var freeCamera = new FreeCamera((float)GLThread.Resolution.Width / (float)GLThread.Resolution.Height, MathHelper.PiOver3);
     FreeCam = freeCamera;
     return freeCamera;
 }
Exemplo n.º 2
0
 public static FreeCamera SetUpFreeCamera()
 {
     CameraSavedViews = new Dictionary<int, TransformationManager>();
     float aspect = Game.Resolution.Height > Game.Resolution.Width ? Game.Resolution.Height / Game.Resolution.Width : Game.Resolution.Width / Game.Resolution.Height;
     var freeCamera = new FreeCamera((float)Game.Resolution.Width / (float)Game.Resolution.Height, MathHelper.PiOver3 / 1);
     FreeCam = freeCamera;
     PickingResult = new ShaderStorageBuffer();
     MousePicker = new ComputeShader("MousePicker.compute.glsl");
     return freeCamera;
 }