Просмотр исходного кода

remove meshopt references/test file for now

Felix Herbst 2 лет назад
Родитель
Сommit
d67dda6e33
2 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      examples/misc_exporter_gltf.html
  2. BIN
      examples/models/gltf/coffeemat.etc1s+meshopt.glb

+ 1 - 3
examples/misc_exporter_gltf.html

@@ -32,7 +32,6 @@
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
 			import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
 			import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js';
 			import { KTX2Loader } from 'three/addons/loaders/KTX2Loader.js';
 			import { DRACOLoader } from 'three/addons/loaders/DRACOLoader.js';
 			import { DRACOLoader } from 'three/addons/loaders/DRACOLoader.js';
-			import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 			import { GUI } from 'three/addons/libs/lil-gui.module.min.js';
 
 
 			function exportGLTF( input ) {
 			function exportGLTF( input ) {
@@ -456,7 +455,7 @@
 				window.addEventListener( 'resize', onWindowResize );
 				window.addEventListener( 'resize', onWindowResize );
 
 
 				// ---------------------------------------------------------------------
 				// ---------------------------------------------------------------------
-				// Exporting compressed textures and meshes (KTX2 / Draco / Meshopt)
+				// Exporting compressed textures and meshes (KTX2 / Draco) (TODO: Meshopt)
 				// ---------------------------------------------------------------------
 				// ---------------------------------------------------------------------
 				const ktx2Loader = new KTX2Loader()
 				const ktx2Loader = new KTX2Loader()
 					.setTranscoderPath( 'jsm/libs/basis/' )
 					.setTranscoderPath( 'jsm/libs/basis/' )
@@ -468,7 +467,6 @@
 				const gltfLoader = new GLTFLoader().setPath( 'models/gltf/' );
 				const gltfLoader = new GLTFLoader().setPath( 'models/gltf/' );
 				gltfLoader.setKTX2Loader( ktx2Loader );
 				gltfLoader.setKTX2Loader( ktx2Loader );
 				gltfLoader.setDRACOLoader( dracoLoader );
 				gltfLoader.setDRACOLoader( dracoLoader );
-				gltfLoader.setMeshoptDecoder( MeshoptDecoder );
 				gltfLoader.load( 'coffeemat.etc1s+draco.glb', function ( gltf ) {
 				gltfLoader.load( 'coffeemat.etc1s+draco.glb', function ( gltf ) {
 
 
 					// coffeemat.etc1s+draco.glb was produced from the source scene using gltf-transform:
 					// coffeemat.etc1s+draco.glb was produced from the source scene using gltf-transform:

BIN
examples/models/gltf/coffeemat.etc1s+meshopt.glb