Skip to content

Commit

Permalink
CgltfImporter: use angle directly
Browse files Browse the repository at this point in the history
  • Loading branch information
pezcode committed Oct 5, 2021
1 parent 3e84de3 commit 4189b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MagnumPlugins/CgltfImporter/Test/CgltfImporterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1880,7 +1880,7 @@ void CgltfImporterTest::lightMissingSpot() {
CORRADE_COMPARE(light->range(), Constants::inf());
CORRADE_COMPARE(light->innerConeAngle(), 0.0_radf);
/* Magnum uses full angles, glTF uses half angles */
CORRADE_COMPARE(light->outerConeAngle(), Rad{Constants::piQuarter()*2.0f});
CORRADE_COMPARE(light->outerConeAngle(), Rad{45.0_degf*2.0f});
}

void CgltfImporterTest::scene() {
Expand Down

0 comments on commit 4189b53

Please sign in to comment.