How to create cutting plane shader with capping holes?

How to create cutting plane shader with capping holes?
Like this video: Volume with a cutting plane in UE4. - YouTube