浏览代码

Optimize

/main
Evgenii Golubev 7 年前
当前提交
072a0aa3
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs

6
ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs


{
newFrame = m_FrameCount != c;
if (newFrame) m_FrameCount = c;
m_FrameCount = c;
newFrame = ((t - m_CurrentTime) * 1000.0f) > 16.6;
newFrame = (t - m_CurrentTime) > 0.0166f;
if (newFrame) m_FrameCount++;
}

// This call overwrites camera properties passed to the shader system.
m_LightLoop.RenderShadows(renderContext, cmd, m_CullResults);
// Overwrite camera properties set during the shader pass with the original camera properties.
// Overwrite camera properties set during the shadow pass with the original camera properties.
renderContext.SetupCameraProperties(camera, m_FrameSettings.enableStereo);
hdCamera.SetupGlobalParams(cmd, m_CurrentTime, m_PreviousTime);
if (m_FrameSettings.enableStereo) hdCamera.SetupGlobalStereoParams(cmd);

正在加载...
取消
保存