浏览代码

Make sure light sampling (and eventually MIS) can be correctly toggled at runtime.

/main
Evgenii Golubev 8 年前
当前提交
1b52a0cc
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
      Assets/ScriptableRenderLoop/HDRenderLoop/Sky/SkyManager.cs

4
Assets/ScriptableRenderLoop/HDRenderLoop/Sky/SkyManager.cs


m_GGXConvolveMaterial.SetTexture("_MarginalRowDensities", m_SkyboxMarginalRowCdfRT);
m_GGXConvolveMaterial.SetTexture("_ConditionalDensities", m_SkyboxConditionalCdfRT);
}
else
{
m_GGXConvolveMaterial.DisableKeyword("USE_MIS");
}
// Do the convolution on remaining mipmaps
float invOmegaP = (6.0f * input.width * input.width) / (4.0f * Mathf.PI); // Solid angle associated to a pixel of the cubemap;

正在加载...
取消
保存