提交 fdf31c0c 编写于 作者: G Garrett Johnson

Fix example module code style

上级 c07c5971
......@@ -1163,4 +1163,4 @@ Object.defineProperties( MapControls.prototype, {
} );
export { MapControls }
\ No newline at end of file
export { MapControls };
......@@ -1059,4 +1059,4 @@ Object.defineProperties( OrbitControls.prototype, {
} );
export { OrbitControls }
\ No newline at end of file
export { OrbitControls };
......@@ -499,7 +499,7 @@ var TrackballControls = function ( object, domElement ) {
function touchstart( event ) {
if ( _this.enabled === false ) return;
event.preventDefault();
switch ( event.touches.length ) {
......@@ -625,4 +625,4 @@ var TrackballControls = function ( object, domElement ) {
TrackballControls.prototype = Object.create( EventDispatcher.prototype );
TrackballControls.prototype.constructor = THREE.TrackballControls;
export { TrackballControls }
\ No newline at end of file
export { TrackballControls };
......@@ -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 }
\ No newline at end of file
export { GLTFLoader };
......@@ -813,4 +813,4 @@ var OBJLoader = ( function () {
} )();
export { OBJLoader }
\ No newline at end of file
export { OBJLoader };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册