Преглед изворни кода

Merge pull request #1787 from abow/master

fix for directional light shadows
David Catuhe пре 8 година
родитељ
комит
f545d2b091
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/Lights/babylon.directionalLight.ts

+ 2 - 1
src/Lights/babylon.directionalLight.ts

@@ -100,7 +100,6 @@ module BABYLON {
                             this._orthoTop = tempVector3.y;
                     }
                 }
-                return this;
             }
 
             var xOffset = this._orthoRight - this._orthoLeft;
@@ -109,6 +108,8 @@ module BABYLON {
             Matrix.OrthoOffCenterLHToRef(this._orthoLeft - xOffset * this.shadowOrthoScale, this._orthoRight + xOffset * this.shadowOrthoScale,
                 this._orthoBottom - yOffset * this.shadowOrthoScale, this._orthoTop + yOffset * this.shadowOrthoScale,
                 -activeCamera.maxZ, activeCamera.maxZ, matrix);
+
+            return this;
         }
 
         /**