MCPcopy Create free account
hub / github.com/RenderKit/embree / convertLight

Method convertLight

tutorials/common/tutorial/scene_device.cpp:140–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected