浏览代码

HDRP Fix issue with CameraBackground color not handled correctly on new scene

/main
sebastienlagarde 7 年前
当前提交
bc8449af
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      com.unity.render-pipelines.high-definition/HDRP/Camera/HDCamera.cs

6
com.unity.render-pipelines.high-definition/HDRP/Camera/HDCamera.cs


postprocessRenderContext = new PostProcessRenderContext();
m_AdditionalCameraData = cam.GetComponent<HDAdditionalCameraData>();
m_AdditionalCameraData = null; // Init in Update
Reset();
}

public void Update(FrameSettings currentFrameSettings, PostProcessLayer postProcessLayer, VolumetricLightingSystem vlSys)
{
// store a shortcut on HDAdditionalCameraData (done here and not in the constructor as
// we do'nt create HDCamera at every frame and user can change the HDAdditionalData later (Like when they create a new scene).
m_AdditionalCameraData = camera.GetComponent<HDAdditionalCameraData>();
m_frameSettings = currentFrameSettings;
// If TAA is enabled projMatrix will hold a jittered projection matrix. The original,

正在加载...
取消
保存