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

Fixed interactive buffergeometry example.

上级 ac885393
......@@ -182,9 +182,9 @@
}
geometry.addAttribute( 'position', new THREE.Float32Attribute( positions, 3 ) );
geometry.addAttribute( 'normal', new THREE.Float32Attribute( normals, 3 ) );
geometry.addAttribute( 'color', new THREE.Float32Attribute( colors, 3 ) );
geometry.addAttribute( 'position', new THREE.BufferAttribute( positions, 3 ) );
geometry.addAttribute( 'normal', new THREE.BufferAttribute( normals, 3 ) );
geometry.addAttribute( 'color', new THREE.BufferAttribute( colors, 3 ) );
geometry.computeBoundingSphere();
......@@ -204,7 +204,7 @@
mouse = new THREE.Vector2();
var geometry = new THREE.BufferGeometry();
geometry.addAttribute( 'position', new THREE.Float32Attribute( 4 * 3, 3 ) );
geometry.addAttribute( 'position', new THREE.BufferAttribute( new Float32Array( 4 * 3 ), 3 ) );
var material = new THREE.LineBasicMaterial( { color: 0xffffff, linewidth: 2, transparent: true } );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册