ソースを参照

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;
         }
 
         /**