Bläddra i källkod

Fix pointlight direction property getter

sevan 8 år sedan
förälder
incheckning
74da768203
1 ändrade filer med 4 tillägg och 0 borttagningar
  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
          */