Ribbon.js 343 B

123456789101112131415
  1. /**
  2. * @author alteredq / http://alteredqualia.com/
  3. */
  4. THREE.Ribbon = function ( geometry, materials ) {
  5. THREE.Object3D.call( this );
  6. this.geometry = geometry;
  7. this.materials = materials instanceof Array ? materials : [ materials ];
  8. };
  9. THREE.Ribbon.prototype = new THREE.Object3D();
  10. THREE.Ribbon.prototype.constructor = THREE.Ribbon;