|
@@ -69,7 +69,6 @@ SpotLightHelper.prototype.dispose = function () {
|
|
|
SpotLightHelper.prototype.update = function () {
|
|
|
|
|
|
var vector = new Vector3();
|
|
|
- var vector2 = new Vector3();
|
|
|
|
|
|
return function update() {
|
|
|
|
|
@@ -80,10 +79,9 @@ SpotLightHelper.prototype.update = function () {
|
|
|
|
|
|
this.cone.scale.set( coneWidth, coneWidth, coneLength );
|
|
|
|
|
|
- vector.setFromMatrixPosition( this.light.matrixWorld );
|
|
|
- vector2.setFromMatrixPosition( this.light.target.matrixWorld );
|
|
|
+ vector.setFromMatrixPosition( this.light.target.matrixWorld );
|
|
|
|
|
|
- this.cone.lookAt( vector2.sub( vector ) );
|
|
|
+ this.cone.lookAt( vector );
|
|
|
|
|
|
if ( this.color !== undefined ) {
|
|
|
|