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

Method loadPointLight

tutorials/common/scenegraph/xml_loader.cpp:699–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

PointLightClass · 0.70
Vec3faClass · 0.50
childMethod · 0.45
transformMethod · 0.45

Tested by

no test coverage detected