diff --git a/examples/webgl_buffergeometry_lines_indexed.html b/examples/webgl_buffergeometry_lines_indexed.html index f2fcd3b4a46bb0ee828b8ed207db32967e48cb3b..53aa8a754194c47bb94ecc93b6962dd6913df5c6 100644 --- a/examples/webgl_buffergeometry_lines_indexed.html +++ b/examples/webgl_buffergeometry_lines_indexed.html @@ -181,9 +181,9 @@ ); // -------------------------------- - geometry.setIndex( new THREE.BufferAttribute( new Uint16Array( indices_array ), 1 ) ); - geometry.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array( positions ), 3 ) ); - geometry.addAttribute( 'color', new THREE.BufferAttribute( new Float32Array( colors ), 3 ) ); + geometry.setIndex( indices_array ); + geometry.addAttribute( 'position', new THREE.Float32BufferAttribute( positions, 3 ) ); + geometry.addAttribute( 'color', new THREE.Float32BufferAttribute( colors, 3 ) ); geometry.computeBoundingSphere(); mesh = new THREE.LineSegments( geometry, material );