What creates this effect?

Is it purely lua that changes what you see through something? Is it an opaque material that distorts what is behind it?

How does it work? I want to use it in a SWEP I am making

It’s a shader on the material of the prop.

Fish eye lens to be exact.