| 138 | } |
| 139 | |
| 140 | Light* ISPCScene::convertLight(Ref<SceneGraph::LightNode> in) |
| 141 | { |
| 142 | Light* l = createLight(in); |
| 143 | updateLight(in->get(0.0f),l); |
| 144 | return l; |
| 145 | } |
| 146 | |
| 147 | template<> void ISPCScene::updateLight(const SceneGraph::AmbientLight& in, Light* out) { |
| 148 | AmbientLight_set(out, in.L); |