MCPcopy
hub / github.com/brianchirls/Seriously.js / parseMaterial

Function parseMaterial

lib/three.js:8046–8068  ·  view source on GitHub ↗
( material )

Source from the content-addressed store, hash-verified

8044 var materials = {};
8045
8046 var parseMaterial = function ( material ) {
8047
8048 if ( output.materials === undefined ) {
8049
8050 output.materials = [];
8051
8052 }
8053
8054 if ( materials[ material.uuid ] === undefined ) {
8055
8056 var json = material.toJSON();
8057
8058 delete json.metadata;
8059
8060 materials[ material.uuid ] = json;
8061
8062 output.materials.push( json );
8063
8064 }
8065
8066 return material.uuid;
8067
8068 };
8069
8070 //
8071

Callers 1

parseObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected