| 718 | } |
| 719 | |
| 720 | Ref<SceneGraph::Node> XMLLoader::loadDirectionalLight(const Ref<XML>& xml) |
| 721 | { |
| 722 | const AffineSpace3fa space = load<AffineSpace3fa>(xml->child("AffineSpace")); |
| 723 | const Vec3fa E = load<Vec3fa>(xml->child("E")); |
| 724 | const Vec3fa D = Vec3fa(0,0,1); |
| 725 | const SceneGraph::DirectionalLight light = SceneGraph::DirectionalLight(D,E); |
| 726 | return new SceneGraph::LightNodeImpl<SceneGraph::DirectionalLight>(light.transform(space)); |
| 727 | } |
| 728 | |
| 729 | Ref<SceneGraph::Node> XMLLoader::loadDistantLight(const Ref<XML>& xml) |
| 730 | { |
nothing calls this directly
no test coverage detected