MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / FindEnvironmentLight

Function FindEnvironmentLight

Rtxpt/SampleCommon/ExtendedScene.cpp:296–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296std::shared_ptr<EnvironmentLight> FindEnvironmentLight(std::vector <std::shared_ptr<donut::engine::Light>> lights)
297{
298 for (auto light : lights)
299 {
300 if (light->GetLightType() == LightType_Environment)
301 {
302 return std::dynamic_pointer_cast<EnvironmentLight>(light);
303 }
304 }
305 return nullptr;
306}
307
308void EnvironmentLight::FillLightConstants(LightConstants& lightConstants) const
309{

Callers 1

SceneLoadedMethod · 0.85

Calls 1

GetLightTypeMethod · 0.80

Tested by

no test coverage detected