Browse Source

Merge remote branch 'alteredq/skinning' into skinning

Mr.doob 14 years ago
parent
commit
642cfbfe1d
1 changed files with 18 additions and 0 deletions
  1. 18 0
      src/objects/Ribbon.js

+ 18 - 0
src/objects/Ribbon.js

@@ -0,0 +1,18 @@
+/**
+ * @author alteredq / http://alteredqualia.com/
+ */
+
+THREE.Ribbon = function ( geometry, materials ) {
+
+	THREE.Object3D.call( this );
+
+	this.geometry = geometry;
+	this.materials = materials instanceof Array ? materials : [ materials ];
+
+	this.flipSided = false;
+	this.doubleSided = false;
+	
+};
+
+THREE.Ribbon.prototype = new THREE.Object3D();
+THREE.Ribbon.prototype.constructor = THREE.Ribbon;