mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-02-06 06:52:49 -05:00
Fixes to optimize option
This commit is contained in:
parent
cba9df6434
commit
a1fe8005d1
@ -41,8 +41,8 @@ Using obj2gltf as a command-line tool:
|
||||
|`-o`|Directory or filename for the exported glTF file.|No|
|
||||
|`-b`|Output binary glTF.|No, default `false`|
|
||||
|`-s`|Writes out separate geometry/animation data files, shader files, and textures instead of embedding them in the glTF file.|No, default `false`|
|
||||
|`-p`|Use the optimization stages in the glTF pipeline|No, default `false`|
|
||||
|`-t`|Write out separate textures only.|No, default `false`|
|
||||
|`-z`|Use the optimization stages in the glTF pipeline|No, default `false`|
|
||||
|`--ao`|Apply ambient occlusion to the converted model.|No, default `false`|
|
||||
|`-h`|Display help|No|
|
||||
|
||||
|
@ -50,9 +50,9 @@ var argv = yargs
|
||||
type: 'boolean'
|
||||
},
|
||||
'optimize': {
|
||||
alias: 'p',
|
||||
alias: 'z',
|
||||
default: false,
|
||||
describe: 'Turn the optimization pipeline stages on/off to preserve the original glTF hierarchy.',
|
||||
describe: 'Use the optimization stages in the glTF pipeline.',
|
||||
type: 'boolean'
|
||||
},
|
||||
'cesium': {
|
||||
|
@ -54,7 +54,7 @@ function convert(objPath, gltfPath, options) {
|
||||
createDirectory : false,
|
||||
basePath : basePath,
|
||||
textureCompressionOptions : textureCompressionOptions,
|
||||
preserve : optimize
|
||||
preserve : !optimize
|
||||
};
|
||||
|
||||
return loadObj(objPath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user