Skip to content

Commit

Permalink
gltf模型添加draco extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ComeformPC committed Jul 14, 2020
1 parent 5c09207 commit a039b3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ function clean(){
//cb();//异步任务执行完成回调函数,当函数不返回内容时必须使用;
}
/**
* 简化gltf网格
* 压缩gltf几何数据
*/
function dracoCompress(cb){
const array=["origin","medium","low"];
const level=[7,7,7];
const level=[7,7,7];//压缩级别
for(let i=0;i<array.length;i++){
const name=array[i];
const gltf=fsExtra.readJSONSync(config.model+"/"+config.Architecture+"/"+name+"/scene-"+name+".gltf");
Expand Down

0 comments on commit a039b3f

Please sign in to comment.