|
@@ -432,7 +432,7 @@ var GLTFLoader = ( function () {
|
|
|
|
|
|
case 'directional':
|
|
|
lightNode = new DirectionalLight( color );
|
|
|
- lightNode.target.position.set( 0, 0, -1 );
|
|
|
+ lightNode.target.position.set( 0, 0, - 1 );
|
|
|
lightNode.add( lightNode.target );
|
|
|
break;
|
|
|
|
|
@@ -450,7 +450,7 @@ var GLTFLoader = ( function () {
|
|
|
lightDef.spot.outerConeAngle = lightDef.spot.outerConeAngle !== undefined ? lightDef.spot.outerConeAngle : Math.PI / 4.0;
|
|
|
lightNode.angle = lightDef.spot.outerConeAngle;
|
|
|
lightNode.penumbra = 1.0 - lightDef.spot.innerConeAngle / lightDef.spot.outerConeAngle;
|
|
|
- lightNode.target.position.set( 0, 0, -1 );
|
|
|
+ lightNode.target.position.set( 0, 0, - 1 );
|
|
|
lightNode.add( lightNode.target );
|
|
|
break;
|
|
|
|
|
@@ -1058,6 +1058,7 @@ var GLTFLoader = ( function () {
|
|
|
uniforms.refractionRatio.value = material.refractionRatio;
|
|
|
|
|
|
uniforms.maxMipLevel.value = renderer.properties.get( material.envMap ).__maxMipLevel;
|
|
|
+
|
|
|
}
|
|
|
|
|
|
uniforms.specular.value.copy( material.specular );
|
|
@@ -1450,8 +1451,10 @@ var GLTFLoader = ( function () {
|
|
|
var accessor = target.POSITION !== undefined
|
|
|
? parser.getDependency( 'accessor', target.POSITION )
|
|
|
.then( function ( accessor ) {
|
|
|
+
|
|
|
// Cloning not to pollute original accessor below
|
|
|
return cloneBufferAttribute( accessor );
|
|
|
+
|
|
|
} )
|
|
|
: geometry.attributes.position;
|
|
|
|
|
@@ -1465,7 +1468,9 @@ var GLTFLoader = ( function () {
|
|
|
var accessor = target.NORMAL !== undefined
|
|
|
? parser.getDependency( 'accessor', target.NORMAL )
|
|
|
.then( function ( accessor ) {
|
|
|
+
|
|
|
return cloneBufferAttribute( accessor );
|
|
|
+
|
|
|
} )
|
|
|
: geometry.attributes.normal;
|
|
|
|
|
@@ -1942,7 +1947,7 @@ var GLTFLoader = ( function () {
|
|
|
|
|
|
case 'light':
|
|
|
dependency = this.extensions[ EXTENSIONS.KHR_LIGHTS_PUNCTUAL ].loadLight( index );
|
|
|
- break
|
|
|
+ break;
|
|
|
|
|
|
default:
|
|
|
throw new Error( 'Unknown type: ' + type );
|
|
@@ -3223,7 +3228,7 @@ var GLTFLoader = ( function () {
|
|
|
|
|
|
var nodeDef = json.nodes[ nodeIndex ];
|
|
|
|
|
|
- return ( function() {
|
|
|
+ return ( function () {
|
|
|
|
|
|
// .isBone isn't in glTF spec. See .markDefs
|
|
|
if ( nodeDef.isBone === true ) {
|
|
@@ -3416,7 +3421,7 @@ var GLTFLoader = ( function () {
|
|
|
|
|
|
mesh.bind( new Skeleton( bones, boneInverses ), mesh.matrixWorld );
|
|
|
|
|
|
- };
|
|
|
+ }
|
|
|
|
|
|
return node;
|
|
|
|
|
@@ -3487,4 +3492,4 @@ var GLTFLoader = ( function () {
|
|
|
|
|
|
} )();
|
|
|
|
|
|
-export { GLTFLoader }
|
|
|
+export { GLTFLoader };
|