提交 ad52ec86 编写于 作者: M Mr.doob

SpotLightHelper: Make sure matrixWorld is updated.

上级 00e54176
......@@ -71,6 +71,8 @@ SpotLightHelper.prototype.update = function () {
return function update() {
this.light.updateMatrixWorld();
var coneLength = this.light.distance ? this.light.distance : 1000;
var coneWidth = coneLength * Math.tan( this.light.angle );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册