UNPKG

@csi-foxbyte/cityjson-to-3d-tiles

Version:

A Node.js library that converts CityJSON files into Cesium 3D Tiles—complete with automatic texture atlas packing, Basis compression, three LOD levels, and customizable threading.

2 lines • 370 B
import {prune}from'@gltf-transform/functions';function c(){return e=>{for(const o of e.getRoot().listScenes())o.traverse(i=>{const r=i.getMesh();if(r)for(const t of r.listPrimitives())t.getMaterial()?.getBaseColorTexture()||t.detach();});prune()(e);}}export{c as removeUntextured};//# sourceMappingURL=removeUntextured.js.map //# sourceMappingURL=removeUntextured.js.map