summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--code/AssetLib/glTF/glTFImporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/code/AssetLib/glTF/glTFImporter.cpp b/code/AssetLib/glTF/glTFImporter.cpp
index b68881021..901914da1 100644
--- a/code/AssetLib/glTF/glTFImporter.cpp
+++ b/code/AssetLib/glTF/glTFImporter.cpp
@@ -515,7 +515,7 @@ void glTFImporter::ImportLights(Asset &r) {
CopyValue(l.color, ail->mColorSpecular);
ail->mAngleOuterCone = l.falloffAngle;
- ail->mAngleInnerCone = l.falloffExponent; // TODO fix this, it does not look right at all
+ ail->mAngleInnerCone = l.falloffAngle * (1.0f - 1.0f / (1.0f + l.falloffExponent));
ail->mAttenuationConstant = l.constantAttenuation;
ail->mAttenuationLinear = l.linearAttenuation;