Преглед изворни кода

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
 // 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 ) {
 THREE.ParticleSystemMaterial = function ( parameters ) {
 
 
 	console.warn( 'THREE.ParticleSystemMaterial has been renamed to THREE.PointCloudMaterial.' );
 	console.warn( 'THREE.ParticleSystemMaterial has been renamed to THREE.PointCloudMaterial.' );
 	return new THREE.PointCloudMaterial( parameters );
 	return new THREE.PointCloudMaterial( parameters );
 
 
-}
+};