Download

Swirl lens distortion on custom depth object

Hi,

I’ve been trying to get a swirl lens distortion effect on an object. I have the swirl working on an SceneTexture:PostProcessInput0 but it swirls the entire screen. Also the center of the swirl is not in the center of the object but somewhere at 3/4 down to the right. When i feed the beginning textureCoordinate a Screenaligned UV the swirl is centered at the screen but not the object.

Can anyone help getting the start of the swirl in the center of the object, a sphere in this case?