瀏覽代碼

Merge remote branch 'alteredq/skinning' into skinning

Mr.doob 14 年之前
父節點
當前提交
642cfbfe1d
共有 1 個文件被更改,包括 18 次插入0 次删除
  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;