提交 9c0b8a57 编写于 作者: T Takahiro

Add .autoUpdate to LOD

上级 936b0a28
......@@ -20,6 +20,8 @@ function LOD() {
}
} );
this.autoUpdate = true;
}
LOD.prototype = Object.assign( Object.create( Object3D.prototype ), {
......
......@@ -1244,6 +1244,10 @@ function WebGLRenderer( parameters ) {
groupOrder = object.renderOrder;
} else if ( object.isLOD ) {
if ( object.autoUpdate ) object.update( camera );
} else if ( object.isLight ) {
currentRenderState.pushLight( object );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册