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