mirror of https://github.com/CesiumGS/obj2gltf.git
Style
This commit is contained in:
parent
04ad694599
commit
e4b3ad5409
|
@ -17,70 +17,70 @@ var argv = yargs
|
||||||
.help('h')
|
.help('h')
|
||||||
.alias('h', 'help')
|
.alias('h', 'help')
|
||||||
.options({
|
.options({
|
||||||
'input': {
|
input : {
|
||||||
alias: 'i',
|
alias: 'i',
|
||||||
describe: 'Path to the obj file.',
|
describe: 'Path to the obj file.',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
normalize: true
|
normalize: true
|
||||||
},
|
},
|
||||||
'output': {
|
output : {
|
||||||
alias: 'o',
|
alias: 'o',
|
||||||
describe: 'Path of the converted glTF file.',
|
describe: 'Path of the converted glTF file.',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
normalize: true
|
normalize: true
|
||||||
},
|
},
|
||||||
'binary': {
|
binary : {
|
||||||
alias: 'b',
|
alias: 'b',
|
||||||
describe: 'Save as binary glTF.',
|
describe: 'Save as binary glTF.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'separate': {
|
separate : {
|
||||||
alias: 's',
|
alias: 's',
|
||||||
describe: 'Write separate geometry data files, shader files, and textures instead of embedding them in the glTF.',
|
describe: 'Write separate geometry data files, shader files, and textures instead of embedding them in the glTF.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'separateTextures': {
|
separateTextures : {
|
||||||
alias: 't',
|
alias: 't',
|
||||||
describe: 'Write out separate textures only.',
|
describe: 'Write out separate textures only.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'compress': {
|
compress : {
|
||||||
alias: 'c',
|
alias: 'c',
|
||||||
describe: 'Quantize positions, compress texture coordinates, and oct-encode normals.',
|
describe: 'Quantize positions, compress texture coordinates, and oct-encode normals.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'optimize': {
|
optimize : {
|
||||||
alias: 'z',
|
alias: 'z',
|
||||||
describe: 'Use the optimization stages in the glTF pipeline.',
|
describe: 'Use the optimization stages in the glTF pipeline.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'cesium': {
|
cesium : {
|
||||||
describe: 'Optimize the glTF for Cesium by using the sun as a default light source.',
|
describe: 'Optimize the glTF for Cesium by using the sun as a default light source.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'generateNormals': {
|
generateNormals : {
|
||||||
alias: 'n',
|
alias: 'n',
|
||||||
describe: 'Generate normals if they are missing.',
|
describe: 'Generate normals if they are missing.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'ao': {
|
ao : {
|
||||||
describe: 'Apply ambient occlusion to the converted model.',
|
describe: 'Apply ambient occlusion to the converted model.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'bypassPipeline': {
|
bypassPipeline : {
|
||||||
describe: 'Bypass the gltf-pipeline for debugging purposes. This option overrides many of the options above and will save the glTF with the KHR_materials_common extension.',
|
describe: 'Bypass the gltf-pipeline for debugging purposes. This option overrides many of the options above and will save the glTF with the KHR_materials_common extension.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
'hasTransparency': {
|
hasTransparency : {
|
||||||
describe: 'Do a more exhaustive check for texture transparency by looking at the alpha channel of each pixel. By default textures with an alpha channel are considered to be transparent.',
|
describe: 'Do a more exhaustive check for texture transparency by looking at the alpha channel of each pixel. By default textures with an alpha channel are considered to be transparent.',
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
default: false
|
default: false
|
||||||
|
|
Loading…
Reference in New Issue