createDefaultMaterial top-level property

Function createDefaultMaterial
getter/setter pair

Implementation

Function createDefaultMaterial = (GLTFRegistry cache) {
  if (cache.get('DefaultMaterial') == null) {
    cache.add(
        "DefaultMaterial",
        MeshStandardMaterial({
          "color": 0xFFFFFF,
          "emissive": 0x000000,
          "metalness": 1,
          "roughness": 1,
          "transparent": false,
          "depthTest": true,
          "side": FrontSide
        }));
  }

  return cache.get("DefaultMaterial");
};