@@ -246,9 +246,9 @@ THREE.GLTFLoader = ( function () {
246246 /**
247247 * DDS Texture Extension
248248 *
249- * Specification:
249+ * Specification:
250250 * https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/MSFT_texture_dds
251- *
251+ *
252252 */
253253 function GLTFTextureDDSExtension ( ) {
254254
@@ -455,7 +455,7 @@ THREE.GLTFLoader = ( function () {
455455 *
456456 * Specification: https://github.com/KhronosGroup/glTF/pull/874
457457 */
458- function GLTFDracoMeshCompressionExtension ( json , dracoLoader ) {
458+ function GLTFDracoMeshCompressionExtension ( json , dracoLoader ) {
459459
460460 if ( ! dracoLoader ) {
461461
@@ -481,7 +481,7 @@ THREE.GLTFLoader = ( function () {
481481
482482 for ( var attributeName in gltfAttributeMap ) {
483483
484- if ( ! ( attributeName in ATTRIBUTES ) ) continue ;
484+ if ( ! ( attributeName in ATTRIBUTES ) ) continue ;
485485
486486 threeAttributeMap [ ATTRIBUTES [ attributeName ] ] = gltfAttributeMap [ attributeName ] ;
487487
@@ -494,7 +494,7 @@ THREE.GLTFLoader = ( function () {
494494 var accessorDef = json . accessors [ primitive . attributes [ attributeName ] ] ;
495495 var componentType = WEBGL_COMPONENT_TYPES [ accessorDef . componentType ] ;
496496
497- attributeTypeMap [ ATTRIBUTES [ attributeName ] ] = componentType ;
497+ attributeTypeMap [ ATTRIBUTES [ attributeName ] ] = componentType ;
498498 attributeNormalizedMap [ ATTRIBUTES [ attributeName ] ] = accessorDef . normalized === true ;
499499
500500 }
@@ -934,7 +934,7 @@ THREE.GLTFLoader = ( function () {
934934
935935 THREE . Interpolant . call ( this , parameterPositions , sampleValues , sampleSize , resultBuffer ) ;
936936
937- } ;
937+ }
938938
939939 GLTFCubicSplineInterpolant . prototype = Object . create ( THREE . Interpolant . prototype ) ;
940940 GLTFCubicSplineInterpolant . prototype . constructor = GLTFCubicSplineInterpolant ;
@@ -966,10 +966,10 @@ THREE.GLTFLoader = ( function () {
966966 // [ inTangent_1, splineVertex_1, outTangent_1, inTangent_2, splineVertex_2, ... ]
967967 for ( var i = 0 ; i !== stride ; i ++ ) {
968968
969- var p0 = values [ offset0 + i + stride ] ; // splineVertex_k
970- var m0 = values [ offset0 + i + stride2 ] * td ; // outTangent_k * (t_k+1 - t_k)
971- var p1 = values [ offset1 + i + stride ] ; // splineVertex_k+1
972- var m1 = values [ offset1 + i ] * td ; // inTangent_k+1 * (t_k+1 - t_k)
969+ var p0 = values [ offset0 + i + stride ] ; // splineVertex_k
970+ var m0 = values [ offset0 + i + stride2 ] * td ; // outTangent_k * (t_k+1 - t_k)
971+ var p1 = values [ offset1 + i + stride ] ; // splineVertex_k+1
972+ var m1 = values [ offset1 + i ] * td ; // inTangent_k+1 * (t_k+1 - t_k)
973973
974974 result [ i ] = s0 * p0 + s1 * m0 + s2 * p1 + s3 * m1 ;
975975
@@ -1123,7 +1123,7 @@ THREE.GLTFLoader = ( function () {
11231123 WEIGHT : 'skinWeight' , // deprecated
11241124 JOINTS_0 : 'skinIndex' ,
11251125 JOINT : 'skinIndex' // deprecated
1126- }
1126+ } ;
11271127
11281128 var PATH_PROPERTIES = {
11291129 scale : 'scale' ,
@@ -1214,7 +1214,7 @@ THREE.GLTFLoader = ( function () {
12141214 /**
12151215 * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#morph-targets
12161216 *
1217- * @param {THREE.Geometry } geometry
1217+ * @param {THREE.BufferGeometry } geometry
12181218 * @param {Array<GLTF.Target> } targets
12191219 * @param {Array<THREE.BufferAttribute> } accessors
12201220 */
@@ -1533,7 +1533,7 @@ THREE.GLTFLoader = ( function () {
15331533 // BufferGeometry caching
15341534 this . primitiveCache = [ ] ;
15351535 this . multiplePrimitivesCache = [ ] ;
1536- this . multiPassGeometryCache = [ ]
1536+ this . multiPassGeometryCache = [ ] ;
15371537
15381538 this . textureLoader = new THREE . TextureLoader ( this . options . manager ) ;
15391539 this . textureLoader . setCrossOrigin ( this . options . crossOrigin ) ;
@@ -2178,7 +2178,7 @@ THREE.GLTFLoader = ( function () {
21782178
21792179 }
21802180
2181- if ( materialDef . normalTexture !== undefined && materialType !== THREE . MeshBasicMaterial ) {
2181+ if ( materialDef . normalTexture !== undefined && materialType !== THREE . MeshBasicMaterial ) {
21822182
21832183 pending . push ( parser . assignTexture ( materialParams , 'normalMap' , materialDef . normalTexture . index ) ) ;
21842184
@@ -2192,7 +2192,7 @@ THREE.GLTFLoader = ( function () {
21922192
21932193 }
21942194
2195- if ( materialDef . occlusionTexture !== undefined && materialType !== THREE . MeshBasicMaterial ) {
2195+ if ( materialDef . occlusionTexture !== undefined && materialType !== THREE . MeshBasicMaterial ) {
21962196
21972197 pending . push ( parser . assignTexture ( materialParams , 'aoMap' , materialDef . occlusionTexture . index ) ) ;
21982198
@@ -2204,13 +2204,13 @@ THREE.GLTFLoader = ( function () {
22042204
22052205 }
22062206
2207- if ( materialDef . emissiveFactor !== undefined && materialType !== THREE . MeshBasicMaterial ) {
2207+ if ( materialDef . emissiveFactor !== undefined && materialType !== THREE . MeshBasicMaterial ) {
22082208
22092209 materialParams . emissive = new THREE . Color ( ) . fromArray ( materialDef . emissiveFactor ) ;
22102210
22112211 }
22122212
2213- if ( materialDef . emissiveTexture !== undefined && materialType !== THREE . MeshBasicMaterial ) {
2213+ if ( materialDef . emissiveTexture !== undefined && materialType !== THREE . MeshBasicMaterial ) {
22142214
22152215 pending . push ( parser . assignTexture ( materialParams , 'emissiveMap' , materialDef . emissiveTexture . index ) ) ;
22162216
@@ -2270,7 +2270,7 @@ THREE.GLTFLoader = ( function () {
22702270 var bufferAttribute = accessors [ attributes [ gltfAttributeName ] ] ;
22712271
22722272 // Skip attributes already provided by e.g. Draco extension.
2273- if ( ! threeAttributeName ) continue ;
2273+ if ( ! threeAttributeName ) continue ;
22742274 if ( threeAttributeName in geometry . attributes ) continue ;
22752275
22762276 geometry . addAttribute ( threeAttributeName , bufferAttribute ) ;
@@ -2508,7 +2508,7 @@ THREE.GLTFLoader = ( function () {
25082508
25092509 var mesh ;
25102510
2511- var material = isMultiMaterial ? originalMaterials : originalMaterials [ i ]
2511+ var material = isMultiMaterial ? originalMaterials : originalMaterials [ i ] ;
25122512
25132513 if ( primitive . mode === WEBGL_CONSTANTS . TRIANGLES ||
25142514 primitive . mode === WEBGL_CONSTANTS . TRIANGLE_STRIP ||
@@ -2592,7 +2592,7 @@ THREE.GLTFLoader = ( function () {
25922592 THREE . Material . prototype . copy . call ( pointsMaterial , material ) ;
25932593 pointsMaterial . color . copy ( material . color ) ;
25942594 pointsMaterial . map = material . map ;
2595- pointsMaterial . lights = false ; // PointsMaterial doesn't support lights yet
2595+ pointsMaterial . lights = false ; // PointsMaterial doesn't support lights yet
25962596
25972597 scope . cache . add ( cacheKey , pointsMaterial ) ;
25982598
@@ -2611,7 +2611,7 @@ THREE.GLTFLoader = ( function () {
26112611 lineMaterial = new THREE . LineBasicMaterial ( ) ;
26122612 THREE . Material . prototype . copy . call ( lineMaterial , material ) ;
26132613 lineMaterial . color . copy ( material . color ) ;
2614- lineMaterial . lights = false ; // LineBasicMaterial doesn't support lights yet
2614+ lineMaterial . lights = false ; // LineBasicMaterial doesn't support lights yet
26152615
26162616 scope . cache . add ( cacheKey , lineMaterial ) ;
26172617
@@ -2638,8 +2638,8 @@ THREE.GLTFLoader = ( function () {
26382638 if ( ! cachedMaterial ) {
26392639
26402640 cachedMaterial = material . isGLTFSpecularGlossinessMaterial
2641- ? extensions [ EXTENSIONS . KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS ] . cloneMaterial ( material )
2642- : material . clone ( ) ;
2641+ ? extensions [ EXTENSIONS . KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS ] . cloneMaterial ( material )
2642+ : material . clone ( ) ;
26432643
26442644 if ( useSkinning ) cachedMaterial . skinning = true ;
26452645 if ( useVertexColors ) cachedMaterial . vertexColors = THREE . VertexColors ;
0 commit comments