mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -05:00
bin script tweaks
This commit is contained in:
parent
3b4e30d5e3
commit
8d491afc70
@ -131,29 +131,16 @@ if (!defined(gltfPath)) {
|
||||
gltfPath = path.join(path.dirname(objPath), modelName + extension);
|
||||
}
|
||||
|
||||
var options = {
|
||||
binary : argv.binary,
|
||||
separate : argv.separate,
|
||||
separateTextures : argv.separateTextures,
|
||||
checkTransparency : argv.checkTransparency,
|
||||
secure : argv.secure,
|
||||
inputUpAxis : argv.inputUpAxis,
|
||||
outputUpAxis : argv.outputUpAxis,
|
||||
packOcclusion : argv.packOcclusion,
|
||||
metallicRoughness : argv.metallicRoughness,
|
||||
specularGlossiness : argv.specularGlossiness
|
||||
};
|
||||
|
||||
console.time('Total');
|
||||
|
||||
try {
|
||||
obj2gltf(objPath, gltfPath, options)
|
||||
obj2gltf(objPath, gltfPath, argv)
|
||||
.then(function() {
|
||||
console.timeEnd('Total');
|
||||
})
|
||||
.catch(function(error) {
|
||||
console.log(error);
|
||||
console.log(error.message);
|
||||
});
|
||||
} catch(error) {
|
||||
console.log(error);
|
||||
console.log(error.message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user