浏览代码

Missed one file

/RenderPassXR_Sandbox
Sebastien Lagarde 8 年前
当前提交
fb5e9b58
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/SubsurfaceScatteringProfile.cs

3
Assets/ScriptableRenderPipeline/HDRenderPipeline/Material/Lit/SubsurfaceScatteringProfile.cs


// Evaluate the fit for diffuse surface transmission.
// We substitute s = 1 / d in all formulas. so s = m_SurfaceShapeParam
m_SurfaceShapeParam.x = 1.0f / Mathf.Max(scatteringDistance.r, 0.001f);
m_SurfaceShapeParam.y = 1.0f / Mathf.Max(scatteringDistance.g, 0.001f);
m_SurfaceShapeParam.z = 1.0f / Mathf.Max(scatteringDistance.b, 0.001f);
m_VolumeShapeParam.x = FindFitForS(volumeAlbedo.r);
m_VolumeShapeParam.y = FindFitForS(volumeAlbedo.g);
m_VolumeShapeParam.z = FindFitForS(volumeAlbedo.b);

正在加载...
取消
保存