public virtual void Filter(Texture texture)
 {
     SecureRenderTexures(texture);
     Graphics.Blit(texture, rts[0]);
     foreach (var imageFilter in imageFilters)
     {
         if (!imageFilter.enabled)
         {
             continue;
         }
         imageFilter.IsSelfFilter = false;
         imageFilter.Filter(rts[0], rts[1]);
         TextureUtils.PingPongTextures(rts);
         OnFilteredEvent?.Invoke(imageFilter.Id, rts[0]);
     }
 }
Exemple #2
0
 protected virtual void OnFiltered(RenderTexture destination)
 {
     OnFilteredEvent?.Invoke(destination);
 }