| 697 | ////////////////////////////////////////////////////////////////////////////// |
| 698 | |
| 699 | Ref<SceneGraph::Node> XMLLoader::loadPointLight(const Ref<XML>& xml) |
| 700 | { |
| 701 | const AffineSpace3fa space = load<AffineSpace3fa>(xml->child("AffineSpace")); |
| 702 | const Vec3fa I = load<Vec3f>(xml->child("I")); |
| 703 | const Vec3fa P = Vec3fa(zero); |
| 704 | const SceneGraph::PointLight light = SceneGraph::PointLight(P,I); |
| 705 | return new SceneGraph::LightNodeImpl<SceneGraph::PointLight>(light.transform(space)); |
| 706 | } |
| 707 | |
| 708 | Ref<SceneGraph::Node> XMLLoader::loadSpotLight(const Ref<XML>& xml) |
| 709 | { |
nothing calls this directly
no test coverage detected