Geometry2.js 501 B

12345678910111213141516171819
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.Geometry2 = function ( size ) {
  5. THREE.BufferGeometry.call( this );
  6. this.vertices = new THREE.Float32Attribute( size, 3 );
  7. this.normals = new THREE.Float32Attribute( size, 3 );
  8. this.uvs = new THREE.Float32Attribute( size, 2 );
  9. this.addAttribute( 'position', this.vertices );
  10. this.addAttribute( 'normal', this.normals );
  11. this.addAttribute( 'uv', this.uvs );
  12. };
  13. THREE.Geometry2.prototype = Object.create( THREE.BufferGeometry.prototype );