|
@@ -338,7 +338,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
case 'directional':
|
|
case 'directional':
|
|
lightNode = new THREE.DirectionalLight( color );
|
|
lightNode = new THREE.DirectionalLight( color );
|
|
- lightNode.target.position.set( 0, 0, -1 );
|
|
|
|
|
|
+ lightNode.target.position.set( 0, 0, - 1 );
|
|
lightNode.add( lightNode.target );
|
|
lightNode.add( lightNode.target );
|
|
break;
|
|
break;
|
|
|
|
|
|
@@ -356,7 +356,7 @@ THREE.GLTFLoader = ( function () {
|
|
lightDef.spot.outerConeAngle = lightDef.spot.outerConeAngle !== undefined ? lightDef.spot.outerConeAngle : Math.PI / 4.0;
|
|
lightDef.spot.outerConeAngle = lightDef.spot.outerConeAngle !== undefined ? lightDef.spot.outerConeAngle : Math.PI / 4.0;
|
|
lightNode.angle = lightDef.spot.outerConeAngle;
|
|
lightNode.angle = lightDef.spot.outerConeAngle;
|
|
lightNode.penumbra = 1.0 - lightDef.spot.innerConeAngle / 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 );
|
|
lightNode.add( lightNode.target );
|
|
break;
|
|
break;
|
|
|
|
|
|
@@ -968,6 +968,7 @@ THREE.GLTFLoader = ( function () {
|
|
uniforms.refractionRatio.value = material.refractionRatio;
|
|
uniforms.refractionRatio.value = material.refractionRatio;
|
|
|
|
|
|
uniforms.maxMipLevel.value = renderer.properties.get( material.envMap ).__maxMipLevel;
|
|
uniforms.maxMipLevel.value = renderer.properties.get( material.envMap ).__maxMipLevel;
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
uniforms.specular.value.copy( material.specular );
|
|
uniforms.specular.value.copy( material.specular );
|
|
@@ -1852,7 +1853,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
case 'light':
|
|
case 'light':
|
|
dependency = this.extensions[ EXTENSIONS.KHR_LIGHTS_PUNCTUAL ].loadLight( index );
|
|
dependency = this.extensions[ EXTENSIONS.KHR_LIGHTS_PUNCTUAL ].loadLight( index );
|
|
- break
|
|
|
|
|
|
+ break;
|
|
|
|
|
|
default:
|
|
default:
|
|
throw new Error( 'Unknown type: ' + type );
|
|
throw new Error( 'Unknown type: ' + type );
|
|
@@ -3133,7 +3134,7 @@ THREE.GLTFLoader = ( function () {
|
|
|
|
|
|
var nodeDef = json.nodes[ nodeIndex ];
|
|
var nodeDef = json.nodes[ nodeIndex ];
|
|
|
|
|
|
- return ( function() {
|
|
|
|
|
|
+ return ( function () {
|
|
|
|
|
|
// .isBone isn't in glTF spec. See .markDefs
|
|
// .isBone isn't in glTF spec. See .markDefs
|
|
if ( nodeDef.isBone === true ) {
|
|
if ( nodeDef.isBone === true ) {
|