Skip to content

Commit

Permalink
Merge pull request #114 from pattern-x/feature/libs
Browse files Browse the repository at this point in the history
Add missed scrips under libs folder
  • Loading branch information
pattern-x committed Aug 30, 2023
1 parent c881f85 commit 3c98a9f
Show file tree
Hide file tree
Showing 17 changed files with 444 additions and 0 deletions.
32 changes: 32 additions & 0 deletions demo/libs/draco/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Draco 3D Data Compression

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.

[Website](https://google.github.io/draco/) | [GitHub](https://github.com/google/draco)

## Contents

This folder contains three utilities:

* `draco_decoder.js` — Emscripten-compiled decoder, compatible with any modern browser.
* `draco_decoder.wasm` — WebAssembly decoder, compatible with newer browsers and devices.
* `draco_wasm_wrapper.js` — JavaScript wrapper for the WASM decoder.

Each file is provided in two variations:

* **Default:** Latest stable builds, tracking the project's [master branch](https://github.com/google/draco).
* **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).

Either variation may be used with `THREE.DRACOLoader`:

```js
var dracoLoader = new THREE.DRACOLoader();
dracoLoader.setDecoderPath('path/to/decoders/');
dracoLoader.setDecoderConfig({type: 'js'}); // (Optional) Override detection of WASM support.
```

Further [documentation on GitHub](https://github.com/google/draco/tree/master/javascript/example#static-loading-javascript-decoder).

## License

[Apache License 2.0](https://github.com/google/draco/blob/master/LICENSE)
34 changes: 34 additions & 0 deletions demo/libs/draco/draco_decoder.js

Large diffs are not rendered by default.

Binary file added demo/libs/draco/draco_decoder.wasm
Binary file not shown.
33 changes: 33 additions & 0 deletions demo/libs/draco/draco_encoder.js

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions demo/libs/draco/draco_wasm_wrapper.js

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions demo/libs/draco/gltf/draco_decoder.js

Large diffs are not rendered by default.

Binary file added demo/libs/draco/gltf/draco_decoder.wasm
Binary file not shown.
33 changes: 33 additions & 0 deletions demo/libs/draco/gltf/draco_encoder.js

Large diffs are not rendered by default.

116 changes: 116 additions & 0 deletions demo/libs/draco/gltf/draco_wasm_wrapper.js

Large diffs are not rendered by default.

Binary file added demo/libs/fonts/Microsoft_YaHei.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions demo/libs/fonts/Microsoft_YaHei_Regular.typeface.json

Large diffs are not rendered by default.

Binary file added demo/libs/fonts/arial.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions demo/libs/fonts/helvetiker_regular.typeface.json

Large diffs are not rendered by default.

Binary file added demo/libs/fonts/hztxt.shx
Binary file not shown.
Binary file added demo/libs/fonts/simplex.shx
Binary file not shown.
22 changes: 22 additions & 0 deletions demo/libs/pdf/pdf.min.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions demo/libs/pdf/pdf.worker.min.js

Large diffs are not rendered by default.

0 comments on commit 3c98a9f

Please sign in to comment.