Browse Source

More backwards compatibility for PointCloudMaterial.

Mr.doob 11 years ago
parent
commit
78d58e2a42
1 changed files with 8 additions and 1 deletions
  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 );
 
-}
+};