瀏覽代碼

Fix pointlight direction property getter

sevan 8 年之前
父節點
當前提交
74da768203
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Lights/babylon.pointLight.ts

+ 4 - 0
src/Lights/babylon.pointLight.ts

@@ -23,6 +23,10 @@
             this.forceProjectionMatrixCompute();
         }
 
+        public get direction(): Vector3 {
+            return this._direction;
+        }
+
         /**
          * In case of direction provided, the shadow will not use a cube texture but simulate a spot shadow as a fallback
          */