Iterative screenspace effect?

  • Charmics
  • Topic Author
More
6 months 3 weeks ago #1 by Charmics Iterative screenspace effect? was created by Charmics
Hello all, I am not new to reshade, but I am somewhat new to writing effects that work across multiple pixels such as sharpening and shading.

I would like to create an effect that has a function which is used several times over across the screen. For example, a simple box blur which runs on neighboring pixels repeatedly to achieve a greater strength. The number of iterations would be user-configurable.

My understanding is that this will be impossible to do with pixel shaders, as they are processed to completion for every pixel, so there is no way for "later" pixels to affect "earlier" ones. Even creating a couple of new buffers and swapping between them would not work. Is this correct? If so, would a vertex or compute shader be more appropriate?

Any advice on how to structure this would be greatly appreciated! 

Please Log in or Create an account to join the conversation.

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.