示例#1
0
 public void Dispose()
 {
     if (tex != null)
     {
         tex.Dispose();
         tex = null;
     }
 }
示例#2
0
        public LODRenderTexture(FormatRT format)
        {
            tex = new ResizableRenderTexture(format);

            tex.AfterCreateTexture   += t => NotifyAfterCreateTexture();
            tex.BeforeDestroyTexture += t => NotifyBeforeDestroyTexture();

            validator.Validation += () => {
                tex.Size = LodSize;
            };
        }