未验证 提交 e8f0450e 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15200 from WestLangley/dev-dir_light_helper

DirectionalLightHelper: correctly orient helper to face light target
......@@ -73,7 +73,7 @@ DirectionalLightHelper.prototype.update = function () {
v2.setFromMatrixPosition( this.light.target.matrixWorld );
v3.subVectors( v2, v1 );
this.lightPlane.lookAt( v3 );
this.lightPlane.lookAt( v2 );
if ( this.color !== undefined ) {
......@@ -87,7 +87,7 @@ DirectionalLightHelper.prototype.update = function () {
}
this.targetLine.lookAt( v3 );
this.targetLine.lookAt( v2 );
this.targetLine.scale.z = v3.length();
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册