提交 94131d07 编写于 作者: K Kirill Edelman

THREE.Line offsets fix

Fixed non-indexed line arrays not using offset start index. Also removed needless variable assignment from THREE.Line case and THREE.PointCloud case.
上级 83f6ab62
......@@ -2688,9 +2688,7 @@ THREE.WebGLRenderer = function ( parameters ) {
for ( var i = 0, il = offsets.length; i < il; i ++ ) {
var startIndex = offsets[ i ].index;
_gl.drawArrays( mode, startIndex, offsets[ i ].count );
_gl.drawArrays( mode, offsets[ i ].index, offsets[ i ].count );
_this.info.render.calls ++;
_this.info.render.points += offsets[ i ].count;
......@@ -2797,9 +2795,7 @@ THREE.WebGLRenderer = function ( parameters ) {
for ( var i = 0, il = offsets.length; i < il; i ++ ) {
var startIndex = offsets[ i ].index;
_gl.drawArrays( mode, 0, offsets[ i ].count );
_gl.drawArrays( mode, offsets[ i ].index, offsets[ i ].count );
_this.info.render.calls ++;
_this.info.render.vertices += offsets[ i ].count;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册