Pārlūkot izejas kodu

More backwards compatibility for PointCloudMaterial.

Mr.doob 11 gadi atpakaļ
vecāks
revīzija
78d58e2a42
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  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 );
 
-}
+};