浏览代码

Three.Legacy: Added THREE.Vertex. See #1703.

Mr.doob 9 年之前
父节点
当前提交
da330b63fa
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/Three.Legacy.js

+ 7 - 0
src/Three.Legacy.js

@@ -202,6 +202,13 @@ THREE.Face4 = function ( a, b, c, d, normal, color, materialIndex ) {
 
 };
 
+THREE.Vertex = function ( x, y, z ) {
+
+	console.warn( 'THREE.Vertex has been removed. Use THREE.Vector3 instead.' );
+	return new THREE.Vector3( x, y, z );
+
+};
+
 //
 
 Object.defineProperties( THREE.Object3D.prototype, {