浏览代码

More backwards compatibility for PointCloudMaterial.

Mr.doob 11 年之前
父节点
当前提交
78d58e2a42
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/materials/PointCloudMaterial.js

+ 8 - 1
src/materials/PointCloudMaterial.js

@@ -63,9 +63,16 @@ THREE.PointCloudMaterial.prototype.clone = function () {
 
 // backwards compatibility
 
+THREE.ParticleBasicMaterial = function ( parameters ) {
+
+	console.warn( 'THREE.ParticleBasicMaterial has been renamed to THREE.PointCloudMaterial.' );
+	return new THREE.PointCloudMaterial( parameters );
+
+};
+
 THREE.ParticleSystemMaterial = function ( parameters ) {
 
 	console.warn( 'THREE.ParticleSystemMaterial has been renamed to THREE.PointCloudMaterial.' );
 	return new THREE.PointCloudMaterial( parameters );
 
-}
+};