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

Method loadDirectionalLight

tutorials/common/scenegraph/xml_loader.cpp:720–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

DirectionalLightClass · 0.70
Vec3faClass · 0.50
childMethod · 0.45
transformMethod · 0.45

Tested by

no test coverage detected