浏览代码

HDRenderPipeline: Fix issue with transmittance being a float and not a float3

/Yibing-Project-2
sebastienlagarde 7 年前
当前提交
d1ac36f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/Core/ShaderLibrary/VolumeRendering.hlsl

2
ScriptableRenderPipeline/Core/ShaderLibrary/VolumeRendering.hlsl


}
// Absorption coefficient from Disney: http://blog.selfshadow.com/publications/s2015-shading-course/burley/s2015_pbs_disney_bsdf_notes.pdf
float TransmittanceColorAtDistanceToAbsorption(float3 transmittanceColor, float atDistance)
float3 TransmittanceColorAtDistanceToAbsorption(float3 transmittanceColor, float atDistance)
{
return -log(transmittanceColor + 0.00001) / max(atDistance, 0.000001);
}

正在加载...
取消
保存