Browse Source

Simplify equation (#26787)

WestLangley 1 year ago
parent
commit
b6150e4d35
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/jsm/exporters/GLTFExporter.js

+ 1 - 1
examples/jsm/exporters/GLTFExporter.js

@@ -2438,7 +2438,7 @@ class GLTFLightExtension {
 			if ( light.distance > 0 ) lightDef.range = light.distance;
 			if ( light.distance > 0 ) lightDef.range = light.distance;
 
 
 			lightDef.spot = {};
 			lightDef.spot = {};
-			lightDef.spot.innerConeAngle = ( light.penumbra - 1.0 ) * light.angle * - 1.0;
+			lightDef.spot.innerConeAngle = ( 1.0 - light.penumbra ) * light.angle;
 			lightDef.spot.outerConeAngle = light.angle;
 			lightDef.spot.outerConeAngle = light.angle;
 
 
 		}
 		}