diff --git a/bin/obj2gltf.js b/bin/obj2gltf.js index f309c09..0c49de7 100644 --- a/bin/obj2gltf.js +++ b/bin/obj2gltf.js @@ -122,7 +122,7 @@ var argv = yargs describe : 'The glTF will be saved with the KHR_materials_unlit extension.', type : 'boolean', default : defaults.unlit - }, + } }).parse(args); if (argv.metallicRoughness + argv.specularGlossiness > 1) { diff --git a/lib/loadMtl.js b/lib/loadMtl.js index e8a30b6..9d10240 100644 --- a/lib/loadMtl.js +++ b/lib/loadMtl.js @@ -25,7 +25,6 @@ module.exports = loadMtl; * * @param {String} mtlPath Path to the .mtl file. * @param {Object} options The options object passed along from lib/obj2gltf.js - * @param {Boolean} options.hasNormals Whether the model has normals. * @returns {Promise} A promise resolving to an array of glTF materials with Texture objects stored in the texture slots. * * @private @@ -733,4 +732,4 @@ function convertTraditionalToMetallicRoughness(material) { material.specularColor = [metallicFactor, metallicFactor, metallicFactor, 1.0]; material.specularShininess = roughnessFactor; -} \ No newline at end of file +} diff --git a/specs/lib/obj2gltfSpec.js b/specs/lib/obj2gltfSpec.js index bb324b5..eec6c6c 100644 --- a/specs/lib/obj2gltfSpec.js +++ b/specs/lib/obj2gltfSpec.js @@ -184,17 +184,4 @@ describe('obj2gltf', function() { obj2gltf(texturedObjPath, options); }).toThrowDeveloperError(); }); - - it('adds KHR_materials_unlit to materials if unlit is set', function(done) { - var options = { - unlit : true - }; - expect(obj2gltf(texturedObjPath, options) - .then(function(glb) { - for(var i = 0;i < glb.materials.length; i++) { - var material = glb.materials[i]; - expect(material.extensions.KHR_materials_unlit).toBeDefined(); - } - }), done).toResolve(); - }); });