浏览代码

Clamp NaNs arising during light sampling

/main
Evgenii Golubev 8 年前
当前提交
7ad2f0d1
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl

3
Assets/ScriptableRenderLoop/ShaderLibrary/ImageBasedLighting.hlsl


}
}
// Prevent NaNs arising from the division of 0 by 0.
cbsdfInt = max(cbsdfInt, FLT_MIN);
return float4(lightInt / cbsdfInt, 1.0);
}
正在加载...
取消
保存