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

Updated builds.

上级 8cf52243
......@@ -10680,6 +10680,8 @@ THREE.BufferGeometry = function () {
this.boundingBox = null;
this.boundingSphere = null;
this.drawRange = { start: 0, count: Infinity };
};
THREE.BufferGeometry.prototype = {
......@@ -10779,6 +10781,13 @@ THREE.BufferGeometry.prototype = {
},
setDrawRange: function ( start, count ) {
this.drawRange.start = start;
this.drawRange.count = count;
},
applyMatrix: function ( matrix ) {
var position = this.attributes.position;
......@@ -20439,7 +20448,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( index !== null ) {
count = index.array.length;
count = index.count;
} else if ( position instanceof THREE.InterleavedBufferAttribute ) {
......@@ -20447,13 +20456,15 @@ THREE.WebGLRenderer = function ( parameters ) {
} else {
count = position.array.length / 3;
count = position.count;
}
var drawRange = geometry.drawRange;
group = {
start: 0,
count: count
start: drawRange.start,
count: Math.min( drawRange.count, count )
};
}
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册