浏览代码

Add code for future experimentation

/main
GitHub 6 年前
当前提交
a8065d95
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 14
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/SubsurfaceScattering/SubsurfaceScattering.compute

14
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/SubsurfaceScattering/SubsurfaceScattering.compute


#if SSS_USE_TANGENT_PLANE
// Both 'xy2' and 'z' require conversion to millimeters.
float r = sqrt(xy2 + z * z) * mmPerUnit;
float p = sqrt(xy2) * mmPerUnit;
float p = sqrt(xy2);
#endif
float area = rcpPdf;
#if 0
// Boost the area associated with the sample by the ratio between the sample-center distance
// and its orthogonal projection onto the integration plane (disk).
area *= r / p;
return saturate(DisneyProfilePolar(r, S) * rcpPdf);
return saturate(DisneyProfilePolar(r, S) * area);
return DisneyProfilePolar(r, S) * rcpPdf;
return DisneyProfilePolar(r, S) * area;
#endif
}

正在加载...
取消
保存