浏览代码

Update PixelHasSubsurfaceScattering()

/main
GitHub 7 年前
当前提交
2e07df5e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl


bool PixelHasSubsurfaceScattering(BSDFData bsdfData)
{
return min(_EnableSubsurfaceScattering, bsdfData.subsurfaceMask) > 0 &&
return (_EnableSubsurfaceScattering * bsdfData.subsurfaceMask != 0) &&
HasFeatureFlag(bsdfData.materialFeatures, MATERIALFEATUREFLAGS_LIT_SUBSURFACE_SCATTERING);
}

正在加载...
取消
保存