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

Function GetTextureFile

Hydrogent/src/HnLight.cpp:358–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358static pxr::SdfAssetPath GetTextureFile(pxr::HdSceneDelegate& SceneDelegate, const pxr::SdfPath& Id)
359{
360 pxr::SdfAssetPath FilePath;
361
362 const pxr::VtValue TextureFileVal = SceneDelegate.GetLightParamValue(Id, pxr::HdLightTokens->textureFile);
363 if (TextureFileVal.IsHolding<pxr::SdfAssetPath>())
364 {
365 FilePath = TextureFileVal.Get<pxr::SdfAssetPath>();
366 }
367
368 return FilePath;
369}
370
371void HnLight::ComputeDirectLightProjMatrix(pxr::HdSceneDelegate& SceneDelegate)
372{

Callers 1

SyncMethod · 0.85

Calls 1

GetLightParamValueMethod · 0.80

Tested by

no test coverage detected