示例#1
0
        // public Texture2D texHeight;

        // [HideInInspector] public byte[] treemap;
        // [HideInInspector] public byte[] objectmap;

        public void DisposeTextures()
        {
            TC_Compute.DisposeRenderTexture(ref rtHeight);
            TC_Compute.DisposeTexture(ref texHeight);
            TC_Compute.DisposeTexture(ref texColormap);
            TC_Compute.DisposeTexture(ref texNormalmap);
        }
示例#2
0
 void OnDestroy()
 {
     TC_Compute.DisposeTexture(ref tex);
     if (!callDestroy)
     {
         TC.refreshOutputReferences = TC.allOutput;
     }
 }
示例#3
0
 void OnDestroy()
 {
     TC_Compute.DisposeTexture(ref tex);
                 #if UNITY_EDITOR
     if (!UnityEditor.EditorApplication.isPlayingOrWillChangePlaymode && !callDestroy)
     {
         TC.RefreshOutputReferences(TC.allOutput);
     }
                 #else
     if (!callDestroy)
     {
         TC.RefreshOutputReferences(TC.allOutput);
     }
                 #endif
 }