浏览代码

Fix the sky update issue

/main
Evgenii Golubev 8 年前
当前提交
53bfede1
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      Assets/ScriptableRenderLoop/HDRenderLoop/Sky/SkyRenderer.cs

6
Assets/ScriptableRenderLoop/HDRenderLoop/Sky/SkyRenderer.cs


{
// Trigger a rebuild of cubemap / convolution
// TODO: can we have some kind of hash value here ? +> use or override GetHashCode() + include a refresh rate value in parameters
// TODO: we could apply multiplier/exposure and rotation on the final result (i.e on the sky ibl and on lightprobe / lightmap, but can be tricky as Unity seems to merge sky information with
// TODO: we could apply multiplier/exposure and rotation on the final result (i.e on the sky ibl and on lightprobe / lightmap, but can be tricky as Unity seems to merge sky information with
skyParameters.multiplier != m_bakedSkyParameters.multiplier)
skyParameters.multiplier != m_bakedSkyParameters.multiplier ||
skyParameters.skyHDRI != m_bakedSkyParameters.skyHDRI)
{
using (new Utilities.ProfilingSample("Sky Pass: Render Cubemap", renderLoop))
{

}
// Cleanup all this...
m_bakedSkyParameters.skyHDRI = skyParameters.skyHDRI;
m_bakedSkyParameters.skyResolution = skyParameters.skyResolution;
m_bakedSkyParameters.exposure = skyParameters.exposure;
m_bakedSkyParameters.rotation = skyParameters.rotation;

正在加载...
取消
保存