提交 2660853b 编写于 作者: M Mr.doob

Made CubeGeometry to BoxGeometry change transparent.

http://blog.kenperlin.com/?p=15869
上级 6d4d95ca
......@@ -125,3 +125,5 @@ THREE.BoxGeometry = function ( width, height, depth, widthSegments, heightSegmen
THREE.BoxGeometry.prototype = Object.create( THREE.Geometry.prototype );
THREE.BoxGeometry.prototype.constructor = THREE.BoxGeometry;
THREE.CubeGeometry = THREE.BoxGeometry; // backwards compatibility
/**
* @author mrdoob / http://mrdoob.com/
*/
THREE.CubeGeometry = function ( width, height, depth, widthSegments, heightSegments, depthSegments ) {
THREE.warn( 'THREE.CubeGeometry has been renamed to THREE.BoxGeometry.' );
return new THREE.BoxGeometry( width, height, depth, widthSegments, heightSegments, depthSegments );
};
......@@ -27,7 +27,6 @@
"src/extras/animation/MorphAnimation.js",
"src/extras/geometries/BoxGeometry.js",
"src/extras/geometries/CircleGeometry.js",
"src/extras/geometries/CubeGeometry.js",
"src/extras/geometries/CylinderGeometry.js",
"src/extras/geometries/ExtrudeGeometry.js",
"src/extras/geometries/ShapeGeometry.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册