-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
74,279 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Polygonjs Dev</title> | ||
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.18.0.css" /> | ||
</head> | ||
<body> | ||
<div style="position: relative; background-color: white; padding: 5px; z-index: 999"> | ||
<a href="/?testBatchId=0&hidepassed">BATCH 0</a> | ||
<a href="/?testBatchId=1&hidepassed">BATCH 1</a> | ||
</div> | ||
<div id="app"></div> | ||
<div id="qunit"></div> | ||
<div id="qunit-fixture"></div> | ||
<script type="module" src="/tests/index.ts"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
235 changes: 116 additions & 119 deletions
235
public/three/js/libs/draco/gltf/draco_wasm_wrapper.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Basis Universal GPU Texture Compression | ||
|
||
Basis Universal is a "[supercompressed](http://gamma.cs.unc.edu/GST/gst.pdf)" | ||
GPU texture and texture video compression system that outputs a highly | ||
compressed intermediate file format (.basis) that can be quickly transcoded to | ||
a wide variety of GPU texture compression formats. | ||
|
||
[GitHub](https://github.com/BinomialLLC/basis_universal) | ||
|
||
## Transcoders | ||
|
||
Basis Universal texture data may be used in two different file formats: | ||
`.basis` and `.ktx2`, where `ktx2` is a standardized wrapper around basis texture data. | ||
|
||
For further documentation about the Basis compressor and transcoder, refer to | ||
the [Basis GitHub repository](https://github.com/BinomialLLC/basis_universal). | ||
|
||
The folder contains two files required for transcoding `.basis` or `.ktx2` textures: | ||
|
||
* `basis_transcoder.js` — JavaScript wrapper for the WebAssembly transcoder. | ||
* `basis_transcoder.wasm` — WebAssembly transcoder. | ||
|
||
Both are dependencies of `THREE.KTX2Loader` and `THREE.BasisTextureLoader`: | ||
|
||
```js | ||
var ktx2Loader = new THREE.KTX2Loader(); | ||
ktx2Loader.setTranscoderPath( 'examples/js/libs/basis/' ); | ||
ktx2Loader.detectSupport( renderer ); | ||
ktx2Loader.load( 'diffuse.ktx2', function ( texture ) { | ||
|
||
var material = new THREE.MeshStandardMaterial( { map: texture } ); | ||
|
||
}, function () { | ||
|
||
console.log( 'onProgress' ); | ||
|
||
}, function ( e ) { | ||
|
||
console.error( e ); | ||
|
||
} ); | ||
``` | ||
|
||
## License | ||
|
||
[Apache License 2.0](https://github.com/BinomialLLC/basis_universal/blob/master/LICENSE) |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.