This sample is effective only on the case “screen vectorXY = textureUV”.
For more utility,UV base tangent vector and camera-lens angled normal vector will be needed.
Z-test in Material and Output Z-buffer(as color and alpha) features will help disparty map,too.
Wang tile is useful to randomize repeated pattern like turf surface,tiles,etc.
It use a noise texture to put map-chip texture.
included basic routine
normalize UV to [0.0 - 1.0]