|
@@ -16,12 +16,11 @@ module BABYLON {
|
|
|
|
|
|
export class VRDeviceOrientationArcRotateCamera extends ArcRotateCamera {
|
|
|
|
|
|
- constructor(name: string, alpha: number, beta: number, radius: number, target: Vector3, scene: Scene, compensateDistortion = true) {
|
|
|
+ constructor(name: string, alpha: number, beta: number, radius: number, target: Vector3, scene: Scene, compensateDistortion = true, vrCameraMetrics: VRCameraMetrics = VRCameraMetrics.GetDefault()) {
|
|
|
super(name, alpha, beta, radius, target, scene);
|
|
|
|
|
|
- var metrics = VRCameraMetrics.GetDefault();
|
|
|
- metrics.compensateDistortion = compensateDistortion;
|
|
|
- this.setCameraRigMode(Camera.RIG_MODE_VR, { vrCameraMetrics: metrics });
|
|
|
+ vrCameraMetrics.compensateDistortion = compensateDistortion;
|
|
|
+ this.setCameraRigMode(Camera.RIG_MODE_VR, { vrCameraMetrics: vrCameraMetrics });
|
|
|
|
|
|
this.inputs.addVRDeviceOrientation();
|
|
|
}
|