admin 管理员组

文章数量: 1086019


2023年12月19日发(作者:linux kernel什么意思)

loadGlb_Draco(path) { var loader = new GLTFLoader(); var dracoLoader = new DRACOLoader(); oderPath('node_modules/three/examples/js/libs/draco/'); d(); COLoader(dracoLoader); ( path, function (gltf) { se(function (child) { if () { // al .wireframe =true;

// ess = 60;

} }); (); } ); }/glb MeshoptDecoder压缩 /** *

加载 opt压缩格式的glb模型 * @param {*} _this

* @param {*} path

* @param {*} cb

*/ loadGlbMeshopt = ( path ) => { var loader = new GLTFLoader(); hoptDecoder(MeshoptDecoder); (path, function (gltf) { (); }); }/glb MeshoptDecoder压缩+贴图 KTX压缩/** * gltfKTX压缩模型加载 * @param {*} _this

* @param {*} path

* @param {*} cb

*/ loadGlbpackKTX = ( path ) => { const ktx2Loader = new KTX2Loader() // .setTranscoderPath('js/libs/basis/') .setTranscoderPath('node_modules/three/examples/js/libs/basis/') .detectSupport(_er); // const loader = new GLTFLoader().setPath('./public/three/models/gltf/cc_tc/'); const loader = new GLTFLoader(); 2Loader(ktx2Loader); hoptDecoder(MeshoptDecoder); (path, function (gltf) { // was produced from the source scene using gltfpack: // gltfpack -i coffeemat/ -o -cc -tc // The resulting model uses EXT_meshopt_compression (for geometry) and KHR_texture_basisu (for texture compression using ETC1S/BasisLZ) (); }); }


本文标签: 压缩 模型 加载