2
0
Эх сурвалжийг харах

Import PointCloudMaterial features

Pavel Vasev 10 жил өмнө
parent
commit
f946b1f6e4

+ 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 ++ ) {