提交 a2258a2b 编写于 作者: M michael

Updated gpgpu birds example to work with new BufferAttribute changes.

上级 5564fdee
......@@ -382,10 +382,10 @@
THREE.BufferGeometry.call( this );
var vertices = new THREE.Float32Attribute( points * 3, 3 );
var birdColors = new THREE.Float32Attribute( points * 3, 3 );
var references = new THREE.Float32Attribute( points * 2, 2 );
var birdVertex = new THREE.Float32Attribute( points, 1 );
var vertices = new THREE.BufferAttribute( new Float32Array( points * 3 ), 3 );
var birdColors = new THREE.BufferAttribute( new Float32Array( points * 3 ), 3 );
var references = new THREE.BufferAttribute( new Float32Array( points * 2 ), 2 );
var birdVertex = new THREE.BufferAttribute( new Float32Array( points ), 1 );
this.addAttribute( 'position', vertices );
this.addAttribute( 'birdColor', birdColors );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册