Explorar el Código

Import PointCloudMaterial features

Pavel Vasev hace 10 años
padre
commit
f946b1f6e4
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/loaders/MaterialLoader.js

+ 4 - 0
src/loaders/MaterialLoader.js

@@ -51,6 +51,10 @@ THREE.MaterialLoader.prototype = {
 		if ( json.transparent !== undefined ) material.transparent = json.transparent;
 		if ( json.wireframe !== undefined ) material.wireframe = json.wireframe;
 
+		// for PointCloudMaterial
+		if ( json.size !== undefined ) material.size = json.size;
+		if ( json.sizeAttenuation !== undefined ) material.sizeAttenuation = json.sizeAttenuation;
+
 		if ( json.materials !== undefined ) {
 
 			for ( var i = 0, l = json.materials.length; i < l; i ++ ) {