Project to study shader basics
Use stencil buffer to mask out objects inside cube.
Use stencil buffer and z-order to achieve effect of object going inside portal.
Use distortion map to offset uv of rendered image.
Simple box blur - mean of current pixel and its neighbours.
Sample value for each color channel separately adding offset