提交 124f9d7a 编写于 作者: W WestLangley

Added WebGLRenderer Support for LinePieces with BufferGeometry

上级 3ab6fd21
......@@ -3493,11 +3493,13 @@ THREE.WebGLRenderer = function ( parameters ) {
// render lines
primitives = ( object.type === THREE.LineStrip ) ? _gl.LINE_STRIP : _gl.LINES;
setLineWidth( material.linewidth );
var position = geometryAttributes[ "position" ];
_gl.drawArrays( _gl.LINE_STRIP, 0, position.numItems / 3 );
_gl.drawArrays( primitives, 0, position.numItems / 3 );
_this.info.render.calls ++;
_this.info.render.points += position.numItems;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册