Once I have implemented such tiling using shadertoy. Source code: https://github.com/Panzerschrek/shader_bits/blob/master/penr.... No recursion is really needed (which isn't supported in shaders), but a plain loop with N iterations to achieve tiling of depth N.