Skip to content

Commit

Permalink
Simplify equation (mrdoob#26787)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley committed Sep 18, 2023
1 parent 93c3589 commit b6150e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/jsm/exporters/GLTFExporter.js
Expand Up @@ -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;

}
Expand Down

0 comments on commit b6150e4

Please sign in to comment.