| 727 | } |
| 728 | |
| 729 | Ref<SceneGraph::Node> XMLLoader::loadDistantLight(const Ref<XML>& xml) |
| 730 | { |
| 731 | const AffineSpace3fa space = load<AffineSpace3fa>(xml->child("AffineSpace")); |
| 732 | const Vec3fa L = load<Vec3fa>(xml->child("L")); |
| 733 | const Vec3fa D = Vec3fa(0,0,1); |
| 734 | const float halfAngle = load<float>(xml->child("halfAngle")); |
| 735 | const SceneGraph::DistantLight light = SceneGraph::DistantLight(D,L,halfAngle); |
| 736 | return new SceneGraph::LightNodeImpl<SceneGraph::DistantLight>(light.transform(space)); |
| 737 | } |
| 738 | |
| 739 | Ref<SceneGraph::Node> XMLLoader::loadAmbientLight(const Ref<XML>& xml) |
| 740 | { |
nothing calls this directly
no test coverage detected