mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-23 08:34:14 -05:00
Fixed linting
This commit is contained in:
parent
e92b68d947
commit
a8dc3ccc23
@ -97,7 +97,7 @@ function createGltf(objData, options) {
|
||||
if (options.specularGlossiness) {
|
||||
gltf.extensionsUsed.push('KHR_materials_pbrSpecularGlossiness');
|
||||
gltf.extensionsRequired.push('KHR_materials_pbrSpecularGlossiness');
|
||||
}
|
||||
}
|
||||
|
||||
if (options.unlit) {
|
||||
gltf.extensionsUsed.push('KHR_materials_unlit');
|
||||
|
@ -280,7 +280,7 @@ function convertMaterial(material, options) {
|
||||
return createSpecularGlossinessMaterial(material, options);
|
||||
} else if (options.metallicRoughness) {
|
||||
return createMetallicRoughnessMaterial(material, options);
|
||||
}
|
||||
}
|
||||
// No material type specified, convert the material to metallic roughness
|
||||
convertTraditionalToMetallicRoughness(material);
|
||||
return createMetallicRoughnessMaterial(material, options);
|
||||
|
@ -5,7 +5,6 @@ var fsExtra = require('fs-extra');
|
||||
var loadMtl = require('../../lib/loadMtl');
|
||||
var loadTexture = require('../../lib/loadTexture');
|
||||
var obj2gltf = require('../../lib/obj2gltf');
|
||||
var Texture = require('../../lib/Texture');
|
||||
|
||||
var clone = Cesium.clone;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user