浏览代码

snap from p4 fixes leak in headless

/main
Peter Andreasen 6 年前
当前提交
643442f4
共有 1 个文件被更改,包括 13 次插入11 次删除
  1. 24
      Assets/Scripts/Game/Main/Game.cs

24
Assets/Scripts/Game/Main/Game.cs


{
hdpipe.DebugLayer2DCallback = DebugOverlay.Render;
hdpipe.DebugLayer3DCallback = DebugOverlay.Render3D;
var layer = LayerMask.NameToLayer("PostProcess Volumes");
if (layer == -1)
GameDebug.LogWarning("Unable to find layer mask for camera fader");
else
{
m_Exposure = ScriptableObject.CreateInstance<AutoExposure>();
m_Exposure.active = false;
m_Exposure.enabled.Override(true);
m_Exposure.keyValue.Override(0);
m_ExposureVolume = PostProcessManager.instance.QuickVolume(layer, 100.0f, m_Exposure);
}
var layer = LayerMask.NameToLayer("PostProcess Volumes");
if (layer == -1)
GameDebug.LogWarning("Unable to find layer mask for camera fader");
else
{
m_Exposure = ScriptableObject.CreateInstance<AutoExposure>();
m_Exposure.active = false;
m_Exposure.enabled.Override(true);
m_Exposure.keyValue.Override(0);
m_ExposureVolume = PostProcessManager.instance.QuickVolume(layer, 100.0f, m_Exposure);
}
}
if(m_ExposureReleaseCount > 0)
{

正在加载...
取消
保存