Skip to content

Commit 5e98e2d

Browse files
[docs] Update meshopt decoder url to use latest 1.0.1 with .cjs extension (fix #5783) (#5785)
1 parent eb2f8f2 commit 5e98e2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/components/gltf-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ When using glTF models compressed with Draco, KTX2 or Meshopt, you must configur
147147
```html
148148
<a-scene gltf-model="dracoDecoderPath: path/to/decoder/;
149149
basisTranscoderPath: path/to/transcoder/;
150-
meshoptDecoderPath: path/to/meshopt_decoder.js;">
150+
meshoptDecoderPath: path/to/meshopt_decoder.cjs;">
151151
<a-entity gltf-model="url(pony.glb)"></a-entity>
152152
</a-scene>
153153
```
@@ -179,7 +179,7 @@ These files are available from the three.js repository in [`/examples/jsm/libs/b
179179
You can use a CDN like this: `basisTranscoderPath:https://cdn.jsdelivr.net/npm/three@0.154.0/examples/jsm/libs/basis/;`
180180

181181

182-
`meshoptDecoderPath` path should be the complete file path (including filename) for a Meshopt decoder, typically named `meshopt_decoder.js`. Meshopt requires WebAssembly support. A CDN-hosted, versioned decoder is available at `https://unpkg.com/meshoptimizer@0.19.0/meshopt_decoder.js`, or you may download copies from the [meshoptimizer GitHub repository][meshopt-decoder].
182+
`meshoptDecoderPath` path should be the complete file path (including filename) for a Meshopt decoder, typically named `meshopt_decoder.cjs`. Meshopt requires WebAssembly support. A CDN-hosted, versioned decoder is available at `https://unpkg.com/meshoptimizer@1.0.1/meshopt_decoder.cjs` (check the latest version number on [npm](https://www.npmjs.com/package/meshoptimizer)), or you may download copies from the [meshoptimizer GitHub repository][meshopt-decoder].
183183

184184
## More Resources
185185

0 commit comments

Comments
 (0)