David Catuhe 11 år sedan
förälder
incheckning
9e6b61098f

+ 5 - 0
Babylon/Lights/babylon.hemisphericLight.js

@@ -13,6 +13,11 @@ var BABYLON;
             this.direction = direction;
             this.groundColor = new BABYLON.Color3(0.0, 0.0, 0.0);
         }
+        HemisphericLight.prototype.setDirectionToTarget = function (target) {
+            this.direction = BABYLON.Vector3.Normalize(target.subtract(BABYLON.Vector3.Zero()));
+            return this.direction;
+        };
+
         HemisphericLight.prototype.getShadowGenerator = function () {
             return null;
         };

+ 5 - 0
Babylon/Lights/babylon.hemisphericLight.ts

@@ -8,6 +8,11 @@
             super(name, scene);
         }
 
+        public setDirectionToTarget(target: Vector3): Vector3 {
+            this.direction = BABYLON.Vector3.Normalize(target.subtract(Vector3.Zero()));
+            return this.direction;
+        }
+
         public getShadowGenerator(): ShadowGenerator {
             return null;
         }

+ 0 - 5
Babylon/Mesh/babylon.mesh.js

@@ -51,7 +51,6 @@ var BABYLON;
             this._indices = [];
             this._renderId = 0;
             this._onBeforeRenderCallbacks = [];
-            this._vertexStrideSize = 0;
             this._animationStarted = false;
 
             scene.meshes.push(this);
@@ -185,10 +184,6 @@ var BABYLON;
             return this._indices;
         };
 
-        Mesh.prototype.getVertexStrideSize = function () {
-            return this._vertexStrideSize;
-        };
-
         Mesh.prototype.setPivotMatrix = function (matrix) {
             this._pivotMatrix = matrix;
             this._cache.pivotMatrixUpdated = true;

+ 0 - 5
Babylon/Mesh/babylon.mesh.ts

@@ -60,7 +60,6 @@
         private _renderId = 0;
         private _onBeforeRenderCallbacks = [];
         private _delayInfo; //ANY
-        private _vertexStrideSize = 0;
         private _animationStarted = false;
         private _vertexBuffers;
         private _indexBuffer;
@@ -204,10 +203,6 @@
             return this._indices;
         }
 
-        public getVertexStrideSize(): number {
-            return this._vertexStrideSize;
-        }
-
         public setPivotMatrix(matrix: Matrix): void {
             this._pivotMatrix = matrix;
             this._cache.pivotMatrixUpdated = true;

+ 1 - 0
Babylon/Sprites/babylon.sprite.js

@@ -9,6 +9,7 @@
             this.cellIndex = 0;
             this.invertU = 0;
             this.invertV = 0;
+            this.animations = new Array();
             this._animationStarted = false;
             this._loopAnimation = false;
             this._fromIndex = 0;

+ 1 - 0
Babylon/Sprites/babylon.sprite.ts

@@ -8,6 +8,7 @@
         public invertU = 0;
         public invertV = 0;
         public disposeWhenFinishedAnimating: () => void;
+        public animations = new Array<Animation>();
 
         private _animationStarted = false;
         private _loopAnimation = false;

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 2 - 2
babylon.1.12-beta.js