MCPcopy Create free account
hub / github.com/DiligentGraphics/DiligentFX / GetLightIntensity

Function GetLightIntensity

Hydrogent/src/HnLight.cpp:213–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213static float GetLightIntensity(pxr::HdSceneDelegate& SceneDelegate, const pxr::SdfPath& Id)
214{
215 float Intensity = 1;
216
217 const pxr::VtValue IntensityVal = SceneDelegate.GetLightParamValue(Id, pxr::HdLightTokens->intensity);
218 if (IntensityVal.IsHolding<float>())
219 {
220 Intensity = IntensityVal.Get<float>();
221 }
222
223 return Intensity;
224}
225
226static float GetLightExposedPower(pxr::HdSceneDelegate& SceneDelegate, const pxr::SdfPath& Id)
227{

Callers 1

ApproximateAreaLightMethod · 0.85

Calls 1

GetLightParamValueMethod · 0.80

Tested by

no test coverage detected