src/loaders/support/LoaderBuilder.js
function () {
		var materialsJSON = {};
		var material;
		for ( var materialName in this.materials ) {

			material = this.materials[ materialName ];
			materialsJSON[ materialName ] = material.toJSON();
		}

		return materialsJSON;
	}
function () {
		var materialsJSON = {};
		var material;
		for ( var materialName in this.materials ) {

			material = this.materials[ materialName ];
			materialsJSON[ materialName ] = material.toJSON();
		}

		return materialsJSON;
	}
function ( ) { var materialsJSON = { } ; var material ; for ( var materialName in this . materials ) { material = this . materials [ materialName ] ; materialsJSON [ materialName ] = material . toJSON ( ) ; } return materialsJSON ; }
Returns the mapping object of material name and corresponding jsonified material.

@returns {Object} Map of Materials in JSON representation
Returns the mapping object of material name and corresponding jsonified material .