Parcourir la source

More backwards compatibility for PointCloudMaterial.

Mr.doob il y a 11 ans
Parent
commit
78d58e2a42
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  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 );
 
-}
+};