浏览代码

Remove division with pi in light intensity in light callback

/main
egomeh 6 年前
当前提交
84f4c707
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 2
      com.unity.render-pipelines.lightweight/LWRP/LightweightPipeline.cs

2
com.unity.render-pipelines.lightweight/LWRP/LightweightPipeline.cs


{
// For LWRP we need to divide the analytic light color by PI (HDRP do explicit PI division for Lambert, but built in Unity and the GI don't for punctual lights)
// We apply it on both direct and indirect are they are separated, seems that direct is not used if we used mixed mode with indirect or shadowmask bake.
lightData.color.intensity /= Mathf.PI;
lightData.indirectColor.intensity /= Mathf.PI;
switch (light.type)
{

正在加载...
取消
保存