@@ -574,13 +574,11 @@ class GLTFLightsExtension {
574
574
break ;
575
575
576
576
case 'point' :
577
- lightNode = new PointLight ( color ) ;
578
- lightNode . distance = range ;
577
+ lightNode = new PointLight ( color , 1 , range , 2 ) ;
579
578
break ;
580
579
581
580
case 'spot' :
582
- lightNode = new SpotLight ( color ) ;
583
- lightNode . distance = range ;
581
+ lightNode = new SpotLight ( color , 1 , range , 2 ) ;
584
582
// Handle spotlight properties.
585
583
lightDef . spot = lightDef . spot || { } ;
586
584
lightDef . spot . innerConeAngle = lightDef . spot . innerConeAngle !== undefined ? lightDef . spot . innerConeAngle : 0 ;
@@ -600,8 +598,6 @@ class GLTFLightsExtension {
600
598
// here, because node-level parsing will only override position if explicitly specified.
601
599
lightNode . position . set ( 0 , 0 , 0 ) ;
602
600
603
- lightNode . decay = 2 ;
604
-
605
601
assignExtrasToUserData ( lightNode , lightDef ) ;
606
602
607
603
if ( lightDef . intensity !== undefined ) lightNode . intensity = lightDef . intensity ;
@@ -2855,7 +2851,7 @@ class GLTFParser {
2855
2851
* Requests the specified dependency asynchronously, with caching.
2856
2852
* @param {string } type
2857
2853
* @param {number } index
2858
- * @return {Promise<Object3D|Material|THREE. Texture|AnimationClip|ArrayBuffer|Object> }
2854
+ * @return {Promise<Object3D|Material|Texture|AnimationClip|ArrayBuffer|Object> }
2859
2855
*/
2860
2856
getDependency ( type , index ) {
2861
2857
@@ -3185,7 +3181,7 @@ class GLTFParser {
3185
3181
/**
3186
3182
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#textures
3187
3183
* @param {number } textureIndex
3188
- * @return {Promise<THREE. Texture|null> }
3184
+ * @return {Promise<Texture|null> }
3189
3185
*/
3190
3186
loadTexture ( textureIndex ) {
3191
3187
0 commit comments