浏览代码

fix material lifetime

/main
vlad-andreev 8 年前
当前提交
01f87afe
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
      Assets/ScriptableRenderLoop/fptl/FptlLighting.cs

3
Assets/ScriptableRenderLoop/fptl/FptlLighting.cs


m_skyboxHelper.CreateMesh();
m_blitMaterial = new Material(Shader.Find("Hidden/FinalPass"));
m_blitMaterial.hideFlags = HideFlags.HideAndDontSave;
}
void OnDisable()

if (m_DeferredReflectionMaterial) DestroyImmediate(m_DeferredReflectionMaterial);
if (m_blitMaterial) DestroyImmediate(m_blitMaterial);
m_cookieTexArray.Release();
m_cubeCookieTexArray.Release();
m_cubeReflTexArray.Release();

正在加载...
取消
保存