Browse Source

Fix pointlight direction property getter

sevan 8 năm trước cách đây
mục cha
commit
74da768203
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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
          */