Hi everybody! How can I apply a filter on the part of screen? For example I want to apply depth of field filter just for given rectangular domain of the viewport.
I think you have to modify the shader itself.
Yeah, it is the only way I could imagine at the moment. I thought maybe there is another option =)
I don’t think there’s and however it would probably be more time-expensive and less performable than modyfing the shader,applying the effect only if the fragment is into a declared area
Thanks for advice, I’ll try to do this)
You can use a viewport and render just a subpart of the screen in this wiewport and apply the filter on this viewport.