|
@@ -25,15 +25,15 @@
|
|
This loader parallelizes the transcoding process across a configurable number
|
|
This loader parallelizes the transcoding process across a configurable number
|
|
of web workers, before transferring the transcoded compressed texture back
|
|
of web workers, before transferring the transcoded compressed texture back
|
|
to the main thread. The required WASM transcoder and JS wrapper are available from the
|
|
to the main thread. The required WASM transcoder and JS wrapper are available from the
|
|
- [link:https://github.com/mrdoob/three.js/tree/dev/examples/js/libs/basis examples/js/libs/basis]
|
|
|
|
|
|
+ [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm/libs/basis examples/jsm/libs/basis]
|
|
directory.
|
|
directory.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
<h2>Example</h2>
|
|
<h2>Example</h2>
|
|
|
|
|
|
<code>
|
|
<code>
|
|
- var basisLoader = new THREE.BasisTextureLoader();
|
|
|
|
- basisLoader.setTranscoderPath( 'examples/js/libs/basis/' );
|
|
|
|
|
|
+ var basisLoader = new BasisTextureLoader();
|
|
|
|
+ basisLoader.setTranscoderPath( 'examples/jsm/libs/basis/' );
|
|
basisLoader.detectSupport( renderer );
|
|
basisLoader.detectSupport( renderer );
|
|
basisLoader.load( 'diffuse.basis', function ( texture ) {
|
|
basisLoader.load( 'diffuse.basis', function ( texture ) {
|
|
|
|
|
|
@@ -114,7 +114,7 @@
|
|
</p>
|
|
</p>
|
|
<p>
|
|
<p>
|
|
The WASM transcoder and JS wrapper are available from the
|
|
The WASM transcoder and JS wrapper are available from the
|
|
- [link:https://github.com/mrdoob/three.js/tree/dev/examples/js/libs/basis examples/js/libs/basis]
|
|
|
|
|
|
+ [link:https://github.com/mrdoob/three.js/tree/dev/examples/jsm/libs/basis examples/jsm/libs/basis]
|
|
directory.
|
|
directory.
|
|
</p>
|
|
</p>
|
|
|
|
|
|
@@ -134,7 +134,7 @@
|
|
<h2>Source</h2>
|
|
<h2>Source</h2>
|
|
|
|
|
|
<p>
|
|
<p>
|
|
- [link:https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/BasisTextureLoader.js examples/js/loaders/BasisTextureLoader.js]
|
|
|
|
|
|
+ [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/loaders/BasisTextureLoader.js examples/jsm/loaders/BasisTextureLoader.js]
|
|
</p>
|
|
</p>
|
|
</body>
|
|
</body>
|
|
</html>
|
|
</html>
|