浏览代码

Removed some useless tests for SkyManager creation.

/main
Julien Ignace 8 年前
当前提交
0ffa139c
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 7
      Assets/ScriptableRenderLoop/HDRenderLoop/HDRenderLoop.cs

7
Assets/ScriptableRenderLoop/HDRenderLoop/HDRenderLoop.cs


m_CameraColorBufferRT = new RenderTargetIdentifier(m_CameraColorBuffer);
m_CameraDepthBufferRT = new RenderTargetIdentifier(m_CameraDepthBuffer);
if(m_SkyManager == null)
m_SkyManager = new SkyManager();
m_SkyManager.Build();
m_FinalPassMaterial = Utilities.CreateEngineMaterial("Hidden/HDRenderLoop/FinalPass");

Utilities.Destroy(m_FinalPassMaterial);
Utilities.Destroy(m_DebugViewMaterialGBuffer);
if (m_SkyManager != null)
{
m_SkyManager.Cleanup();
}
m_SkyManager.Cleanup();
#if UNITY_EDITOR
UnityEditor.SupportedRenderingFeatures.active = UnityEditor.SupportedRenderingFeatures.Default;

正在加载...
取消
保存