Przeglądaj źródła

Fixing naming problem

Deltakosh 11 lat temu
rodzic
commit
d50a27b4be

+ 1 - 1
Babylon/Cameras/babylon.oculusOrientedCamera.js

@@ -29,7 +29,7 @@ var BABYLON = BABYLON || {};
 
         this._projectionMatrix = new BABYLON.Matrix();
         this._preViewMatrix = BABYLON.Matrix.Translation(isLeftEye ? .5 * ovrSettings.InterpupillaryDistance : -.5 * ovrSettings.InterpupillaryDistance, 0, 0);
-        new BABYLON.oculusDistortionCorrectionPostProcess("Oculus Distortion", this, !isLeftEye, ovrSettings);
+        new BABYLON.OculusDistortionCorrectionPostProcess("Oculus Distortion", this, !isLeftEye, ovrSettings);
         this.resetProjectionMatrix();
         this.resetViewMatrix();
     };

+ 4 - 4
Babylon/PostProcess/babylon.oculusDistortionCorrectionPostProcess.js

@@ -3,7 +3,7 @@
 var BABYLON = BABYLON || {};
 
 (function () {
-    BABYLON.oculusDistortionCorrectionPostProcess = function (name, camera, isRightEye, cameraSettings) {
+    BABYLON.OculusDistortionCorrectionPostProcess = function (name, camera, isRightEye, cameraSettings) {
         BABYLON.PostProcess.call(this, name, "oculusDistortionCorrection", [
 			'LensCenter',
 		    'Scale',
@@ -16,14 +16,14 @@ var BABYLON = BABYLON || {};
         this._lensCenterOffset = cameraSettings.LensCenterOffset;
     };
 
-    BABYLON.oculusDistortionCorrectionPostProcess.prototype = Object.create(BABYLON.PostProcess.prototype);
-    BABYLON.oculusDistortionCorrectionPostProcess.prototype.onSizeChanged = function () {
+    BABYLON.OculusDistortionCorrectionPostProcess.prototype = Object.create(BABYLON.PostProcess.prototype);
+    BABYLON.OculusDistortionCorrectionPostProcess.prototype.onSizeChanged = function () {
         this.aspectRatio = this.width * .5 / this.height;
         this._scaleIn = new BABYLON.Vector2(2, 2 / this.aspectRatio);
         this._scaleFactor = new BABYLON.Vector2(.5 * (1/this._postProcessScaleFactor), .5 * (1/this._postProcessScaleFactor) * this.aspectRatio);
         this._lensCenter = new BABYLON.Vector2(this._isRightEye ? 0.5 - this._lensCenterOffset * 0.5 : 0.5 + this._lensCenterOffset * 0.5, 0.5);
     };
-    BABYLON.oculusDistortionCorrectionPostProcess.prototype.onApply = function (effect) {
+    BABYLON.OculusDistortionCorrectionPostProcess.prototype.onApply = function (effect) {
         effect.setFloat2("LensCenter", this._lensCenter.x, this._lensCenter.y);
         effect.setFloat2("Scale", this._scaleFactor.x, this._scaleFactor.y);
         effect.setFloat2("ScaleIn", this._scaleIn.x, this._scaleIn.y);