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

Updated builds.

上级 9637015f
...@@ -19138,22 +19138,22 @@ THREE.Mesh.prototype.raycast = ( function () { ...@@ -19138,22 +19138,22 @@ THREE.Mesh.prototype.raycast = ( function () {
if ( distance < raycaster.near || distance > raycaster.far ) continue; if ( distance < raycaster.near || distance > raycaster.far ) continue;
a = i / 3;
b = a + 1;
c = a + 2;
var uv; var uv;
if ( attributes.uv !== undefined ) { if ( attributes.uv !== undefined ) {
var uvs = attributes.uv.array; var uvs = attributes.uv.array;
uvA.fromArray( uvs, i ); uvA.fromArray( uvs, a * 2 );
uvB.fromArray( uvs, i + 2 ); uvB.fromArray( uvs, b * 2 );
uvC.fromArray( uvs, i + 4 ); uvC.fromArray( uvs, c * 2 );
uv = uvIntersection( intersectionPoint, vA, vB, vC, uvA, uvB, uvC ); uv = uvIntersection( intersectionPoint, vA, vB, vC, uvA, uvB, uvC );
} }
a = i / 3;
b = a + 1;
c = a + 2;
intersects.push( { intersects.push( {
distance: distance, distance: distance,
...@@ -22005,7 +22005,7 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -22005,7 +22005,7 @@ THREE.WebGLRenderer = function ( parameters ) {
} }
// remove all webgl properties // remove all webgl properties
properties.delete( texture ); properties.remove( texture );
} }
...@@ -22034,8 +22034,8 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -22034,8 +22034,8 @@ THREE.WebGLRenderer = function ( parameters ) {
} }
properties.delete( renderTarget.texture ); properties.remove( renderTarget.texture );
properties.delete( renderTarget ); properties.remove( renderTarget );
} }
...@@ -22043,7 +22043,7 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -22043,7 +22043,7 @@ THREE.WebGLRenderer = function ( parameters ) {
releaseMaterialProgramReference( material ); releaseMaterialProgramReference( material );
properties.delete( material ); properties.remove( material );
} }
...@@ -22267,23 +22267,26 @@ THREE.WebGLRenderer = function ( parameters ) { ...@@ -22267,23 +22267,26 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( group === null ) { if ( group === null ) {
var count; var start = geometry.drawRange.start;
var count = geometry.drawRange.count;
if ( index !== null ) { if ( count === Infinity ) {
count = index.array.length; if ( index !== null ) {
} else { count = index.array.length;
count = position.count; } else {
} count = position.count;
}
var drawRange = geometry.drawRange; }
group = { group = {
start: drawRange.start, start: start,
count: Math.min( drawRange.count, count ) count: count
}; };
} }
...@@ -25584,11 +25587,11 @@ THREE.WebGLGeometries = function ( gl, properties, info ) { ...@@ -25584,11 +25587,11 @@ THREE.WebGLGeometries = function ( gl, properties, info ) {
if ( attribute instanceof THREE.InterleavedBufferAttribute ) { if ( attribute instanceof THREE.InterleavedBufferAttribute ) {
properties.delete( attribute.data ); properties.remove( attribute.data );
} else { } else {
properties.delete( attribute ); properties.remove( attribute );
} }
...@@ -26654,7 +26657,7 @@ THREE.WebGLProperties = function () { ...@@ -26654,7 +26657,7 @@ THREE.WebGLProperties = function () {
}; };
this.delete = function ( object ) { this.remove = function ( object ) {
delete properties[ object.uuid ]; delete properties[ object.uuid ];
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册