mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2025-03-03 06:51:43 -05:00
Fix tests and jshint
This commit is contained in:
parent
02c3aa18db
commit
bedbb6ef96
@ -16,6 +16,16 @@ var DeveloperError = Cesium.DeveloperError;
|
|||||||
|
|
||||||
module.exports = convert;
|
module.exports = convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A callback function that logs messages.
|
||||||
|
* @callback Logger
|
||||||
|
*
|
||||||
|
* @param {String} message The message to log.
|
||||||
|
*/
|
||||||
|
var defaultLogger = function(message) {
|
||||||
|
console.log(message);
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts an obj file to a glTF file.
|
* Converts an obj file to a glTF file.
|
||||||
*
|
*
|
||||||
@ -119,13 +129,3 @@ function convert(objPath, gltfPath, options) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
convert._outputJson = fsExtraOutputJson;
|
convert._outputJson = fsExtraOutputJson;
|
||||||
|
|
||||||
/**
|
|
||||||
* A callback function that logs messages.
|
|
||||||
* @callback Logger
|
|
||||||
*
|
|
||||||
* @param {String} message The message to log.
|
|
||||||
*/
|
|
||||||
var defaultLogger = function(message) {
|
|
||||||
console.log(message);
|
|
||||||
};
|
|
||||||
|
@ -40,6 +40,7 @@ describe('convert', function() {
|
|||||||
quantize : false,
|
quantize : false,
|
||||||
compressTextureCoordinates : false,
|
compressTextureCoordinates : false,
|
||||||
aoOptions : undefined,
|
aoOptions : undefined,
|
||||||
|
kmcOptions : undefined,
|
||||||
smoothNormals : false,
|
smoothNormals : false,
|
||||||
optimizeForCesium : false,
|
optimizeForCesium : false,
|
||||||
textureCompressionOptions : undefined,
|
textureCompressionOptions : undefined,
|
||||||
@ -63,6 +64,7 @@ describe('convert', function() {
|
|||||||
optimize : true,
|
optimize : true,
|
||||||
generateNormals : true,
|
generateNormals : true,
|
||||||
ao : true,
|
ao : true,
|
||||||
|
kmc : true,
|
||||||
optimizeForCesium : true,
|
optimizeForCesium : true,
|
||||||
textureCompressionOptions : textureCompressionOptions
|
textureCompressionOptions : textureCompressionOptions
|
||||||
};
|
};
|
||||||
@ -81,6 +83,7 @@ describe('convert', function() {
|
|||||||
quantize : true,
|
quantize : true,
|
||||||
compressTextureCoordinates : true,
|
compressTextureCoordinates : true,
|
||||||
aoOptions : {},
|
aoOptions : {},
|
||||||
|
kmcOptions : {},
|
||||||
smoothNormals : true,
|
smoothNormals : true,
|
||||||
optimizeForCesium : true,
|
optimizeForCesium : true,
|
||||||
textureCompressionOptions : textureCompressionOptions,
|
textureCompressionOptions : textureCompressionOptions,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user