Is it possible to make things invisible with a post process?
I'm trying to make a chromatic aberration effect that only affects things that are beyond a certain distance from the camera. I've got the chromatic aberration working, and the objects within the range aren't aberrating, but when the background aberrates, it's grabbing the pixels of the object within the range and distort them, ruining. What I need to do is make the objects within my range invisible so that the effect can get what's behind the and distort that before I make the objects visible again. So is it possible to set the opacity of things based on a 0 to 1 image in a post process? I know that if it is, I'll have the effect I'm after.
The pictures below show my blueprint, the depth image I'm working with, and result of the post-process as it is now.
In addition to sampling scene texture at offset location, sample scene depth and compare it with pixel depth. Reject the sample, if depth difference is great.
answered Feb 21 '19 at 08:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here