From fa73dcbfc96bafd80e60141af013d97d2b90c2cb Mon Sep 17 00:00:00 2001 From: Pairote Leelaphattarakij Date: Sat, 8 Jun 2019 16:40:26 +0700 Subject: [PATCH] Update description --- README.md | 2 +- lib/obj2gltf.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac1803c..4677ba8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/obj2gltf.js b/lib/obj2gltf.js index 5f72f7a..d477723 100644 --- a/lib/obj2gltf.js +++ b/lib/obj2gltf.js @@ -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) {