|
@@ -88,7 +88,7 @@ THREE.SphereBufferGeometry = function ( radius, widthSegments, heightSegments, p
|
|
|
|
|
|
}
|
|
|
|
|
|
- this.setIndex( new THREE.BufferAttribute( new Uint16Array( indices ), 1 ) );
|
|
|
+ this.setIndex( new ( positions.count > 65535 ? THREE.Uint32Attribute : THREE.Uint16Attribute )( indices, 1 ) );
|
|
|
this.addAttribute( 'position', positions );
|
|
|
this.addAttribute( 'normal', normals );
|
|
|
this.addAttribute( 'uv', uvs );
|