|
|
|
|
|
|
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(); |
|
|
|