createDefaultMaterial top-level property
Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material
Implementation
Function createDefaultMaterial = (GLTFRegistry cache) {
if (cache.get('DefaultMaterial') == null) {
cache.add(
"DefaultMaterial",
new MeshStandardMaterial({
"color": 0xFFFFFF,
"emissive": 0x000000,
"metalness": 1,
"roughness": 1,
"transparent": false,
"depthTest": true,
"side": FrontSide
}));
}
return cache.get("DefaultMaterial");
};