Update description

This commit is contained in:
Pairote Leelaphattarakij 2019-06-08 16:40:26 +07:00
parent 7ac21559a1
commit fa73dcbfc9
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ As a convenience the PBR textures may be supplied directly to the command line.
|`--baseColorTexture`|Path to the baseColor/diffuse texture that should override textures in the .mtl file.|No|
|`--emissiveTexture`|Path to the emissive texture that should override textures in the .mtl file.|No|
|`--alphaTexture`|Path to the alpha texture that should override textures in the .mtl file.|No|
|`--extras`|An object for storing application-specific data. It will be saved to the root object for a gLTF asset.|No|
|`--extrasPath`|Path to the json file that contains an object for storing application-specific data. It will be saved to the top-level of the glTF.|No|
## Build Instructions

View File

@ -37,7 +37,7 @@ module.exports = obj2gltf;
* @param {Logger} [options.logger] A callback function for handling logged messages. Defaults to console.log.
* @param {Writer} [options.writer] A callback function that writes files that are saved as separate resources.
* @param {String} [options.outputDirectory] Output directory for writing separate resources when options.writer is not defined.
* @param {Object} [options.extras] An object for storing application-specific data. It will be saved to the root object for a gLTF asset.
* @param {Object} [options.extras] An object for storing application-specific data. It will be saved to the top-level of the glTF.
* @return {Promise} A promise that resolves to the glTF JSON or glb buffer.
*/
function obj2gltf(objPath, options) {