using UnityEngine; namespace Kamgam.UIToolkitBlurredBackground { public interface IBlurRenderer { /// /// Defines how often the blur will be applied. Use with caution." /// int Iterations { get; set; } /// /// Defines how far out the sampling foes and thus the blur strength for each pass. /// float Offset { get; set; } /// /// The square texture resolution of the blurred image. Default is 512 x 512. Please use 2^n values like 256, 512, 1024, 2048. Reducing this will increase performance but decrease quality. Every frame your rendered image will be copied, resized and then blurred [BlurStrength] times. /// Vector2Int Resolution { get; set; } /// /// Defines how may samples are taken per pass. The higher the quality the more texels will be sampled and the lower the performance will be. /// ShaderQuality Quality { get; set; } bool Active { get; set; } Texture GetBlurredTexture(); bool Update(); } }