예제 #1
0
파일: Commons.cs 프로젝트: yanko/vengine
 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;
 }
예제 #2
0
파일: Commons.cs 프로젝트: whztt07/vengine
 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;
 }