Method SmoothProgressive
SmoothProgressive(RenderTexture, RenderTexture, Texture, int, int)
Applies Vista's iterative smooth filter progressively and yields after a configurable number of iterations.
public static IEnumerator SmoothProgressive(RenderTexture targetRT, RenderTexture tempRT, Texture maskTexture, int iterationCount, int iterationPerFrame)
Parameters
targetRTRenderTextureThe destination texture that also acts as the initial source.
tempRTRenderTextureTemporary texture used for ping-pong rendering. Must match
targetRTresolution.maskTextureTextureOptional mask controlling where smoothing applies. Null is treated as white.
iterationCountintTotal number of smoothing iterations to execute.
iterationPerFrameintNumber of iterations processed between yields.