sample/assets/js/babylon.max.js
function (value) {
                var previousNeedCube = this.needCube();
                this._direction = value;
                if (this.needCube() !== previousNeedCube && this._shadowGenerator) {
                    this._shadowGenerator.recreateShadowMap();
                }
            }
function (value) {
                var previousNeedCube = this.needCube();
                this._direction = value;
                if (this.needCube() !== previousNeedCube && this._shadowGenerator) {
                    this._shadowGenerator.recreateShadowMap();
                }
            }
function ( value ) { var previousNeedCube = this . needCube ( ) ; this . _direction = value ; if ( this . needCube ( ) !== previousNeedCube && this . _shadowGenerator ) { this . _shadowGenerator . recreateShadowMap ( ) ; } }
In case of direction provided, the shadow will not use a cube texture but simulate a spot shadow as a fallback
In case of direction provided the shadow will not use a cube texture but simulate a spot shadow as a fallback