Explorar o código

HDRCubeTexture - RotationY Fixes

Use RotationY Property Name
MackeyK24 %!s(int64=7) %!d(string=hai) anos
pai
achega
8c62c03df4
Modificáronse 1 ficheiros con 9 adicións e 9 borrados
  1. 9 9
      src/Materials/Textures/babylon.hdrCubeTexture.ts

+ 9 - 9
src/Materials/Textures/babylon.hdrCubeTexture.ts

@@ -57,19 +57,19 @@ module BABYLON {
             return this._isBlocking;
         }
 
-        protected _rotationAngle: number = 0;
+        protected _rotationY: number = 0;
         /**
          * Sets texture matrix rotation angle (theta) Y in radians.
          */
-        public set rotationAngle(value: number) {
-            this._rotationAngle = value;
-            this.setReflectionTextureMatrix(BABYLON.Matrix.RotationY(this._rotationAngle));
+        public set rotationY(value: number) {
+            this._rotationY = value;
+            this.setReflectionTextureMatrix(BABYLON.Matrix.RotationY(this._rotationY));
         }
         /**
          * Gets texture matrix rotation angle (theta) Y radians.
          */
-        public get rotationAngle(): number {
-            return this._rotationAngle;
+        public get rotationY(): number {
+            return this._rotationY;
         }
         
         /**
@@ -492,8 +492,8 @@ module BABYLON {
                 if (parsedTexture.boundingBoxSize) {
                     (<any>texture).boundingBoxSize = Vector3.FromArray(parsedTexture.boundingBoxSize);
                 }
-                if (parsedTexture.rotationAngle) {
-                    (<any>texture).rotationAngle = parsedTexture.rotationAngle;
+                if (parsedTexture.rotationY) {
+                    (<any>texture).rotationY = parsedTexture.rotationY;
                 }
             }
             return texture;
@@ -518,7 +518,7 @@ module BABYLON {
             serializationObject.customType = "BABYLON.HDRCubeTexture";
             serializationObject.noMipmap = this._noMipmap;
             serializationObject.isBlocking = this._isBlocking;
-            serializationObject.rotationAngle = this._rotationAngle;
+            serializationObject.rotationY = this._rotationY;
 
             return serializationObject;
         }