/* virtual */ Hd_DefaultLightingShader::ID Hd_DefaultLightingShader::ComputeHash() const { TfToken glslfxFile = HdPackageDefaultLightingShader(); size_t hash = glslfxFile.Hash(); return (ID)hash; }
/* virtual */ HdSt_FallbackLightingShader::ID HdSt_FallbackLightingShader::ComputeHash() const { TfToken glslfxFile = HdStPackageFallbackLightingShader(); size_t hash = glslfxFile.Hash(); return (ID)hash; }
/* virtual */ HdxSimpleLightingShader::ID HdxSimpleLightingShader::ComputeHash() const { HD_TRACE_FUNCTION(); TfToken glslfxFile = HdxPackageSimpleLightingShader(); size_t numLights = _useLighting ? _lightingContext->GetNumLightsUsed() : 0; bool useShadows = _useLighting ? _lightingContext->GetUseShadows() : false; size_t hash = glslfxFile.Hash(); boost::hash_combine(hash, numLights); boost::hash_combine(hash, useShadows); return (ID)hash; }