From 73c35abc8faa5b95a6d03faed89dafc048d27b9a Mon Sep 17 00:00:00 2001 From: WestLangley Date: Sun, 17 Sep 2023 21:01:43 -0400 Subject: [PATCH] Simplify equation --- examples/jsm/exporters/GLTFExporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/jsm/exporters/GLTFExporter.js b/examples/jsm/exporters/GLTFExporter.js index 087f91920fa447..eace529d7206fa 100644 --- a/examples/jsm/exporters/GLTFExporter.js +++ b/examples/jsm/exporters/GLTFExporter.js @@ -2438,7 +2438,7 @@ class GLTFLightExtension { if ( light.distance > 0 ) lightDef.range = light.distance; 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; }