浏览代码

HDRP: Fix warning in shader stacklit

/main
sebastienlagarde 6 年前
当前提交
8a207497
共有 1 个文件被更改,包括 2 次插入10 次删除
  1. 12
      com.unity.render-pipelines.high-definition/HDRP/Material/StackLit/StackLit.hlsl

12
com.unity.render-pipelines.high-definition/HDRP/Material/StackLit/StackLit.hlsl


_s_ri0 = (e_ri0 > 0.0) ? _s_ri0/e_ri0 : 0.0;
// Store the coefficient and variance
if(m_r0i > 0.0)
{
preLightData.vLayerEnergyCoeff[i] = m_R0i;
//preLightData.vLayerPerceptualRoughness[i] = LinearVarianceToPerceptualRoughness(_s_r0m);
}
else
{
preLightData.vLayerEnergyCoeff[i] = float3(0.0, 0.0, 0.0);
//preLightData.vLayerPerceptualRoughness[i] = 0.0;
}
preLightData.vLayerEnergyCoeff[i] = (m_r0i > 0.0) ? m_R0i : float3(0.0, 0.0, 0.0);
//preLightData.vLayerPerceptualRoughness[i] = (m_r0i > 0.0) ? LinearVarianceToPerceptualRoughness(_s_r0m) : 0.0;
// Update energy
R0i = e_R0i;

正在加载...
取消
保存