mirror of
https://github.com/openharmony/third_party_meshoptimizer.git
synced 2026-07-19 12:03:07 -04:00
demo: Update Babylon.JS demo to use local meshopt_decoder
Unfortunately we need to use a non-module version as Babylon.JS does not support modules for this now.
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@
|
||||
<canvas id="renderCanvas"></canvas>
|
||||
<script>
|
||||
// Optional - by default Babylon.JS will use bundled decoder module
|
||||
BABYLON.GLTF2.Loader.Extensions.EXT_meshopt_compression.DecoderPath = '../js/meshopt_decoder.module.js';
|
||||
BABYLON.MeshoptCompression.Configuration.decoder.url = '../js/meshopt_decoder.js';
|
||||
|
||||
var canvas = document.getElementById('renderCanvas');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user