浏览代码

HDRenderLoop: Re-Enable DynamicGI.UpdateEnvironment();

/main
Sebastien Lagarde 8 年前
当前提交
88645019
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      Assets/ScriptableRenderLoop/HDRenderLoop/Sky/SkyRenderer.cs

4
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
// other lighting into SH / lightmap.
if (skyParameters.skyResolution != m_bakedSkyParameters.skyResolution ||
skyParameters.exposure != m_bakedSkyParameters.exposure ||
skyParameters.rotation != m_bakedSkyParameters.rotation ||

RenderSettings.ambientMode = UnityEngine.Rendering.AmbientMode.Skybox; // Force skybox for our HDRI
RenderSettings.reflectionIntensity = 1.0f;
RenderSettings.customReflection = null;
//DynamicGI.UpdateEnvironment();
DynamicGI.UpdateEnvironment();
}
// Cleanup all this...

正在加载...
取消
保存