Skip to content

Commit

Permalink
Simplify equation (#26787)
Browse files Browse the repository at this point in the history
  • Loading branch information
WestLangley authored 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
Original file line number Diff line number Diff line change
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.