浏览代码

Fix issue with indirect color and color temperature not take into account

/main
sebastienlagarde 7 年前
当前提交
a7cc2ef6
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      com.unity.render-pipelines.high-definition/HDRP/Lighting/GlobalIlluminationUtils.cs

3
com.unity.render-pipelines.high-definition/HDRP/Lighting/GlobalIlluminationUtils.cs


ld.color.green *= cct.g;
ld.color.blue *= cct.b;
ld.indirectColor = add.affectDiffuse ? LightmapperUtils.ExtractIndirect(l) : LinearColor.Black();
ld.indirectColor.red *= cct.r;
ld.indirectColor.green *= cct.g;
ld.indirectColor.blue *= cct.b;
// Note that the HDRI is correctly integrated in the GlobalIllumination system, we don't need to do anything regarding it.

正在加载...
取消
保存