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; }
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; }