物管理前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.5 KiB

  1. # Draco 3D Data Compression
  2. Draco is an open-source library for compressing and decompressing 3D geometric meshes and point clouds. It is intended to improve the storage and transmission of 3D graphics.
  3. [Website](https://google.github.io/draco/) | [GitHub](https://github.com/google/draco)
  4. ## Contents
  5. This folder contains three utilities:
  6. * `draco_decoder.js` — Emscripten-compiled decoder, compatible with any modern browser.
  7. * `draco_decoder.wasm` — WebAssembly decoder, compatible with newer browsers and devices.
  8. * `draco_wasm_wrapper.js` — JavaScript wrapper for the WASM decoder.
  9. Each file is provided in two variations:
  10. * **Default:** Latest stable builds, tracking the project's [master branch](https://github.com/google/draco).
  11. * **glTF:** Builds targeted by the [glTF mesh compression extension](https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression), tracking the [corresponding Draco branch](https://github.com/google/draco/tree/gltf_2.0_draco_extension).
  12. Either variation may be used with `THREE.DRACOLoader`:
  13. ```js
  14. var dracoLoader = new THREE.DRACOLoader();
  15. dracoLoader.setDecoderPath('path/to/decoders/');
  16. dracoLoader.setDecoderConfig({type: 'js'}); // (Optional) Override detection of WASM support.
  17. ```
  18. Further [documentation on GitHub](https://github.com/google/draco/tree/master/javascript/example#static-loading-javascript-decoder).
  19. ## License
  20. [Apache License 2.0](https://github.com/google/draco/blob/master/LICENSE)