File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -576,11 +576,13 @@ class GLTFLightsExtension {
576
576
case 'point' :
577
577
lightNode = new PointLight ( color ) ;
578
578
lightNode . distance = range ;
579
+ lightNode . decay = 2 ;
579
580
break ;
580
581
581
582
case 'spot' :
582
583
lightNode = new SpotLight ( color ) ;
583
584
lightNode . distance = range ;
585
+ lightNode . decay = 2 ;
584
586
// Handle spotlight properties.
585
587
lightDef . spot = lightDef . spot || { } ;
586
588
lightDef . spot . innerConeAngle = lightDef . spot . innerConeAngle !== undefined ? lightDef . spot . innerConeAngle : 0 ;
@@ -600,8 +602,6 @@ class GLTFLightsExtension {
600
602
// here, because node-level parsing will only override position if explicitly specified.
601
603
lightNode . position . set ( 0 , 0 , 0 ) ;
602
604
603
- lightNode . decay = 2 ;
604
-
605
605
assignExtrasToUserData ( lightNode , lightDef ) ;
606
606
607
607
if ( lightDef . intensity !== undefined ) lightNode . intensity = lightDef . intensity ;
You can’t perform that action at this time.
0 commit comments