Skip to content

Commit 7f28fd4

Browse files
committed
Properly orient helper in direction of light target
1 parent 771b015 commit 7f28fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/DirectionalLightHelper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ DirectionalLightHelper.prototype.update = function () {
7373
v2.setFromMatrixPosition( this.light.target.matrixWorld );
7474
v3.subVectors( v2, v1 );
7575

76-
this.lightPlane.lookAt( v3 );
76+
this.lightPlane.lookAt( v2 );
7777

7878
if ( this.color !== undefined ) {
7979

@@ -87,7 +87,7 @@ DirectionalLightHelper.prototype.update = function () {
8787

8888
}
8989

90-
this.targetLine.lookAt( v3 );
90+
this.targetLine.lookAt( v2 );
9191
this.targetLine.scale.z = v3.length();
9292

9393
};

0 commit comments

Comments
 (0)