How to make glass material with varying normals/refraction?

This is what I was looking for, for anybody finding this layer.