Browse Source

Fix pointlight direction property getter

sevan 8 years ago
parent
commit
74da768203
1 changed files with 4 additions and 0 deletions
  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
          */