itive = boxBuilder.finishPrimitive(renderer);	
      let boxMaterial = new PbrMaterial();	
      boxMaterial.baseColorFactor.value = [r, g, b, 1];	
      return renderer.createRenderPrimitive(boxPrimitive, boxMaterial);	
    }

    function addBox(x, y, z, r, g, b, offset) {
      let boxRenderPrimitive = createBoxPrimitive(r, g, b);
      let boxNode = new Node();
      boxNode.addRenderPrimitive(boxRenderPrimitive);
      // Marks the node as one that needs to be checked when hit testing.
      boxNode.se