CesiumGS / gltf-pipeline

Content pipeline tools for optimizing glTF assets. :globe_with_meridians:
Apache License 2.0
1.87k stars 241 forks source link

Use webp encode texture #656

Open N3GIS opened 3 months ago

N3GIS commented 3 months ago

Is there a plan to support the use of webp to compress textures, so that the data will be smaller

JamesMasino commented 2 months ago

It's possible to generate a glb off of a gltf using webp textures by editing the gltf's mimeTypes to be "image/webp" and to point towards their respective texture.webp image. The conversion errors out on any image that isn't png, jpg, or webp. example